This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@context": { | |
"@vocab": "https://schema.org/" | |
}, | |
"@type": "Dataset", | |
"@id": "https://registry.org/permanentUrlToThisJsonDoc", | |
"name": "Argovis' representation of the Argo dataset", | |
"description": "Argovis provides a representation of the profiles collected over the lifetime of the Argo program. This representation is intended to present an interpretation of Argo data that is lightly simplified from the original product, but still appropriate for a large majority of scientific and educational use cases. Simplifications include presenting delayed (better corrected and QCed) mode data where available; presenting interpolated biogeochemical data only; and merging core and bioogeochemical data collected in parallel into unified oceanic profiles. For an introduction to using the Argovis API to access Argo data in Python, see https://github.com/argovis/demo_notebooks/blob/main/Intro_to_Argovis.ipynb.", | |
"url": "https://argovis.colorado.edu/argourlhelper", | |
"license": "https:// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from dateutil import rrule | |
from datetime import datetime | |
def get_selection_profiles_loop(start, end, shape, pres): | |
now = datetime.strptime(start, "%Y-%m-%d") | |
later = datetime.strptime(end, "%Y-%m-%d") | |
previous = start | |
profiles = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.6 | |
WORKDIR /usr/src/argo-database | |
COPY ./requirements.txt ./requirements.txt | |
RUN apt-get update && \ | |
apt-get --assume-yes install libhdf5-serial-dev netcdf-bin libnetcdf-dev nano | |
RUN pip install -r requirements.txt | |
RUN pip install wget==3.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from wodpy import wod | |
def find_instrument_code(profile, varcode): | |
''' | |
given a wodpy profile and a variable code varcode as defined in table 3 of [reference 1], | |
return the instrument code from [reference 2] associated with this measurement, if it is available; | |
if not, return None. | |
[reference 1]: https://www.ncei.noaa.gov/data/oceans/woa/WOD/DOC/wodreadme.pdf | |
[reference 2]: https://www.ncei.noaa.gov/data/oceans/woa/WOD/CODES/PDF/v_5_instrument.pdf | |
''' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: policy/v1beta1 | |
kind: PodSecurityPolicy | |
metadata: | |
name: psp.flannel.unprivileged | |
annotations: | |
seccomp.security.alpha.kubernetes.io/allowedProfileNames: docker/default | |
seccomp.security.alpha.kubernetes.io/defaultProfileName: docker/default | |
apparmor.security.beta.kubernetes.io/allowedProfileNames: runtime/default | |
apparmor.security.beta.kubernetes.io/defaultProfileName: runtime/default |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# Source: calico/templates/calico-config.yaml | |
# This ConfigMap is used to configure a self-hosted Calico installation. | |
kind: ConfigMap | |
apiVersion: v1 | |
metadata: | |
name: calico-config | |
namespace: kube-system | |
data: | |
# Typha is disabled. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io, pickle, sqlite3, sys, pandas | |
import numpy as np | |
def parse(results): | |
return results.apply(unpack_qc) | |
def unpack_qc(value): | |
print(value, type(value)) | |
qc = np.load(io.BytesIO(value)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.6" | |
services: | |
database: | |
environment: | |
POSTGRES_DB: ddev | |
POSTGRES_PASSWORD_FILE: /run/secrets/postgres-password | |
image: ${dockerID}/ddev_db | |
build: | |
context: database |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: bb-database | |
namespace: default | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
bb: db |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.7' | |
services: | |
bb-db: | |
image: ${dockerId}/bb-db:v2 | |
networks: | |
- bb-net | |
volumes: | |
- sqlbackup:/var/opt/mssql |
NewerOlder