Ignore:
Timestamp:
Nov 17, 2020, 1:36:34 PM (4 years ago)
Author:
abierjon
Message:

Mars GCM:
Update utilities :
concat.F90

  • rewrite and simplify the handling of time and offset so that any file can be concatenated, including files from different years or stats file
  • use modulo to shift starting sols in concat.nc to values between 0 and 669
  • add a "adls" option in addition to "sol" or "ls" to add a Ls 1D variable

while keeping "sol" as the Time axis

  • add conservation of altitude attributes (long_name,units,positive)
  • enable absence of both hybrid (aps,bps) and sigma levels

solzenangle.F90

  • improve calculation for 1 sol file (stats) to use all local time data
  • read the starting sol in the file instead of asking it to the user (except for stats file) ; keep the possibility for user to change it
  • ask mean Ls value for stats file instead of sol number
  • fix crash when using "all variable" option (ticket #66)
  • fix bug on aps,bps by using GCM_layers dimension instead of altitude

localtime.F90

  • fix crash when using "all variable" option (ticket #66)
  • fix bug on aps,bps by using GCM_layers dimension instead of altitude

For all 3 utilities :

  • handle all ndim cases for the variables (ticket #52)
  • change "title" attribute into "long_name" by default (ticket #48)
  • extend size of long_name character string (ticket #57)
  • remove the use of #ifdef NC_DOUBLE (ticket #67)

AB

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/util/concatnc.def

    r2313 r2434  
    33diagfi12.nc       
    44
    5 515              ! Starting sol to use in the output file?
    6 sol              ! output timescale ("sol" or "ls")
     5n              ! Starting sol of the run stored in the first input file?
     6sol              ! output timescale ("sol" or "Ls" or "adls")
    77tsurf           
    88ps
    99
    1010
     11
    1112-----------------------------------------------------------------------
    12 ABOVE is the list of inputs to be fed to "concatnc.e" if you don't want
     13ABOVE is the list of inputs to be fed to "concatnc.e" if you don t want
    1314to reply directly to the program:
    1415
    15161) List of N files to be read  (N lines)
    16172) blank line at the end
    17 3) Starting sol of the output file?
    18 (or a blank if you want to use the first file's
    19  starting sol = time(1)+controle(4) )
    20 4) Output timescale ("sol" or "ls")
    21 5) List of X variables to be kept (X lines) or 'all'
    22 6) blank line at the end
     183) Starting sol of the run stored in the first input file? juste write "n" if you
     19   wish to keep the date of the input files (recommended)
     204) List of X variables to be kept (X lines) or 'all'
     215) blank line at the end
    2322
    2423The use is :
Note: See TracChangeset for help on using the changeset viewer.