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
| """Routines for projecting MSG NAT imagery into different coordinate spaces""" | |
| from __future__ import annotations | |
| import contextlib | |
| from typing import TYPE_CHECKING, Any, Literal, NotRequired, TypedDict | |
| import healpix_geo.nested as hpx_nested # type: ignore[import-untyped] | |
| import numpy as np | |
| import xarray as xr |
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
| # /// script | |
| # requires-python = ">=3.11" | |
| # dependencies = [ | |
| # "zarr @ git+https://github.com/d-v-b/zarr-python.git@feat/lazy-indexing", | |
| # "dask[array]", | |
| # "numpy", | |
| # ] | |
| # /// | |
| import zarr |
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
| # /// script | |
| # requires-python = ">=3.11" | |
| # dependencies = [ | |
| # "numpy", | |
| # "zarr>=3", | |
| # "ome-zarr-models", | |
| # "pydantic", | |
| # "pydantic-zarr" | |
| # ] | |
| # /// |
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
| # /// script | |
| # requires-python = ">=3.11" | |
| # dependencies = [ | |
| # "pydantic-zarr==0.8.4", | |
| # "zarr[remote]>=3.1.3", | |
| # "fsspec[s3, http]", | |
| # "typer==0.20.0", | |
| # "rich==14.2.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
| # /// script | |
| # requires-python = ">=3.11" | |
| # dependencies = [ | |
| # "zarr @ git+https://github.com/zarr-developers/zarr-python.git@main", | |
| # ] | |
| # /// | |
| # | |
| import time | |
| import zarr |
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
| # /// script | |
| # dependencies = [ | |
| # "zarr@git+https://github.com/zarr-developers/zarr-python.git@main", | |
| # ] | |
| # /// | |
| import numpy as np | |
| import zarr |
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
| # /// script | |
| # requires-python = ">=3.11" | |
| # dependencies = [ | |
| # "pytest", | |
| # ] | |
| # /// | |
| import pytest | |
| import sys | |
| @pytest.mark.parametrize('msg', ['hello world\n', 'hello again\n']) | |
| def test(msg: str): |
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
| # /// script | |
| # requires-python = ">=3.11" | |
| # dependencies = [ | |
| # "pytest", | |
| # ] | |
| # /// | |
| import pytest | |
| @pytest.mark.parametrize('value', [0, 1, 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
| # /// script | |
| # requires-python = ">=3.11" | |
| # dependencies = [ | |
| # "zarr == 3.0.0", | |
| # ] | |
| # /// | |
| from zarr import create_array | |
| import numpy as np |
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
| 2025-01-08 15:34:58,955 - gcsfs - DEBUG - _call -- GET: https://storage.googleapis.com/download/storage/v1/b/gcp-public-data-arco-era5/o/ar%2Ffull_37-1h-0p25deg-chunk-1.zarr-v3%2Fzarr.json?alt=media, (), {} | |
| 2025-01-08 15:34:58,955 - gcsfs - DEBUG - _call -- GET: https://storage.googleapis.com/download/storage/v1/b/gcp-public-data-arco-era5/o/ar%2Ffull_37-1h-0p25deg-chunk-1.zarr-v3%2F.zgroup?alt=media, (), {} | |
| 2025-01-08 15:34:58,955 - gcsfs - DEBUG - _call -- GET: https://storage.googleapis.com/download/storage/v1/b/gcp-public-data-arco-era5/o/ar%2Ffull_37-1h-0p25deg-chunk-1.zarr-v3%2F.zattrs?alt=media, (), {} | |
| 2025-01-08 15:34:58,955 - gcsfs - DEBUG - _call -- GET: https://storage.googleapis.com/download/storage/v1/b/gcp-public-data-arco-era5/o/ar%2Ffull_37-1h-0p25deg-chunk-1.zarr-v3%2F.zmetadata?alt=media, (), {} | |
| 2025-01-08 15:34:59,751 - gcsfs - DEBUG - _call -- GET: b/{}/o, ('gcp-public-data-arco-era5',), None | |
| 2025-01-08 15:35:00,364 - gcsfs - DEBUG - _call -- GET: b/{}/o, ('gcp-public-data-arco-era5',), No |
NewerOlder