Data
Data
Kelly Werner
November 2017
Input Data
Input Data: Mandatory Fields
• 3D Data (data on pressure levels, for example)
Temperature
U and V components of wind
Geopotential Height
Relative Humidity/Specific Humidity
• 2D Data
Surface pressure
Mean sea-level pressure
Skin temperature/SST
2 meter temperature and relative humidity
10 meter U and V components of wind
Soil data (temperature and moisture) and soil height
• Recommended Fields
LANDSEA mask field for input data
Water equivalent snow depth
SEAICE
External Data Sources: Global
Name Resolution Coverage Temporal Website
Availability
NCEP/NCAR Reanalysis 209 km Global Jan 1948 – present http://rda.ucar.edu/da
(R1/NNRP) 6-hourly tasets/ds090.0
NCEP/DOE Reanalysis 209 km Global Jan 1979 – present http://rda.ucar.edu/da
(R2) 6-hourly tasets/ds091.0
ERA Interim Data 1.125° - 0.703° Global Jan 1979 – present http://rda.ucar.edu/da
6-hourly tasets/ds627.0
ECMWF’s Operational Varying Jan 2011 – present http://rda.ucar.edu/da
Model Analysis tasets/ds113.0
NCEP GDAS/FNL 0.25° Global July 2015 – present http://rda.ucar.edu/da
Reanalysis 6-hourly tasets/ds083.3
GFS Real-time 1° Global ftp://ftpprd.ncep.noa
a.gov/pub/data/nccf/c
om/gfs
NCEP GFS/FNL 1° Global Aug 1999 – present http://rda.ucar.edu/da
Reanalysis 6-hourly tasets/ds083.2
GFS Gridded Model 0.5° Global Dec 2002 – present http://rda.ucar.edu/da
Data 24-hourly tasets/ds335.0
NCEP GFS 0.25° 0.25° Global Jan 2015 – present http://rda.ucar.edu/da
3-hourly & 12-hourly tasets/ds084.1
External Data Sources: North America
SST DATA
NCEP SST Analysis 1° - 1/12° Global http://polar.ncep.no
aa.gov/sst
NOMAD3 SST 1° - 0.25° Global Jan 1854 – present http://nomads.ncdc.
(depending which noaa.gov/data.php
product)
NCEP & NCDC 1° - 2° Global Jan 1854 – Dec 2015 http://rda.ucar.edu/
Reconstructed SST datasets/ds277.0
External Data Sources: RDA
http://rda.ucar.edu
External Data Sources: RDA
https://rda.ucar.edu/datasets/ds083.2/
External Data Sources: RDA
http://www2.mmm.ucar.edu/wrf/users/download/free_data.html
External Data Sources: NOMADS
http://nomads.ncdc.noaa.gov
NAM
GFS
RUC
CFS
NARR
R1/R2
SST
Utilities
• Grib and Intermediate Data
• netCDF tools
• OBSGRID
• MET
GRIB Data Handling
• Documents
– https://rda.ucar.edu/index.html#gribdoc (GRIB1 data)
– https://rda.ucar.edu/index.html#grib2doc (GRIB2 data)
• Decoders
– wgrib, wgrib2, unpackgrib2.c, grib2to1.c
http://rda.ucar.edu/#!GRIB
http://www.cpc.ncep.noaa.gov/products/wesley/wgrib.html
http://www.cpc.ncep.noaa.gov/products/wesley/wgrib2
• grib2ctl.pl
– Create .ctl and .idx files, so that you can plot GRIB files with GrADS
– http://www.cpc.ncep.noaa.gov/products/wesley/grib2ctl.html
• ncl_convert2nc
– Converts from grib format to netcdf format
http://www.ncl.ucar.edu/Document/Tools/ncl_convert2nc.shtml
Writing Intermediate File Format
• http://www2.ucar.edu/wrf/users/docs/user_guide_V3/users_guid
e_chap3.htm#_Writing_Meteorological_Data
• wrf_wps_write_int
FIELD = “SST”
UNITS = “K”
DESC = “Sea Surface Temperature”
opt = True
opt@map_source = “ERA-I Data”
opt@projection = 0
opt@startloc = “SWCORNER”
opt@startlon = 0.0
opt@startlat = -90.0
opt@deltalon = 1.25
opt@deltalat = 0.942408
opt@is_wind_earth_relative = False
opt@date = “2015-07-26_00:00:00”
opt@level = 200100.
wrf_wps_wrtie_int(IM_name,FIELD,UNITS,DESC,VAR(:,:),opt)
Reading Intermediate Format Files
• wrf_wps_read_int • rd_intermediate
! opens file ===========================================
istatus = wrf_wps_open_int(filename) FIELD = TT
UNITS = K DESCRIPTION = TEMPERATURE
DATE = 2000-01-24_12:00:00 FCST = 0.000000
! reads header SOURCE = unknown model from NCEP GRID 212
wrf_wps_rdhead_int(istatus,head_real,field,h LEVEL = 200100.000000
date, \ I,J DIMS = 185, 129
units,map_source,desc) IPROJ = 1
REF_X, REF_Y = 1.000000, 1.000000
REF_LAT, REF_LON = 12.190000, -133.459000
! reads slab DX, DY = 40.635250, 40.635250
Slab = wrf_wps_rddata_int(istatus,nx,ny) TRUELAT1 = 25.000002
DATA(1,1) = 295.910950
===========================================
mpres@mpOutlineBoundarySets
“NoBoundaries” ; “Geophysical”
“National” ; “USStates”
“GeophysicalAndUSStates”
“AllBoundaries”
pares = True
pmres@gsMarkerColor = "White”
pmres@gsMarkerIndex = 16
pmres@gsMarkerSizeF = 0.01
gsn_polymarker(wks,mp,-
77.26,38.56,
pmres)
Model Domain Design
DOMS = 1 Suggested namelist options
DX = 36. parent_id = 0,
MAP = "mercator" parent_grid_ratio = 1,
LAT1 = (/ -35.0, -45., -27. /) i_parent_start = 1,
LAT2 = (/ 0., -20., -23. /) j_parent_start = 1,
LON1 = (/ 131., 121., 125./) e_we = 123,
LON2 = (/ 171., 159., 131./) e_sn = 107,
parent_id = (/ 0, 1, 2 /) dx = 36000,
parent_grid_ratio = (/ 1, 3, 3 /) dy = 36000,
map_proj = 'mercator',
ref_lat = -17.50,
ref_lon = 151.00,
truelat1 = -17.00,
design_grids.ncl truelat2 = 0.00,
stand_lon = 151.00,
18
netCDF Tools
NCO Tools
http://nco.sourceforge.net
• netCDF Operators are command-line programs that take netCDF (HDF and/or
DAP) files as input, then operate (e.g., derive new data, compute stats, print,
manipulate metadata) and output to the screen or files in various formats
(text, binary, netCDF, etc.)
• ncdiff
– Shows the differences between 2 files
ncdiff input1.nc input2.nc diff.nc
• ncrename
– Renames variables, dimensions, attributes
ncrename –v LANDUSE,LAND –a missing_value,_FillValue
file.nc
• Other options
– Time series
– Vertical Cross Section
• WRF/WPS files
– Any netCDF format file
• geo_em.d0*, met_em.d0*,
wrfinput_d0*, wrfout.d0*, wrfrst.d0*
ncview
- Beginning V3.7
• ncdump –h file
– Prints header (inclusive list of variables in the file)
global attributes:
:TITLE = " OUTPUT FROM WRF V3.4.1 MODEL";
:START_DATE = "2000-01-24_12:00:00" ;
:WEST-EAST_GRID_DIMENSION = 74 ;
:SOUTH-NORTH_GRID_DIMENSION = 61 ;
:BOTTOM-TOP_GRID_DIMENSION = 28 ;
:DX = 30000.f ;
:DY = 30000.f ;
………
………
data:
Times =
"2000-01-24_12:00:00",
"2000-01-24_18:00:00",
"2000-01-25_00:00:00"
Other Utilities
• Additional utilities
– read_wrf_nc: reads WRF netCDF file, outputs various data
– iowrf: extracts a box from WRF netCDF files, thin or destagger data
– wrf_interp: interpolates WRF output files to pressure, height-agl,
height-msl, potential temp, and equivalent potential temp, and can
perform underground extrapolation
– p_interp: converts wrfout data to pressure levels
– v_interp: adds vertical levels in WRF input and boundary files
– diffwrf: performs several functions, including making comparisons of
two WRF files
– For more details on the above utilities, see:
http://www2.mmm.ucar.edu/wrf/users/utilities/util.htm
• To download utilities:
http://www2.mmm.ucar.edu/wrf/users/download/get_sources.html
ImageMagick
http://www.imagemagick.org
• Converts graphical files from one format to another
convert file.pdf file.png
convert file.png file.bmp
• Run real.exe
• Run wrf.exe
OBSGRID - Grid Nudging - Surface
• If you are interested in doing surface analysis nudging
• Provides
– Advanced spatial methods (wavelets, objects)
– Confidence intervals
• Download it
http://www.dtcenter.org/met/users/downloads/
• Support
[email protected]
• Documentation
http://www.dtcenter.org/met/users/docs/overview.php
Questions?