SPECTRE

After running the model, you can compute spectra with the program SPECTRE, that gives the kinetic energy density according to the wavelength or the wave number [Ricard et al., 2013]. The calculation uses a discrete cosinus transform to convert grid-point fields into spectral space ones.

SPECTRE program and its corresponding namelist and function

Executable

Namelist

Function

SPECTRE

SPEC1.nam

Compute spectra after simulation

The following namelists can be used in the SPEC1.nam file :

NAM_SPECTRE_FILE

NAM_SPECTRE_FILE content

Fortran name

Fortran type

Default value

YINIFILE

ARRAY(CHARACTER(LEN=128))

CTYPEFILE

CHARACTER(LEN=6)

‘MESONH’

YOUTFILE

ARRAY(CHARACTER(LEN=128))

LSTAT

LOGICAL

.FALSE.

  • YINIFILE : name of the input synchronous backup file.

  • CTYPEFILE : type of the input file (‘AROME ‘, ‘MESONH’)

  • YOUTFILE : prefix of the output file.

    • If the user does specify this name, the output file will be named YOUTFILE_U, YOUTFILE_V ….

    • If the user does NOT specify this name, the output file will be named spectra_YINIFILE_U, spectra_YINIFILE_V ….

  • LSTAT : flag to have some statistiques on fields if .TRUE.

NAM_SPECTRE

NAM_SPECTRE content

Fortran name

Fortran type

Default value

LSPECTRE_U

LOGICAL

.FALSE.

LSPECTRE_V

LOGICAL

.FALSE.

LSPECTRE_W

LOGICAL

.FALSE.

LSPECTRE_TH

LOGICAL

.FALSE.

LSPECTRE_RV

LOGICAL

.FALSE.

LSPECTRE_LSU

LOGICAL

.FALSE.

LSPECTRE_LSV

LOGICAL

.FALSE.

LSPECTRE_LSW

LOGICAL

.FALSE.

LSPECTRE_LSTH

LOGICAL

.FALSE.

LSPECTRE_LSRV

LOGICAL

.FALSE.

LSMOOTH

LOGICAL

.FALSE.

  • LSPECTRE_U : flag to compute spectrum of U component

  • LSPECTRE_V : flag to compute spectrum of V component

  • LSPECTRE_W : flag to compute spectrum of W

  • LSPECTRE_TH : flag to compute spectrum of Theta

  • LSPECTRE_RV : flag to compute spectrum of vapor mixing ratio

  • LSPECTRE_LSU : flag to compute spectrum of large scale U component

  • LSPECTRE_LSV : flag to compute spectrum of large scale V component

  • LSPECTRE_LSW : flag to compute spectrum of large scale W

  • LSPECTRE_LSTH : flag to compute spectrum of large scale Theta

  • LSPECTRE_LSRV : flag to compute spectrum of large scale vapor mixing ratio

  • LSMOOTH : flag to smooth the results

NAM_ZOOM_SPECTRE

NAM_ZOOM_SPECTRE content

Fortran name

Fortran type

Default value

LZOOM

LOGICAL

.FALSE.

NXDEB

INTEGER

NYDEB

INTEGER

NITOT

INTEGER

NJTOT

INTEGER

  • LZOOM : flag to make a zoom on the file domain

  • NXDEB : first point I index, left to and out of the wanted domain

  • NYDEB : first point J index, under and out of the wanted domain

  • NITOT : number of grid points in I direction. It must be equal to \(2^m \times 3^n \times 5^p\) with \((m,n,p) \ge 0\).

  • NJTOT : number of grid points in J direction. It must be equal to \(2^m \times 3^n \times 5^p\) with \((m,n,p) \ge 0\).

NAM_DOMAIN_AROME

This namelist is only available for CTYPEFILE=’AROME’. It contains the caracteristics of the domain arome in the input file.

NAM_DOMAIN_AROME content

Fortran name

Fortran type

Default value

NI

INTEGER

750

NJ

INTEGER

720

NK

INTEGER

60

XDELTAX

INTEGER

2500

XDELTAY

INTEGER

2500

  • NI : number of points to read in I direction

  • NJ : number of points to read in J direction

  • NK : number of vertical levels to read

  • XDELTAX : gridsize of arome file in I direction (m)

  • XDELTAY : gridsize of arome file in J direction (m)