iconarray.core.interpolate.remap_ICON_to_regulargrid#
- iconarray.core.interpolate.remap_ICON_to_regulargrid(data_file, in_grid_file, num_dates, region='CH')#
REMAP ICON data to regular 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.region (
str
) – Switzerland or Europe. Defaults to Swizerland.
- Returns:
file_out (
Path
) – Path to resulting interpolated data.