Documentation of the Changes in INT2LM
Version 2.06

24.05.2019

Contents:

  1. Slope of Orography
  2. Skin Conductivity
  3. Refactoring lockfile Mechanism
  4. Interpolation of hhl_in to hhl_gl
  5. Treatment of Interpolation / Computation of a Control Geopotential
  6. Changes to Output using NetCDF
  7. Technical Changes and Bug Fixes
  8. Changes in the Namelists
  9. Changes of the Results

1. Slope of Orography

(by Guy de Morsier)

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/.

Back to Contents


2. Skin Conductivity

(by Jan-Peter Schulz)

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/.

Back to Contents


3. Refactoring lockfile Mechanism

(by Guy de Morsier)

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/

Back to Contents


4. Interpolation of hhl_in to hhl_gl

(by Ulrich Schättler)

Computation of reference atmosphere and hhl_in / hhl_gl for GRIB2

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.

Back to Contents


5. Treatment of Interpolation / Computation of a Control Geopotential

(by Guy de Morsier)

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.

Back to Contents


6. Changes to Output using NetCDF

(by Guy de Morsier)

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.

Back to Contents


7. Technical Changes and Bug Fixes

Back to Contents


8. Changes of the Namelists

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
  • if .TRUE.: check, if the control geopotential level fic_in has been read, if not, abort.
  • if .FALSE.: behaviour up to now: if the control geopotential level fic_in has not been read, it is computed by other input values.
.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.

Back to Contents


9. Changes of the Results

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.

Back to Contents