iconarray.core.interpolate.remap_ICON_to_ICON#
- iconarray.core.interpolate.remap_ICON_to_ICON(data_file, in_grid_file, out_grid_file, num_dates)#
Remap ICON data to another ICON grid using Fieldextra.
This calls the _create_remap_nl() function to create a fieldextra namelist with your datafile, and subsequently runs fieldextra with this namelist. The path to fieldextra executable is taken from the environment variable: FIELDEXTRA_PATH. The output file along with a LOG and the namelist are saved in a tmp folder. The function returns the file location of the output file.
See fieldextra documentation for more information on fieldextra. COSMO-ORG/fieldextra
- Parameters:
data_file (
Path
) – Path to ICON data.num_dates (
integer
) – Number of time steps in data.in_grid_file (
Path
) – Path to original grid file of the ICON data.out_grid_file (
Path
) – Path to new grid to interpolate data to. In case of interpolating to regular grid, this defaults to “”.
- Returns:
file_out (
Path
) – Path to resulting interpolated data.