
The purpose of the  procedures inside Data_Pressure directory 
is to generate the initial file for the modal decomposition 
and the modal energetics.

To generate the inital condition for modal energy analysis has 3 steps:

  a) Open GrADS with the comand grads. Then run the GrADS script:

     Get_Data caso epoca casestudy mean

     This will generate the initial data as 5 netcdf files
     (zonal wind, meridional wind, temperature, specific
     humidity and geopotential height). Using GrADS to 
     generate netcdf files it is allowed only one file
     at a time, then 5 files.

     Run GetData -h inside grads command for description
     of the arguments.

  b) Go to directory ./Get_Netcdf/source and do make, then
     cd ../run and run:

     ./Run_Netcdf caso epoca casestudy mean DelFileInp

     A single binary file with the variables zonal wind,
     meridional wind, temperature, specific humidity and
     geopotential height will be generated.

     Run ./Run_Netcdf -h for description of the arguments.

  c) Go to directory ./Get_ENER_UVZ/source and do make, then 
     cd ../run and run:

     ./Run_GEUVZ CasoInp KmaxInp eoca casestudy mean DelFileInp MmaxOut GrdInp CasoClm

     Then a quadratic gaussian Rhomboidal grid RB(MmaxOut-1) in a
     GrADS sequential format data file with  zonal wind, meridional wind
     and geopotential height to be read by the program that performs
     the vertical decomposition.

     Run ./Run_GEUVZ -h for description of the arguments.

     The layout of the initial data for is a file in REAL(KIND=4)
     with sequential records and in a selected horizontal Rhomboidal
     (through MmaxOut), with Kmax pressure levels from the reference 
     case (the first 1000 hPa):
     zonal wind (m/s) for each layer as a record (Kmax records)
     meridional wind (m/s) for each layer as a record (Kmax records)
     geopotential height (m) for each layer as a record (Kmax records)

     You can geneterate the initial data with this layout using
     another procedure than GrADS.

     Vertical interpolation to the reference case is done in this
     procedure, then all cases will have on output the same vertical 
     modes as the reference case and the same vertical distribution 
     by vertical classes.

Obs: 
    1 - The GrADS script GetTriplet.gs generate all the 5 netcdf files
        for the Triplet case study for the cases CFSR1 and NCEPF.
    2 - The GrADS script GetRainRS.gs generate all the 5 netcdf files 
        for the RainRS case study for the cases CFSV2, NCEPF and MONAN.
    3 - The GrADS script GetRainRS_ERA_5.gs generate all the 5 netcdf files 
        for the RainRS case study for the case ERA_5.
    4 - The GrADS script GetSaoSebastiao.gs generate all the 5 netcdf files 
        for the SaoSebatiao case study for the cases CFSV2 and NCEPF.
    5 - The GrADS script GetSaoSebastiao_ERA_5.gs generate all the 5 netcdf files 
        for the SaoSebatiao case study for the case ERA_5.

