ERA40 Processing Scripts

Read NOTES before using these scripts

Download all of the ERA40 scripts here


ds117.0.csh
ds117.0.ncl

Sample file names for argument spec "-i 19961221 -n 11 -t 4":
 e4oper.an.sfc.19961201 (input)
 e4oper.an.sfc.19961201.CI.redn80.grb e4oper.an.sfc.19961201.CI.regn80.grb (intermediate)
 e4oper.an.sfc.19961201.SSTK.redn80.grb e4oper.an.sfc.19961201.SSTK.regn80.grb (intermediate)
 e4oper.an.sfc.19961221.nc (output)

Nine single level fields (ds117.0).
Single level fields are: CI,SSTK,STL1,STL2,STL3,STL4,SD,SDOR,LSM.
The data are spectrally interpolated from T159 to T42 (except CI,SSTK,LSM which are done with
bilinear interpolation).

   PN    Name        Long name
   --    ----        ---------
   31    CI      Sea-ice cover
   34    SSTK    Sea surface temperature
   35    STL1    Soil temperature level 1
   36    STL2    Soil temperature level 2
   37    STL3    Soil temperature level 3
   38    STL4    Soil temperature level 4
  141    SD      Snow depth
  160    SDOR    Standard deviation of orography
  172    LSM     Land-sea mask


ds117.1.csh
ds117.1.ncl

Sample file names for argument spec "-i 19961221 -n 11 -t 4":
 e4oper.an.pl.19961201 (input)
 e4oper.an.pl.19961201.nc (output)

Q,T,U,V on 23 standard pressure levels (ds117.1).
The data are spectrally interpolated from T159 to T42.

   PN    Name        Long name
   --    ----        ---------
  130    T       Temperature
  131    U       Zonal wind component
  132    V       Meridional wind component
  133    Q       Specific humidity


ds117.2.csh
ds117.2.ncl

Sample file names for argument spec "-i 19961221 -n 11 -t 4":
 e4oper.an.ml.19961221 (input)
 e4oper.an.ml.19961221.nc (output)

PS,PHIS,Q,T,U,V on model levels (ds117.2).
The data are spectrally interpolated from T159 to T42.

   PN    Name        Long name
   --    ----        ---------
  152    PS      Surface pressure
  129    PHIS    Geopotential
  130    T       Temperature
  131    U       Zonal wind component
  132    V       Meridional wind component
  133    Q       Specific humidity


ds117.2.0.csh
ds117.2.0.ncl

Sample file names for argument spec "-i 19961221 -n 11 -t 4":
 e4oper.an.ml.19961221 e4oper.an.sfc.19961201 (input)
 e4oper.an.sfc.19961201.CI.redn80.grb e4oper.an.sfc.19961201.CI.regn80.grb (intermediate)
 e4oper.an.sfc.19961201.SSTK.redn80.grb e4oper.an.sfc.19961201.SSTK.regn80.grb (intermediate)
 e4oper.an.19961221.nc (output)

PS,PHIS,Q,T,U,V on model levels (ds117.2) + nine single level fields (ds117.0).
The added single level fields are: CI,SSTK,STL1,STL2,STL3,STL4,SD,SDOR,LSM.
The data are spectrally interpolated from T159 to T42 (except CI,SSTK,LSM which are done with
bilinear interpolation).

   PN    Name        Long name
   --    ----        ---------
  152    PS      Surface pressure
  129    PHIS    Geopotential
  130    T       Temperature
  131    U       Zonal wind component
  132    V       Meridional wind component
  133    Q       Specific humidity
   31    CI      Sea-ice cover
   34    SSTK    Sea surface temperature
   35    STL1    Soil temperature level 1
   36    STL2    Soil temperature level 2
   37    STL3    Soil temperature level 3
   38    STL4    Soil temperature level 4
  141    SD      Snow depth
  160    SDOR    Standard deviation of orography
  172    LSM     Land-sea mask


ds117.2_vintp.csh
ds117.2_vintp.ncl

Sample file names for argument spec "-i 19961221 -n 11 -t 4":
 e4oper.an.ml.19961201 (input)
 e4oper.an.ml.19961201_vintp.nc (output)

Q,T,U,V on 23 standard pressure levels (same levels as ds117.1).
The data are spectrally interpolated from T159 to T42.

   PN    Name        Long name
   --    ----        ---------
  130    T       Temperature
  131    U       Zonal wind component
  132    V       Meridional wind component
  133    Q       Specific humidity


ds118.0.csh
ds118.0.ncl

File names:
 e4inv.fixed (input)
 e4inv.fixed.nc (output)

2D model invariant fields on a regular 2.5 deg grid (144x73)

   PN    Name        Long name
   --    ----        ---------
  129    Z       Surface geopotential
  172    LSM     Land-sea mask


ds120.0.csh
ds120.0.ncl

File names:
 e4moda.sfc.YYYY (input)
 e4moda.sfc.YYYY.nc (output)

Surface fields are on a regular 2.5 deg grid (144x73)

   PN    Name        Long name
   --    ----        ---------
  146    SSHF    Surface sensible heat flux
  147    SLHF    Surface latent heat flux
  151    MSL     Mean sea level pressure
  164    TCC     Total cloud cover
  169    SSRD    Surface solar radiation downwards
  175    STRD    Surface thermal radiation downwards
  176    SSR     Surface solar radiation
  177    STR     Surface thermal radiation
  178    TSR     Top solar radiation
  179    TTR     Top thermal radiation
  180    EWSS    East-West surface stress
  181    NSSS    North-South surface stress
  186    LCC     Low cloud cover
  187    MCC     Medium cloud cover
  188    HCC     High cloud cover
  208    TSRC    Top net solar radiation, clear sky
  209    TTRC    Top net thermal radiation, clear sky
  210    SSRC    Surface net solar radiation, clear sky
  211    STRC    Surface net thermal radiation, clear sky


ds120.1.csh
ds120.1.ncl

File names:
 e4moda.dssuv.pl.YYYY e4moda.pl.nouv.YYYY (input)
 e4moda.pl.YYYY.nc (output)

2D pressure level fields are on a regular 2.5 deg grid (144x73)

   PN    Name        Long name
   --    ----        ---------
  129    Z       Geopotential
  130    T       Temperature
  131    U       Zonal wind component
  132    V       Meridional wind component
  133    Q       Specific humidity
Note that the desired pressure levels can be easily set for each variable in the NCL script.
These are currently set as follows:
 Vlev = (/1000,925,850,300,200,100,50,10/)
 Qlev = (/1000,850,700,500,300/)
 Tlev = (/1000,850,700,500,300,200/)
 Zlev = (/1000,850,500,300,200,100,50/)



NOTES
-----
1. Each of these scripts processes one of two types of data: (a) daily or
   (b) monthly means.  (There is also a script to process the dataset
   ds118.0 which is time invariant).  For the daily data, the user must
   specify a starting date and a number of days.  The available dates are
   from 19570901 to 20020831.  The requested days must all reside on the file
   of the starting date.  Most of the files contain one month, but for ds117.2
   there are as little as 10 days on the input files.  In this case, see

     http://dss.ucar.edu/datasets/ds117.2/MSS-file-list.html

   to help pick appropriate values for starting date and number of days.
2. For monthly means, the user must specify a starting year and a
   number of years.  The available years are from 1958 to 2001.  Only
   full years are processed for the monthly mean data.
3. All input files are in Grib format. Output files are NetCDF.
4. PN in the above tables is the ECMWF Grib parameter number. Please
   note that this is not the same as the WMO Grib parameter number.
5. There are two scripts associated with each set of variables:
   *.csh -- a wrapper for the NCL script so that command line arguments
            can be employed
   *.ncl -- actually does the work of converting Grib to NetCDF
6. Upon exit of the script, the working directory contains all input
   and output data files.
7. Standard out and standard error files are produced in the current
   working directory. Any intermediate files produced during the
   execution of the scripts are removed from the disk.