Changeset 2318 for trunk


Ignore:
Timestamp:
May 12, 2020, 4:28:40 PM (5 years ago)
Author:
abierjon
Message:

Mars GCM:
Just some corrections of the preface comments in aeroptical.F90 following r2317

AB

File:
1 edited

Legend:

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

    r2317 r2318  
    11program aeroptical
    22! program for computation of aerosol opacities
    3 ! author : Antoine Bierjon, April 2020
     3! author : Antoine Bierjon, April-May 2020
    44!
    55!===============================================================================
    66!     PREFACE
    77!===============================================================================
    8 ! This program takes in input a GCM output file (diagfi,stats,concat) that
     8! This program takes as inputs a GCM output file (diagfi,stats,concat) that
    99! contains:
    1010!      - the Mass Mixing Ratios of dust (dustq) and water ice (h2o_ice)
    1111!      - their effective radius (reffdust, reffice(*))
    1212!      - the atmospheric density (rho)
    13 ! as well as the 2 boundaries of a wavelength interval and the directory
    14 ! containing the ASCII files of the optical properties of the aerosols.
     13! as well as a wavelength to calibrate the opacities, and the directory
     14! containing the ASCII files of the aerosols' optical properties.
    1515!
    1616! It outputs a netcdf file containing the opacities [1/km] of the dust and
    17 ! water ice aerosols as well as the combined opacity of the 2 aerosols,
    18 ! averaged within the prescribed wavelength interval.
     17! water ice aerosols calibrated at the prescribed wavelength.
    1918!
    2019!
    21 ! (*) due to a high uncertainty of reffice in the gcm, the value is asked
     20! (*) due to a high uncertainty of reffice in the GCM, the value is asked
    2221! directly to the user (if the user returns 0, then the program reads the GCM
    2322! file to get reffice)
     
    2625! 1) if one wanted to add another aerosol to compute, one should look for
    2726! the comments + NEW AER? that are disseminated all along the code to indicate
    28 ! the parts of the code that must be modified.
     27! the parts of the code that should be modified.
    2928! 2) another enhancement of this program could be the possibility to read its
    3029! own product files and recalibrate the opacities at another wavelength
     
    4645integer :: ierr                               ! [netcdf] subroutine returned error code
    4746character(len=256) :: error_text              ! text to display in case of error
    48 integer :: tmpvarid                           ! temporary store a variable ID number
     47integer :: tmpvarid                           ! temporarily stores a variable ID number
    4948integer :: lonlen,latlen,altlen,timelen       ! nb of grid points along longitude,latitude,altitude,time
    5049integer :: GCM_layers                         ! number of GCM layers
     
    5756real,dimension(:,:,:,:),allocatable :: rho    ! atmospheric density [kg.m-3]
    5857integer :: naerkind                           ! nb of aerosols to consider
    59 integer :: iaer                               ! aerosol kind index (1=dust, 2=water ice)
     58integer :: iaer                               ! aerosol kind index (1=dust, 2=water ice) ! + NEW AER?
    6059integer :: ilon,ilat,ialt,it                  ! Loop indices for coordinates
    6160
     
    6968                                                 ! altdimout: stores altitude dimension ID number
    7069                                                 ! timedimout: stores time dimension ID number
    71 integer :: tmpvaridout                           ! temporary stores a variable ID number
     70integer :: tmpvaridout                           ! temporarily stores a variable ID number
    7271
    7372real :: wvl_val                                  ! reference wavelength of the output opacities (given by the user) [m]
    7473integer :: varshape(4)                           ! stores a variable shape (of dimensions' IDs)
    75 character(len=16) :: tmpvarname                  ! temporary stores a variable name
    76 real,dimension(:,:,:,:,:),allocatable :: opa_aer ! Opacity of the aerosols [1/km]
     74character(len=16) :: tmpvarname                  ! temporarily stores a variable name
     75real,dimension(:,:,:,:,:),allocatable :: opa_aer ! Aerosols opacities [1/km]
    7776real :: missval                                  ! Value to put in outfile when the reff is out of bounds
    7877PARAMETER(missval=1E+20)
     
    10099! Opacity computation
    101100integer :: iwvl1,iwvl2,isize1,isize2     ! Wavelength and Particle size indices for the interpolation
    102 real :: coeff                            ! Interpolation coeficient
     101real :: coeff                            ! Interpolation coefficient
    103102real,dimension(2) :: reffQext            ! Qext after reff interpolation
    104103real :: Qext_val                         ! Qext after both interpolations
Note: See TracChangeset for help on using the changeset viewer.