All other topics about postprocessing model data (GrADS and other software), about other numerical weather prediction software (including WRF-NMM and WRF-ARW discussion unrelated to UEMS/WRF EMS), and general meteorology talk go in this forum.
magbal wrote:meteoadriatic wrote:Hello dear people,
does anybody do textual (numeric) output from your WRF? What will be the easiest way to do so? For example, if I want to extract numeric forecast data for given lat/lon for example temperature, precipitation, wind... what are my options to do the job? Final product will be a nice html table with forecast by numbers for a given location. The first problem is extracting numeric data from model output.
Comments and recommendations are welcome, thanks!
You can also get a text output timeseries for specified Lat/Lon 's directly from the WRF. Just use the tslist. The quote below comes from readme.tslist in [wrfemslocation]/data/tables/wrf:
The output variables are:To activate time series output in WRF, a file named "tslist" must be present
in the WRF run directory. The tslist file contains a list of locations, given
by their latitude and longitude, along with a short description and an
abbreviation for each location. The first three lines in the file are
regarded as header information, and are ignored. The contents of an example
tslist file are shown below.
# 24 characters for name | pfx | LAT | LON |
Cape Hallett hallt -72.330 170.250
McMurdo Station mcm -77.851 166.713
Bogus point A pt_a 29.718 -75.772
Bogus point B pt_b 37.614 -74.650
Given a tslist file, for each location inside a model domain (either coarse
or nested) a file containing time series variables at each time step will be
created with the name pfx.dNN.TS, where pfx is the specified prefix for the
location in the tslist file, and NN is the domain ID, as given in
namelist.input. If locations not in any model domain are specified in the
tslist file, they will be simply ignored by the time series capability.
The maximum number of time series locations is controlled by the namelist
variable max_ts_locs, which may be specified in the &domains namelist. Also,
the number of entries in the buffers for time series output can be set with
the ts_buf_size variable, also found in &domains. Decreasing the size of the
buffers will reduce the amount of memory that is allocated for time series;
however, smaller buffers will need to be flushed to disk more often than
larger buffers. Thus, it is recommended that the size of the buffer be set
to the maximum number of time steps for any domain in a model run.
id: grid ID
ts_hour: forecast time in hours
id_tsloc: time series ID
ix,iy: grid location (nearest grid to the station)
t: 2 m Temperature (K)
q: 2 m vapor mixing ratio (kg/kg)
u: 10 m U wind (earth-relative)
v: 10 m V wind (earth-relative)
psfc: surface pressure (Pa)
glw: downward longwave radiation flux at the ground (W/m^2, downward is positive)
gsw: net shortwave radiation flux at the ground (W/m^2, downward is positive)
hfx: surface sensible heat flux (W/m^2, upward is positive)
lh: surface latent heat flux (W/m^2, upward is positive)
tsk: skin temperature (K)
tslb(1): top soil layer temperature (K)
rainc: rainfall from a cumulus scheme (mm)
rainnc: rainfall from an explicit scheme (mm)
clw: total column-integrated water vapor and cloud variables
Though you will need to the edit some of the perl scripts of wrfems so that the ouput textfiles doesn't get cleaned away when the model run is finished (wrf outputs them in the run directory).
Hope this might help!
where is this file located??
if I want to create a file for madrid how do I do??
madrid.tslist as described readme.tslist
but I have to activate something??
thank you very much