file_handler#
Read, write, and convert gridded setup files.
The module provides shared helpers for NetCDF, ESRI ASCII, and GeoTIFF-style workflows, including coordinate normalization, header creation, encoding cleanup, grid metadata handling, and output provenance.
Classes#
|
Define Types of chunking. |
|
Container to preserve a dataset's spatial grid metadata. |
Functions#
|
Chunk xarray.DataSet depending on chunk_type and available memory. |
|
Chunk dataset adjusting chunk size to avaiable memory. |
|
Chunk only in space (lat/lon), leaving time whole, sized to available memory. |
|
Write a header file from a dataset. |
|
Crop file by mask. |
|
Get latitude or longitude values from DataSet. |
|
Load a dataset from a file, directory, or pattern. |
|
Extract a grid definition from |
|
Read file and return xarray dataset. |
|
Read an mHM readable asci file to an xarray dataset. |
|
Attach |
|
Write xarray Dataset to an ASCII file that can be read by mHM. |
|
Write xarray Datasets to file with file type depending on the file suffix. |
|
Write an xarray Dataset or DataArray to a NetCDF file. |