Skip to content

Instantly share code, notes, and snippets.

View agoodm's full-sized avatar

Alex Goodman agoodm

  • @nasa Jet Propulsion Laboratory
  • Greater Chicago Area
View GitHub Profile
@agoodm
agoodm / .zmetadata
Created February 14, 2023 17:26
consolidated metadata for noaa-nwm-retrospective-2-1
{
"metadata": {
".zattrs": {
"Conventions": "CF-1.6",
"GDAL_DataType": "Generic",
"TITLE": "OUTPUT FROM WRF-Hydro v5.2.0-beta2",
"code_version": "v5.2.0-beta2",
"model_configuration": "retrospective",
"model_initialization_time": "1979-02-01_00:00:00",
"model_output_type": "land",
from functools import lru_cache
import os
import collections
import ujson
import pandas as pd
import numpy as np
import fsspec
def get_variables(keys):
"""Get list of variable names from references.
@agoodm
agoodm / record_refs.py
Last active February 1, 2023 17:06
Loading kerchunk references as split records
from functools import lru_cache
from numcodecs import blosc
import os
import collections
import ujson
import pandas as pd
import numpy as np
def get_variables(keys):
"""Get list of variable names from references.
@agoodm
agoodm / kerchunk_tricks.ipynb
Last active April 18, 2024 17:51
Kerchunk Performance Trick for large numbers of files
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.