For the modifications regarding the ground water runoff in the soil model TERRA (by Linda Schlemmer), an additional external parameter field, the slope of orography (S_ORO) is needed. This field is provided by EXTPAR and given to the COSMO-Model laf-file through INT2LM.
To activate reading S_ORO and writing it to the laf-file, a new namelist switch l_s_oro (Default: FALSE) has been added in /CONTRL/.
For the skin temperature formulation added in COSMO-Model 5.06a, an additional external parameter field, the skin conductivity (SKC) is needed. This field is provided by EXTPAR and given to the COSMO-Model laf-file through INT2LM.
To activate reading SKC and writing it to the laf-file, a new namelist switch lskinc (Default: FALSE) has been added in /CONTRL/.
Using the lockfile mechanism is an alternative approach (compared to READY files) to wait for input files, which is used by MeteoSwiss. It has been implemented into INT2LM some time ago but is now more similar to the mechanism used in the COSMO-Model.
Files are not written directly to a file called filename, but first to a file with name filename.lck. Only if the file is fully written and is closed, the name is changed to filename. For this the (non-standard) Fortran intrinsic RENAME is used. But this intrinsic nowadays is offered by (nearly) all compilers.
Using lockfiles is activated by setting llockfiles = .TRUE. in namelist /DATA/
Instead of re-computing hhl_gl for the fine orography grid, just interpolate it from hhl_in (because in GRIB2 and for SLEVE there are not all necessary meta data available to re-compute).
NOTE:
This changes the results of the atmospheric variables slightly, but only up to
numerical noise. And only if incoming COSMO data in GRIB2 are used.
For the computation of the surface pressure and then computing full pressure and splitting the relative humidity, a control geopotential level from the driving model is needed. If this is not available, it is computed by other input fields.
But this can lead to noisy pressure fields, therefore a switch has been implemented, so that the user can choose, whether such a computed control geopotential is used or not.
New namelist variable in /GRID_IN/: lcontrol_fi: Default: .FALSE.
NETCDF4 has been introduced as optional output format. It can be activated by ylm_form_write = 'nc-4'.
Possibility to compress NETCDF4 files:
Changes for NETCDF coding of HORIZON.
Group | Name | Meaning | Default | |
---|---|---|---|---|
/CONTRL/ | l_s_oro | NEW | If .TRUE., read the external parameter field S_ORO and put it to the COSMO laf-file. | .FALSE. |
lskinc | NEW | If .TRUE., read the external parameter field SKC and put it to the COSMO laf-file. | .FALSE. | |
/GRID_IN/ | lcontrol_fi | NEW |
|
.FALSE. |
/DATA/ | llockfiles | NEW | Indicates whether to use lockfiles or not. | .FALSE. |
ylm_form_write | new option | 'nc-4' to write NetCDF4 format. | 'grb1' |
NOTE:
There was another change in the namelist group /CONTRL/:
For lcm2lm = .TRUE. (which is yinput_model = 'CM') and
itype_profiles_vert_interp = 2, the type of vertical interpolation
is reset to 1 again:
itype_profiles_vert_interp = 1.
Interpolating hhl_in fields to hhl_gl instead of computing hhl_gl with (perhaps) available meta data changes the results numerically. But this is only when using GRIB2.