Skip to content

Commit

Permalink
updated test_stac.py to read kerchunk indices from a json file
Browse files Browse the repository at this point in the history
  • Loading branch information
lawi119 committed Oct 31, 2023
1 parent 2bf5620 commit 76000da
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 92 deletions.
1 change: 1 addition & 0 deletions tests/blob_kerchunk_indices.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"refs": {"step/0": "base64:AAAAAAAAAAA=", "time/0": "base64:gHEwZQAAAAA=", ".zattrs": "{\"GRIB_centre\":\"ecmf\",\"GRIB_centreDescription\":\"European Centre for Medium-Range Weather Forecasts\",\"GRIB_edition\":2,\"GRIB_subCentre\":0,\"coordinates\":\"meanSea latitude longitude step time valid_time\",\"institution\":\"European Centre for Medium-Range Weather Forecasts\"}", ".zgroup": "{\"zarr_format\":2}", "meanSea/0": "base64:AAAAAAAAAAA=", "mp2/0.0.0": ["https://ai4edataeuwest.blob.core.windows.net/ecmwf/20231019/00z/0p4-beta/wave/20231019000000-0h-wave-fc.grib2", 1333081, 354874], "mwd/0.0.0": ["https://ai4edataeuwest.blob.core.windows.net/ecmwf/20231019/00z/0p4-beta/wave/20231019000000-0h-wave-fc.grib2", 322850, 342261], "mwp/0.0.0": ["https://ai4edataeuwest.blob.core.windows.net/ecmwf/20231019/00z/0p4-beta/wave/20231019000000-0h-wave-fc.grib2", 665111, 327350], "swh/0.0.0": ["https://ai4edataeuwest.blob.core.windows.net/ecmwf/20231019/00z/0p4-beta/wave/20231019000000-0h-wave-fc.grib2", 0, 322850], "latitude/0": "base64:AAAAAACAVkCamZmZmZlWwJqZmZmZmdm/", "pp1d/0.0.0": ["https://ai4edataeuwest.blob.core.windows.net/ecmwf/20231019/00z/0p4-beta/wave/20231019000000-0h-wave-fc.grib2", 992461, 340620], "longitude/0": "base64:AAAAAACAZsAAAAAAAIBmQJqZmZmZmdk/", "mp2/.zarray": "{\"chunks\":[1,451,900],\"compressor\":null,\"dtype\":\"<f8\",\"fill_value\":null,\"filters\":[{\"dtype\":\"float64\",\"id\":\"grib\",\"var\":\"mp2\"}],\"order\":\"C\",\"shape\":[1,451,900],\"zarr_format\":2}", "mp2/.zattrs": "{\"GRIB_NV\":0,\"GRIB_Nx\":900,\"GRIB_Ny\":451,\"GRIB_cfName\":\"unknown\",\"GRIB_cfVarName\":\"mp2\",\"GRIB_dataType\":\"fc\",\"GRIB_gridDefinitionDescription\":\"Latitude\\/longitude\",\"GRIB_gridType\":\"regular_ll\",\"GRIB_iDirectionIncrementInDegrees\":0.4,\"GRIB_iScansNegatively\":0,\"GRIB_jDirectionIncrementInDegrees\":0.4,\"GRIB_jPointsAreConsecutive\":0,\"GRIB_jScansPositively\":0,\"GRIB_latitudeOfFirstGridPointInDegrees\":90.0,\"GRIB_latitudeOfLastGridPointInDegrees\":-90.0,\"GRIB_longitudeOfFirstGridPointInDegrees\":180.0,\"GRIB_longitudeOfLastGridPointInDegrees\":179.6,\"GRIB_missingValue\":3.4028234663852886e+38,\"GRIB_name\":\"Mean zero-crossing wave period\",\"GRIB_numberOfPoints\":405900,\"GRIB_paramId\":140221,\"GRIB_shortName\":\"mp2\",\"GRIB_stepType\":\"instant\",\"GRIB_stepUnits\":1,\"GRIB_typeOfLevel\":\"meanSea\",\"GRIB_units\":\"s\",\"_ARRAY_DIMENSIONS\":[\"time\",\"latitude\",\"longitude\"],\"long_name\":\"Mean zero-crossing wave period\",\"standard_name\":\"unknown\",\"units\":\"s\"}", "mwd/.zarray": "{\"chunks\":[1,451,900],\"compressor\":null,\"dtype\":\"<f8\",\"fill_value\":null,\"filters\":[{\"dtype\":\"float64\",\"id\":\"grib\",\"var\":\"mwd\"}],\"order\":\"C\",\"shape\":[1,451,900],\"zarr_format\":2}", "mwd/.zattrs": "{\"GRIB_NV\":0,\"GRIB_Nx\":900,\"GRIB_Ny\":451,\"GRIB_cfName\":\"unknown\",\"GRIB_cfVarName\":\"mwd\",\"GRIB_dataType\":\"fc\",\"GRIB_gridDefinitionDescription\":\"Latitude\\/longitude\",\"GRIB_gridType\":\"regular_ll\",\"GRIB_iDirectionIncrementInDegrees\":0.4,\"GRIB_iScansNegatively\":0,\"GRIB_jDirectionIncrementInDegrees\":0.4,\"GRIB_jPointsAreConsecutive\":0,\"GRIB_jScansPositively\":0,\"GRIB_latitudeOfFirstGridPointInDegrees\":90.0,\"GRIB_latitudeOfLastGridPointInDegrees\":-90.0,\"GRIB_longitudeOfFirstGridPointInDegrees\":180.0,\"GRIB_longitudeOfLastGridPointInDegrees\":179.6,\"GRIB_missingValue\":3.4028234663852886e+38,\"GRIB_name\":\"Mean wave direction\",\"GRIB_numberOfPoints\":405900,\"GRIB_paramId\":140230,\"GRIB_shortName\":\"mwd\",\"GRIB_stepType\":\"instant\",\"GRIB_stepUnits\":1,\"GRIB_typeOfLevel\":\"meanSea\",\"GRIB_units\":\"Degree true\",\"_ARRAY_DIMENSIONS\":[\"time\",\"latitude\",\"longitude\"],\"long_name\":\"Mean wave direction\",\"standard_name\":\"unknown\",\"units\":\"Degree true\"}", "mwp/.zarray": "{\"chunks\":[1,451,900],\"compressor\":null,\"dtype\":\"<f8\",\"fill_value\":null,\"filters\":[{\"dtype\":\"float64\",\"id\":\"grib\",\"var\":\"mwp\"}],\"order\":\"C\",\"shape\":[1,451,900],\"zarr_format\":2}", "mwp/.zattrs": "{\"GRIB_NV\":0,\"GRIB_Nx\":900,\"GRIB_Ny\":451,\"GRIB_cfName\":\"unknown\",\"GRIB_cfVarName\":\"mwp\",\"GRIB_dataType\":\"fc\",\"GRIB_gridDefinitionDescription\":\"Latitude\\/longitude\",\"GRIB_gridType\":\"regular_ll\",\"GRIB_iDirectionIncrementInDegrees\":0.4,\"GRIB_iScansNegatively\":0,\"GRIB_jDirectionIncrementInDegrees\":0.4,\"GRIB_jPointsAreConsecutive\":0,\"GRIB_jScansPositively\":0,\"GRIB_latitudeOfFirstGridPointInDegrees\":90.0,\"GRIB_latitudeOfLastGridPointInDegrees\":-90.0,\"GRIB_longitudeOfFirstGridPointInDegrees\":180.0,\"GRIB_longitudeOfLastGridPointInDegrees\":179.6,\"GRIB_missingValue\":3.4028234663852886e+38,\"GRIB_name\":\"Mean wave period\",\"GRIB_numberOfPoints\":405900,\"GRIB_paramId\":140232,\"GRIB_shortName\":\"mwp\",\"GRIB_stepType\":\"instant\",\"GRIB_stepUnits\":1,\"GRIB_typeOfLevel\":\"meanSea\",\"GRIB_units\":\"s\",\"_ARRAY_DIMENSIONS\":[\"time\",\"latitude\",\"longitude\"],\"long_name\":\"Mean wave period\",\"standard_name\":\"unknown\",\"units\":\"s\"}", "swh/.zarray": "{\"chunks\":[1,451,900],\"compressor\":null,\"dtype\":\"<f8\",\"fill_value\":null,\"filters\":[{\"dtype\":\"float64\",\"id\":\"grib\",\"var\":\"swh\"}],\"order\":\"C\",\"shape\":[1,451,900],\"zarr_format\":2}", "swh/.zattrs": "{\"GRIB_NV\":0,\"GRIB_Nx\":900,\"GRIB_Ny\":451,\"GRIB_cfName\":\"unknown\",\"GRIB_cfVarName\":\"swh\",\"GRIB_dataType\":\"fc\",\"GRIB_gridDefinitionDescription\":\"Latitude\\/longitude\",\"GRIB_gridType\":\"regular_ll\",\"GRIB_iDirectionIncrementInDegrees\":0.4,\"GRIB_iScansNegatively\":0,\"GRIB_jDirectionIncrementInDegrees\":0.4,\"GRIB_jPointsAreConsecutive\":0,\"GRIB_jScansPositively\":0,\"GRIB_latitudeOfFirstGridPointInDegrees\":90.0,\"GRIB_latitudeOfLastGridPointInDegrees\":-90.0,\"GRIB_longitudeOfFirstGridPointInDegrees\":180.0,\"GRIB_longitudeOfLastGridPointInDegrees\":179.6,\"GRIB_missingValue\":3.4028234663852886e+38,\"GRIB_name\":\"Significant height of combined wind waves and swell\",\"GRIB_numberOfPoints\":405900,\"GRIB_paramId\":140229,\"GRIB_shortName\":\"swh\",\"GRIB_stepType\":\"instant\",\"GRIB_stepUnits\":1,\"GRIB_typeOfLevel\":\"meanSea\",\"GRIB_units\":\"m\",\"_ARRAY_DIMENSIONS\":[\"time\",\"latitude\",\"longitude\"],\"long_name\":\"Significant height of combined wind waves and swell\",\"standard_name\":\"unknown\",\"units\":\"m\"}", "pp1d/.zarray": "{\"chunks\":[1,451,900],\"compressor\":null,\"dtype\":\"<f8\",\"fill_value\":null,\"filters\":[{\"dtype\":\"float64\",\"id\":\"grib\",\"var\":\"pp1d\"}],\"order\":\"C\",\"shape\":[1,451,900],\"zarr_format\":2}", "pp1d/.zattrs": "{\"GRIB_NV\":0,\"GRIB_Nx\":900,\"GRIB_Ny\":451,\"GRIB_cfName\":\"unknown\",\"GRIB_cfVarName\":\"pp1d\",\"GRIB_dataType\":\"fc\",\"GRIB_gridDefinitionDescription\":\"Latitude\\/longitude\",\"GRIB_gridType\":\"regular_ll\",\"GRIB_iDirectionIncrementInDegrees\":0.4,\"GRIB_iScansNegatively\":0,\"GRIB_jDirectionIncrementInDegrees\":0.4,\"GRIB_jPointsAreConsecutive\":0,\"GRIB_jScansPositively\":0,\"GRIB_latitudeOfFirstGridPointInDegrees\":90.0,\"GRIB_latitudeOfLastGridPointInDegrees\":-90.0,\"GRIB_longitudeOfFirstGridPointInDegrees\":180.0,\"GRIB_longitudeOfLastGridPointInDegrees\":179.6,\"GRIB_missingValue\":3.4028234663852886e+38,\"GRIB_name\":\"Peak wave period\",\"GRIB_numberOfPoints\":405900,\"GRIB_paramId\":140231,\"GRIB_shortName\":\"pp1d\",\"GRIB_stepType\":\"instant\",\"GRIB_stepUnits\":1,\"GRIB_typeOfLevel\":\"meanSea\",\"GRIB_units\":\"s\",\"_ARRAY_DIMENSIONS\":[\"time\",\"latitude\",\"longitude\"],\"long_name\":\"Peak wave period\",\"standard_name\":\"unknown\",\"units\":\"s\"}", "step/.zarray": "{\"chunks\":[1],\"compressor\":null,\"dtype\":\"<f8\",\"fill_value\":null,\"filters\":null,\"order\":\"C\",\"shape\":[1],\"zarr_format\":2}", "step/.zattrs": "{\"_ARRAY_DIMENSIONS\":[\"time\"],\"long_name\":\"time since forecast_reference_time\",\"standard_name\":\"forecast_period\",\"units\":\"hours\"}", "time/.zarray": "base64:ewogICAgImNodW5rcyI6IFsKICAgICAgICAxCiAgICBdLAogICAgImNvbXByZXNzb3IiOiBudWxsLAogICAgImR0eXBlIjogIjxpOCIsCiAgICAiZmlsbF92YWx1ZSI6IG51bGwsCiAgICAiZmlsdGVycyI6IG51bGwsCiAgICAib3JkZXIiOiAiQyIsCiAgICAic2hhcGUiOiBbCiAgICAgICAgMQogICAgXSwKICAgICJ6YXJyX2Zvcm1hdCI6IDIKfQ==", "time/.zattrs": "base64:ewogICAgIl9BUlJBWV9ESU1FTlNJT05TIjogWwogICAgICAgICJ0aW1lIgogICAgXSwKICAgICJjYWxlbmRhciI6ICJwcm9sZXB0aWNfZ3JlZ29yaWFuIiwKICAgICJsb25nX25hbWUiOiAiaW5pdGlhbCB0aW1lIG9mIGZvcmVjYXN0IiwKICAgICJzdGFuZGFyZF9uYW1lIjogImZvcmVjYXN0X3JlZmVyZW5jZV90aW1lIiwKICAgICJ1bml0cyI6ICJzZWNvbmRzIHNpbmNlIDE5NzAtMDEtMDFUMDA6MDA6MDAiCn0=", "valid_time/0": "base64:gHEwZQAAAAA=", "meanSea/.zarray": "{\"chunks\":[1],\"compressor\":null,\"dtype\":\"<f8\",\"fill_value\":null,\"filters\":null,\"order\":\"C\",\"shape\":[1],\"zarr_format\":2}", "meanSea/.zattrs": "{\"_ARRAY_DIMENSIONS\":[\"time\"]}", "latitude/.zarray": "{\"chunks\":[451],\"compressor\":null,\"dtype\":\"<f8\",\"fill_value\":null,\"filters\":[{\"id\": \"range\"}],\"order\":\"C\",\"shape\":[451],\"zarr_format\":2}", "latitude/.zattrs": "{\"_ARRAY_DIMENSIONS\":[\"latitude\"],\"long_name\":\"latitude\",\"standard_name\":\"latitude\",\"units\":\"degrees_north\"}", "longitude/.zarray": "{\"chunks\":[900],\"compressor\":null,\"dtype\":\"<f8\",\"fill_value\":null,\"filters\":[{\"id\": \"range\"}],\"order\":\"C\",\"shape\":[900],\"zarr_format\":2}", "longitude/.zattrs": "{\"_ARRAY_DIMENSIONS\":[\"longitude\"],\"long_name\":\"longitude\",\"standard_name\":\"longitude\",\"units\":\"degrees_east\"}", "valid_time/.zarray": "{\"chunks\":[1],\"compressor\":null,\"dtype\":\"<i8\",\"fill_value\":null,\"filters\":null,\"order\":\"C\",\"shape\":[1],\"zarr_format\":2}", "valid_time/.zattrs": "{\"_ARRAY_DIMENSIONS\":[\"time\"],\"calendar\":\"proleptic_gregorian\",\"long_name\":\"time\",\"standard_name\":\"time\",\"units\":\"seconds since 1970-01-01T00:00:00\"}"}, "version": 1}
Loading

0 comments on commit 76000da

Please sign in to comment.