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

Last change on this file since 3298 was 3182, checked in by suehring, 3 years ago

New Inifor features: grid stretching, improved command-interface, support start dates in different formats in both YYYYMMDD and YYYYMMDDHH, Ability to manually control input file prefixes (--radiation-prefix, --soil-preifx, --flow-prefix, --soilmoisture-prefix) for compatiblity with DWD forcast naming scheme; GNU-style short and long option; Prepared output of large-scale forcing profiles (no computation yet); Added preprocessor flag netcdf4 to switch output format between netCDF 3 and 4; Updated netCDF variable names and attributes to comply with PIDS v1.9; Inifor bugfixes: Improved compatibility with older Intel Intel compilers by avoiding implicit array allocation; Added origin_lon/_lat values and correct reference time in dynamic driver global attributes; corresponding PALM changes: adjustments to revised Inifor; variables names in dynamic driver adjusted; enable geostrophic forcing also in offline nested mode; variable names in LES-LES and COSMO offline nesting changed; lateral boundary flags for nesting, in- and outflow conditions renamed

File size: 4.5 KB
Line 
1# INIFOR - Mesoscale Interface for Initializing and Forcing PALM-4U (v1.3.0)
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
8## COMPILATION
9
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)
132. Run `make`
14
15
16## USAGE
17
181. Customize `./namelist` (number or grid points and spacings, end_time)
192. Run `current_version/trunk/SCRIPTS/inifor -path <scenario path> -date <YYYYMMDD>`
20
21
22## AVAILABLE NAMELIST PARAMETERS
23
24INIFOR mirrors a subset of the PALM-4U's Fortran namelists `inipar` and `d3par`
25and supports the following parameters:
26
27
28### inipar
29
30    nx, ny, nz - number of PALM-4U grid points in x, y, and z direction
31    dx, dy, dz(10) - PALM-4U grid spacings in x, y, and z direction [m]
32    dz_stretch_level - height above which the grid will be stretched [m]
33    dz_stretch_factor - factor by which the grid will be stretched
34    dz_max - maximum vertical grid spacing [m]
35    dz_stretch_level_start(9) - array of height levels above which the grid is
36    to be stretched vertically [m]
37    dz_stretch_level_end(9) - array of height levels until which the grid is to
38    be stretched vertically [m]
39    longitude, latitude - geographical coordinates of the PALM-4U origin [deg]
40
41
42### d3par
43
44    end_time - PALM-4U simulation time. INIFOR will produce hourly forcing data
45        from the start date (see -d command-line option) to end_time seconds
46        thereafter. [s]
47
48
49### EXAMPLE NAMELIST FILE
50
51    &inipar nx = 4679, ny = 3939, nz = 360
52            dx = 10., dy = 10., dz = 10.
53            dz_stretch_level = 2500.0, dz_stretch_factor = 1.08, dz_max = 100.0
54            longitude = 13.082744, latitude = 52.325079
55    /
56   
57    &d3par  end_time = 86400.0
58    /
59
60
61## AVAILABLE COMMAND-LINE PARAMETERS
62
63    -d, --date, -date <date>:
64        Start date of the simulation in the form YYYYMMDD of YYYYMMDDHH. If no
65        hours (HH) are given, INIFOR assumes that the simulation starts at O UTC
66        on that day. Default: 20130721
67       
68    -i, --init-mode, -mode <mode>:
69        Set the PALM-4U initialization mode. INIFOR can provide initial conditions
70        as either profiles or three-dimensional fields. The corresponding modes
71        are 'profile' and 'volume'. Default: volume
72
73    -l, --hhl-file, -hhl <netCDF file>:
74        Location of the netCDF file containing the vertical COSMO-DE grid levels,
75        specifically the heights of half levels (hhl, i.e. vertical cell faces).
76        Default: <scenario path>/hhl.nc
77
78    -n, --namelist <namelist file>:
79        Location of the PALM-4U namelist file. INIFOR expects the file to contain
80        two namelists, inipar and d3par, from which it will read grid parameters
81        and the simulation time. Default: ./namelist
82
83    -o, --output <output file>:
84        Name of the INIFOR output file, i.e. the PALM-4U dynamic driver.
85        Default: ./palm-4u-input.nc
86
87    -p, --path, -path <scenario path>:
88        Scenario path, i.e. the path of the meteorological input data. Default: ./
89
90    -r, --surface-pressure, -p0 <pressure>:
91        Surface pressure at z=0 in the PALM-4U domain [Pa].
92        Default: 1e5
93
94    -s, --soil-file, -soil <netCDF file>:
95        Location of the netCDF file containing the COSMO-DE soil type map.
96        Default: <scenario path>/soil.nc
97
98    -t, --static-driver, -static <netCDF file>:
99        Location of the netCDF file containing the static driver file for the case
100        to be simulated with PALM-4U. Optional parameter. Default: None
101
102    -u, --geostrophic-u, -ug <velocity>:
103        Specifies the geostrophic wind in x direction [m/s]. Default: 0
104
105    -v, --geostrophic-v, -vg <velocity>:
106        Specifies the geostrophic wind in y direction [m/s]. Default: 0
107
108    --version:
109        Output version number and exit.
110
111    -z, --elevation, -z0 <height>: Specifies the elevation of the PALM-4U domain
112        above sea level [m]. Default: 35
113
114
115## ADDITIONAL COMMAND-LINE OPTIONS
116
117    --flow-prefix <prefix>:
118        Set the file prefix of flow input files. Default: laf
119
120    --radiation-prefix <prefix>:
121        Set the file prefix of radiation input files. Default: laf
122
123    --soil-prefix <prefix>:
124        Set the file prefix of soil input files. Default: laf
125
126    --soilmoisture-prefix <prefix>:
127        Set the file prefix of soil moisture input files. Default: laf
Note: See TracBrowser for help on using the repository browser.