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 xarray as xr | |
| import numpy as np | |
| d1 = np.random.rand(133, 10, 10) | |
| t1 = np.arange(1, 134) | |
| xs = np.arange(1, 11) | |
| ys = np.arange(1, 11) | |
| chunking = {"time": 100, "x": 10, "y": 10} |
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
| #!/bin/bash | |
| if (return 0 2> /dev/null) | |
| then | |
| : # Pass | |
| else | |
| echo 'This script must be `source`d, not executed!' | |
| exit 255 | |
| fi |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| def wget(url): | |
| import urllib.request | |
| import netrc | |
| import os | |
| import fsspec | |
| import base64 | |
| from urllib.parse import urlparse | |
| # Get login credentials |
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
| #!/usr/bin/env bash | |
| set -euxo pipefail | |
| # Number of parallel cores | |
| n_cores=4 | |
| # Name of conda environment you are using | |
| CONDA_ENV_NAME="isofit-master" |
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
| name: env-hypertrace | |
| channels: | |
| - conda-forge | |
| - defaults | |
| dependencies: | |
| # Core utilities | |
| - pip | |
| - mamba | |
| # Isofit dependencies -- from `setup.py` file | |
| - python >=3.8,<3.9.0 |
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
| library(conflicted) | |
| library(hdf5r) | |
| library(raster) | |
| library(sf) | |
| library(fs) | |
| library(dplyr) | |
| library(tidyr) | |
| library(purrr) | |
| library(fst) | |
| library(vroom) |
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
| # Install the package with the following: | |
| if (FALSE) { | |
| install.packages("remotes") # If you don't have the remotes package | |
| remotes::install_github("ashiklom/rrtm") | |
| } | |
| library(rrtm) | |
| example <- edr_r( | |
| # Cohort state variables, in order from tallest to shortest |
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.2" | |
| services: | |
| api: | |
| volumes: | |
| - ./apps/api/:/api | |
| # If you want direct database access, uncomment this: | |
| postgres: | |
| ports: |
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
| library(rpecanapi) | |
| library(httr) | |
| library(magrittr, include.only = "%>%") | |
| library(dplyr) | |
| library(glue) | |
| wfmessage <- function(wf) { | |
| message(glue( | |
| "Follow workflow status at:\n", | |
| "http://localhost:8000/pecan/05-running.php?", |