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 typing import Any, Generic, Literal, Type, TypeVar, Union, overload | |
from typing_extensions import Self, TypeAlias | |
import numpy as np | |
import numpy.typing as npt | |
# --Just for this example-- | |
import netCDF4 | |
CompoundType = netCDF4.CompoundType |
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 dataclasses import dataclass | |
from typing import Any | |
import netCDF4 | |
import numpy as np | |
# data | |
arr1_shape = (3,) | |
arr2_shape = (3, 10) | |
arr1 = np.arange(3, dtype=np.int64) + 5 |