source: trunk/LMDZ.MARS/util/aeroptical.def @ 2817

Last change on this file since 2817 was 2817, checked in by abierjon, 2 years ago

Mars GCM:
Non-retrocompatible changes of the program util/aeroptical.F90 :

  • make the program more generic, as the user now specify in aeroptical.def the aerosols to be computed, as well as the necessary information for each aerosol, that are : aerosol_name,aerosol_mmr(GCM variable name),aerosol_reff(GCM variable name or single value in m),aerosol_rho(value in kg/m3),optpropfile_name
  • creation of a separate module aeropt_mod.F90 that can be used by other programs (e.g. for the MCD), with one subroutine reading the ASCII optical properties file, one subroutine interpolating optical properties at a given (wvl,reff) tuple, and one subroutine deallocating the module variables.
  • modify the compile program to compile this module aeropt_mod.F90 along with the aeroptical.F90 program. There is no change for the user, which just has to run the command 'compile aeroptical' like before.
  • correct the handling of user's wavelength or particle sizes that do not lie within the boundaries of the optical properties file.

AB

File size: 1.3 KB
Line 
1diagfi.nc
2~/datadir
35.e-7
4ext
5dust,dustq,reffdust,2500,optprop_dustvis_TM_n50.dat
6h2o_ice,h2o_ice,5.e-6,920,optprop_icevis_n30.dat
7stormdust,rdsdustq,reffstormdust,2500,optprop_dustvis_TM_n50.dat
8topdust,topdustq,refftopdust,2500,optprop_dustvis_TM_n50.dat
9
10
11##----------------------------------------------------------
121) Name of the GCM input file
132) Directory where the optical properties files are
143) The wavelength at which the output opacities are calibrated (in meters)
154) Opacity type : extinction (ext) or absorption (abs)
165) aerosol_name,aerosol_mmr(variable name),aerosol_reff(variable name or single value in m),aerosol_rho(value in kg/m3),optpropfile_name
176) aerosol_name,aerosol_mmr(variable name),aerosol_reff(variable name or single value in m),aerosol_rho(value in kg/m3),optpropfile_name
18...
19N) aerosol_name,aerosol_mmr(variable name),aerosol_reff(variable name or single value in m),aerosol_rho(value in kg/m3),optpropfile_name
20
21##----------------------------------------------------------
22USUAL GCM OPTPROPFILES :
23- for water ice : "optprop_icevis_n30.dat" for visible (wvl<=5.e-6) ; "optprop_iceir_n30.dat" for infrared (wvl>5.e-6)
24- for dust (any type) : "optprop_dustvis_TM_n50.dat" for visible (wvl<=5.e-6) ; "optprop_dustir_n50.dat" for infrared (wvl>5.e-6)
Note: See TracBrowser for help on using the repository browser.