This file contains 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 python | |
import fsspec | |
from fsspec.implementations.http import HTTPFile, HTTPFileSystem | |
import xarray as xr | |
url = "https://portal.nccs.nasa.gov/datashare/gmao/geos-fp/das/Y2025/M03/D18/GEOS.fp.asm.inst1_2d_lfo_Nx.20250318_0000.V01.nc4" | |
fs = HTTPFileSystem() | |
file = fs.open(url) |
This file contains 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 python | |
import numpy as np | |
import numcodecs | |
shuf = numcodecs.Shuffle() | |
zlib = numcodecs.Zlib(level=9) | |
# generate some random data | |
dat = np.random.randn(10_000) |
This file contains 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: h5coro | |
channels: | |
- conda-forge | |
dependencies: | |
- gdal | |
- ipython | |
- proj | |
- pybind11 | |
- python |
This file contains 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 | |
source ~/.bash_functions | |
mod_py39 | |
conda activate vdp-common | |
FILES=$(find css-geo/GOES-16-ABI-L1B-FULLD/2022/203 -type f) | |
# Define directory where outptus will be saved | |
OUTDIR=GOES-16-ABI-L1B-FULLD-rc1000 |
This file contains 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 | |
# Prerequisite: | |
# | |
# (1) Create a `~/.netrc` file (if it doesn't exist); e.g., `touch ~/.netrc` | |
# | |
# (2) Open the `~/.netrc` file in a plain text editor and add a single line like the following: | |
# | |
# machine urs.earthdata.nasa.gov login [email protected] password YourEDLPassword123 | |
# |
This file contains 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 dask.distributed import Client, LocalCluster, progress | |
cluster = LocalCluster() | |
client = Client(cluster) | |
import s3fs | |
import itertools | |
from fsspec.implementations.local import LocalFileSystem | |
import dask | |
from dask.delayed import delayed |
This file contains 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
H5Aclose | |
H5Acreate1 | |
H5Adelete | |
H5Aexists | |
H5Aget_name | |
H5Aget_num_attrs | |
H5Aget_space | |
H5Aget_storage_size | |
H5Aget_type | |
H5A_info_t |
This file contains 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
using CanopyOptics | |
using Unitful | |
using Turing | |
using Optim | |
using Distributions | |
using ForwardDiff | |
using Plots | |
using StatsPlots | |
using FillArrays | |
using LinearAlgebra |
This file contains 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 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 |
NewerOlder