Extract the grid from a pair GRIB or NetCDF files extract the MIR interpolation matrix to be used

by earthkit-regrid.

usage: anemoi-transform make-regrid-file [-h]
                                         {mir-matrix,global-on-lam-mask} ...

Positional Arguments

type

Possible choices: mir-matrix, global-on-lam-mask

Sub-commands

mir-matrix

Extract the grid from a pair GRIB or NetCDF files extract the MIR interpolation matrix to be used

by earthkit-regrid.

anemoi-transform make-regrid-file mir-matrix [-h] --source-grid SOURCE_GRID
                                             --target-grid TARGET_GRID
                                             [--mir MIR] [--rounding ROUNDING]
                                             [--check]
                                             [--mir_args [MIR_ARGS ...]]
                                             --output OUTPUT

Named Arguments

--source-grid

Input file (GRIB or NetCDF).

--target-grid

Input file (GRIB or NetCDF).

--mir

MIR command (default: ‘mir’).

Default: “mir”

--rounding

Round latitudes and longitudes to this precision (default: None).

--check

Check for duplicate lat/lon pairs.

Default: False

--mir_args

MIR arguments. Usage: –mir_args arg1=val1 arg2=val2 …

--output

Output NPZ file. The name will be used to determine the type of regrid file to create.

global-on-lam-mask

Undocumented

anemoi-transform make-regrid-file global-on-lam-mask [-h] --lam-grid LAM_GRID
                                                     --global-grid GLOBAL_GRID
                                                     [--distance-km DISTANCE_KM]
                                                     --output OUTPUT
                                                     [--plot PLOT]

Named Arguments

--lam-grid

Input file (GRIB or NetCDF).

--global-grid

Input file (GRIB or NetCDF).

--distance-km

Distance in kilometers to consider for the mask. If None, use the spacing of the global grid.

--output

Output NPZ file. The name will be used to determine the type of regrid file to create.

--plot

A path in which to plot the mask.