crop_mhm_setup#
Crop an existing mHM setup or setup file to a target domain.
The module crops NetCDF inputs by mask or coordinate bounds, recreates the input folder structure, rewrites ESRI headers where needed, copies unsupported files, and can create a matching latlon file for the cropped setup.
Classes#
Files needed for latlon creation. |
Functions#
|
Create lat/lon headers for multiple resolutions and write the latlon file. |
|
Crops one file by lat and lon slice and may mask it with the mask dataarray. |
|
Crop the nc file and create a new header file for the new coordinates. |
|
Cut out an existing mhm domain setup using a mask file. |
|
Regrid a xarray mask dataset mask_ds to the resolution of a second dataset ds2. |