Project

General

Profile

remap - non-standard remapping needed

Added by S Berendsen 6 months ago

Hello all,

I'm currently using the HydroBlocks model (https://github.com/chaneyn/HydroBlocks) which is a high resolution LSM based on NOAH-MP. It works by clustering the high resolution input data into so-called Hydrological Response Units (HRU), which are then computed as one cell instead of each cell individually. The output is a yearly NetCDF file with one time series for each HRU and a geotiff with the HRU-to-coords mapping. Converting the results back into a displayable file was done so far via conversion into a geotiff for each timestep and then creating a netcdf file using gdal. This is rather slow...

Considering that there is the remap function in cdo which takes a "weights" file describing how to map from one system to another, I was wondering whether it can be abused to do the HRU->coords mapping? If so, how can the weights file be generated from mapping geotiff?

Thanks for the help in advance.

Kind regards,

Sven

1950-01-01.nc (23.6 MB) 1950-01-01.nc Sample Model Output file
hru_mapping_latlon.tif (517 KB) hru_mapping_latlon.tif HRU mapping file

Replies (1)

RE: remap - non-standard remapping needed - Added by Karin Meier-Fleischer 6 months ago

I guess the answer is no, CDO can't do this.

    (1-1/1)