Creating MITGCM External forcing

mkMITgcmEXF

Usage:

mkMITgcmEXF [OPTIONS] COMMAND [ARGS]...

Options:

  --help  Show this message and exit.

Subcommands

  • from-wrf: Create MITGCM external forcing files from WRF output.

mkMITgcmEXF from-wrf

Create MITGCM external forcing files from WRF output.

- Creates a land sea mask (LSM) file from the geo_em file (if specified) or the first WRF output file.

- Merges the WRF output files and applies the sellonlatbox operation if specified.

- Infer the time interval in seconds from the time difference between the first two time steps.

- Mask the land points and extrapolate it with the nearest neighbor method for T2, Q2 and PSFC.

- Compute the time difference quantities of accumulated fields.

- Unit conversions for RAIN: mm/sec to m/sec.

- Fields are renamed to match the names in https://mitgcm.readthedocs.io/en/latest/phys_pkgs/exf.html#exf-input-fields-and-units
- Writes the resulting data to MITgcm compatible binary files with the specified suffix.

Note:

- The first time step is dropped since it is used only to compute the time difference quatities of accumulated fields.

Example:

`mkMITgcmEXF from-wrf --lonlatbox 29.8,50.2,9.8,30.2 --geo-em-file geo_em.d01.nc wrfout_d01_*`

Usage:

mkMITgcmEXF from-wrf [OPTIONS] WRF_OUTPUT_FILES...

Options:

  WRF_OUTPUT_FILES...  WRF output files  \[required]
  --geo-em TEXT        geo_em file
  --lonlatbox TEXT     lonlatbox as lon1,lon2,lat1,lat2
  --suffix TEXT        suffix for output files  \[default: .bin]
  --help               Show this message and exit.