Ignore:
Timestamp:
Nov 14, 2020, 3:27:44 PM (4 years ago)
Author:
emillour
Message:

Mars GCM:

  • Make a single README file (get rid of REAME.exec) and update "compile" script to (hopefully) better illustrate how to compile utilities
  • Update utilities zrecast and lslin: zrecast.F90: Force the vertical interpolation of any variable starting by "rho" to be in log space (as it should for density, molecular concentration in mol.cm-3 etc..). Set missing value to 1.E20 lslin.F90: fix various problems in the output.

FF + EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/util/zrecast.F90

    r2401 r2432  
    6161! TN 01/2013 : Adapted for large output files with at least 2 variables > 2 GiB
    6262! TN 10/2013 : Read and write controle field, if available
     63! FF 10/2020 : Force interpolation in log space for variable starting by "rho"
    6364!
    6465implicit none
     
    9495integer,dimension(3) :: surfdatashape ! shape of 3D (surface+time) datasets
    9596
    96 real :: miss_val=-9.99e+33 ! special "missing value" to specify missing data
    97 real,parameter :: miss_val_def=-9.99e+33 ! default value for "missing value"
     97real :: miss_val= 1.E+20 ! special "missing value" to specify missing data
     98real,parameter :: miss_val_def= 1.E+20 ! default value for "missing value"
    9899character (len=64), dimension(:), allocatable :: var
    99100! var(): names of variables that will be processed
     
    18091810  ! interpolate dataset onto new grid
    18101811  ! check if variable is "rho" (to set flag for interpolation below)
    1811   if (var(i).eq.'rho') then
     1812  if (var(i)(1:3).eq.'rho') then
    18121813    j=1
     1814    write(*,*) trim(var(i)), ' is interpolated in log scale'
    18131815  else
    18141816    j=0
     
    18641866    ! interpolate dataset onto new grid
    18651867    ! check if variable is "rho" (to set flag for interpolation below)
    1866     if (var(i).eq.'rho') then
     1868    if (var(i)(1:3).eq.'rho') then
    18671869      j=1
     1870      write(*,*) trim(var(i)), ' is interpolated in log scale'
    18681871    else
    18691872      j=0
     
    19191922  ! interpolate dataset onto new grid
    19201923  ! check if variable is "rho" (to set flag for interpolation below)
    1921   if (var(i).eq.'rho') then
     1924  if (var(i)(1:3).eq.'rho') then
    19221925    j=1
     1926    write(*,*) trim(var(i)), ' is interpolated in log scale'
    19231927  else
    19241928    j=0
Note: See TracChangeset for help on using the changeset viewer.