Run

Run griggs Thu, 04/25/2019 - 16:26

Run the following commands to regrid 2-meter temperature data several different ways:

regrid_data_plane \
$MET_TUTORIAL_DATA/input/sample_fcst/2005080700/wrfprs_ruc13_12.tm00_G212 \
G130 \
$MET_TUTORIAL_DATA/output/regrid_data_plane/tmp_z2_G130.nc \
-field 'name="TMP"; level="Z2";'
  • The default interpolation method is nearest neighbor. Rerun this command using the mean within a 10x10 interpolation box, which applies a large amount of smoothing:
regrid_data_plane \
$MET_TUTORIAL_DATA/input/sample_fcst/2005080700/wrfprs_ruc13_12.tm00_G212 \
G130 \
$MET_TUTORIAL_DATA/output/regrid_data_plane/tmp_z2_smooth.nc \
-field 'name="TMP"; level="Z2";' \
-method UW_MEAN -width 10
  • Next, define the output grid using the path to another gridded data file over the Pacific Northwest of the United States using bilinear interpolation:
regrid_data_plane \
$MET_TUTORIAL_DATA/input/sample_fcst/2005080700/wrfprs_ruc13_12.tm00_G212 \
$MET_TUTORIAL_DATA/input/sample_fcst/2009123112/arw-fer-gep1/d01_2009123112_02400.grib \
$MET_TUTORIAL_DATA/output/regrid_data_plane/tmp_z2_bilin.nc \
-field 'name="TMP"; level="Z2";' \
-method BILIN -width 2
  • Lastly, manually define a LatLon output domain (latlon Nx Ny lat_ll lon_ll delta_lat delta_lon) using the default nearest neighbor interpolation method:
regrid_data_plane \
$MET_TUTORIAL_DATA/input/sample_fcst/2005080700/wrfprs_ruc13_12.tm00_G212 \
'latlon 100 50 25 -100 0.25 0.25' \
$MET_TUTORIAL_DATA/output/regrid_data_plane/tmp_z2_latlon.nc \
-field 'name="TMP"; level="Z2";'