source: palm/trunk/UTIL/inifor/README @ 3448

Last change on this file since 3448 was 3395, checked in by eckhard, 6 years ago

inifor: Added computation of geostrophic winds from COSMO input

File size: 7.2 KB
RevLine 
[3395]1# INIFOR - Mesoscale Interface for Initializing and Forcing PALM-4U (v1.4.0)
[2696]2
3INIFOR provides the meteorological fields required to initialize and drive the
4urban-climate model PALM-4U. The required meteorological fields are
5interpolated from output data of the meso-scale model COSMO.
6
7
[3182]8## COMPILATION
9
[2696]101. Customize ./Makefile and ./tests/Makefile (netCDF library location, compiler
11   and parameters, use Makefile.ifort as a template if you want to use the Intel
12   Fortran compiler)
[3182]132. Run `make`
[2696]14
15
[3395]16## MINIMAL USAGE EXAMPLE
17
181. Customize `./namelist` (number of grid points and spacings, end_time)
192. Run `current_version/trunk/SCRIPTS/inifor --path <scenario path> --date <YYYYMMDD>`
20
21
[3182]22## USAGE
[2696]23
[3395]24After compilation, the `inifor` binary resides in the `$PALM_BIN` path, i.e. in
25`<PALM path>/current_version/trunk/SCRIPTS/`.
[2696]26
[3395]27In order to run, INIFOR requires three kinds of inputs:
[2696]28
[3395]291. hourly COSMO model output,
302. a steering namelist file, and
313. command-line options.
[2696]32
[3395]33In addition, a static driver file may be supplied (see `--static-driver` option
34below) in order to pass the coordinates of the PALM origin to INIFOR. If no
35static driver is passed to INIFOR, origin coordinates are read from the namelist
36file.
37
38A typical `inifor` call looks like this:
39
40    inifor --path /data/evaluation/20170729 --date 2017073006 \
41           --init-mode profile -n namelist -o dynamic_driver.nc \
42           --elevation 110 --input-prefix lff0
43
44### INPUT DATA: COSMO MODEL OUTPUT
45
46INIFOR processes COSMO model output which it requires to be stored in a set of
47netCDF files located in a user-specified path (see `--path` option). These are:
48
49- hhl.nc: This file provides the COSMO numerical grid. (*hhl* abbreviates
50  *height of half layers*, i.e. the heights of the vertical cell boundaries.)
51- soil.nc: This file provides the COSMO soil map and is used to destinguish land
52  from water cells.
53- `<prefix>YYYYMMDDHH-<suffix>.nc`: Each of these files contains COSMO model
54  of one time step at the given time in UTC (Y..year, M..month, D..day, H..hour).
55    - The `<prefix>` distinguishes different DWD products, for instance COSMO
56      analyses (`laf`) or forecasts (`lff`).
57    - The `<suffix>` distinguishes four kinds of COSMO model output data, namely
58        - `flow` (atmospheric fields)
59        - `rad` (radiation)
60        - `soil` (soil moisture and temperature)
61        - `soilmoisture` (precipitation and evaporation)
62    - For example, laf2016010100-flow.nc contains the atmospheric fields of the
63      COSMO analysis of Januray 1st, 2016 for 0:00 UTC.
64
65
66### AVAILABLE NAMELIST PARAMETERS
67
[3182]68INIFOR mirrors a subset of the PALM-4U's Fortran namelists `inipar` and `d3par`
69and supports the following parameters:
[2696]70
71
[3395]72#### inipar
[2696]73
[3182]74    nx, ny, nz - number of PALM-4U grid points in x, y, and z direction
75    dx, dy, dz(10) - PALM-4U grid spacings in x, y, and z direction [m]
76    dz_stretch_level - height above which the grid will be stretched [m]
77    dz_stretch_factor - factor by which the grid will be stretched
78    dz_max - maximum vertical grid spacing [m]
79    dz_stretch_level_start(9) - array of height levels above which the grid is
[3395]80        to be stretched vertically [m]
[3182]81    dz_stretch_level_end(9) - array of height levels until which the grid is to
[3395]82        be stretched vertically [m]
[3182]83    longitude, latitude - geographical coordinates of the PALM-4U origin [deg]
[2696]84
85
[3395]86#### d3par
[2696]87
[3182]88    end_time - PALM-4U simulation time. INIFOR will produce hourly forcing data
89        from the start date (see -d command-line option) to end_time seconds
90        thereafter. [s]
[2696]91
92
[3395]93#### EXAMPLE NAMELIST FILE
[2696]94
[3182]95    &inipar nx = 4679, ny = 3939, nz = 360
96            dx = 10., dy = 10., dz = 10.
97            dz_stretch_level = 2500.0, dz_stretch_factor = 1.08, dz_max = 100.0
98            longitude = 13.082744, latitude = 52.325079
99    /
100   
101    &d3par  end_time = 86400.0
102    /
[2696]103
[3182]104
[3395]105### AVAILABLE COMMAND-LINE PARAMETERS
106    --averaging-mode <mode>:
107        Selects how averaged quantities (large-scale forcing terms) are computed.
108        INIFOR supports averaging along input model levels ('level') and along
109        constant heights ('height'). Default: level
[3182]110
[3395]111    -a, --averaging-angle <angle>:
112        Width of the averaging box in longitudal and latitudal direction in the
113        source coordinate system (COSMO rotated-pole) [deg]. Default: 2.0
114
[3182]115    -d, --date, -date <date>:
116        Start date of the simulation in the form YYYYMMDD of YYYYMMDDHH. If no
117        hours (HH) are given, INIFOR assumes that the simulation starts at O UTC
118        on that day. Default: 20130721
[3395]119
[3182]120    -i, --init-mode, -mode <mode>:
121        Set the PALM-4U initialization mode. INIFOR can provide initial conditions
122        as either profiles or three-dimensional fields. The corresponding modes
123        are 'profile' and 'volume'. Default: volume
124
125    -l, --hhl-file, -hhl <netCDF file>:
[3395]126        Location of the netCDF file containing the vertical COSMO grid levels,
[3182]127        specifically the heights of half levels (hhl, i.e. vertical cell faces).
128        Default: <scenario path>/hhl.nc
129
130    -n, --namelist <namelist file>:
131        Location of the PALM-4U namelist file. INIFOR expects the file to contain
132        two namelists, inipar and d3par, from which it will read grid parameters
133        and the simulation time. Default: ./namelist
134
135    -o, --output <output file>:
136        Name of the INIFOR output file, i.e. the PALM-4U dynamic driver.
[3395]137        Default: ./dynamic_driver.nc
[3182]138
139    -p, --path, -path <scenario path>:
140        Scenario path, i.e. the path of the meteorological input data. Default: ./
141
142    -r, --surface-pressure, -p0 <pressure>:
[3395]143        Manually set the pressure at z=0 in the PALM-4U domain [Pa]. If not
144        given, the surface pressure is computed from the COSMO pressure field.
[3182]145
146    -s, --soil-file, -soil <netCDF file>:
[3395]147        Location of the netCDF file containing the COSMO soil type map.
[3182]148        Default: <scenario path>/soil.nc
149
150    -t, --static-driver, -static <netCDF file>:
[3395]151        Location of the netCDF file containing the static driver for the case
[3182]152        to be simulated with PALM-4U. Optional parameter. Default: None
153
154    -u, --geostrophic-u, -ug <velocity>:
[3395]155        Manually specify the geostrophic wind in x direction [m/s]. If not
156        given, the geostrophic wind is computed from the COSMO pressure field.
[3182]157
158    -v, --geostrophic-v, -vg <velocity>:
[3395]159        Manually specify the geostrophic wind in y direction [m/s]. If not
160        given, the geostrophic wind is computed from the COSMO pressure field.
[3182]161
162    -z, --elevation, -z0 <height>: Specifies the elevation of the PALM-4U domain
163        above sea level [m]. Default: 35
164
165
[3395]166#### ADDITIONAL COMMAND-LINE OPTIONS
[3182]167
[3395]168    --input-prefix <prefix>:
169        Set the file prefixes for all input files. Individual prefixes can be
170        overwritten with the options below. Default: laf
171
[3182]172    --flow-prefix <prefix>:
173        Set the file prefix of flow input files. Default: laf
174
175    --radiation-prefix <prefix>:
176        Set the file prefix of radiation input files. Default: laf
177
178    --soil-prefix <prefix>:
179        Set the file prefix of soil input files. Default: laf
180
181    --soilmoisture-prefix <prefix>:
182        Set the file prefix of soil moisture input files. Default: laf
[3395]183
184    --debug:
185        Enable debugging messages.
186
187    --version:
188        Output version number and exit.
189
Note: See TracBrowser for help on using the repository browser.