Changeset 4182 for LMDZ6/branches


Ignore:
Timestamp:
Jun 20, 2022, 5:29:41 PM (2 years ago)
Author:
lguez
Message:

Use custom procedure to read aerosol optics file

Replace call to config%aerosol_optics%setup by call to an LMDZ
procedure, setup_aerosol_optics_lmdz, adapted to our aerosol optics
NetCDF file. The main differences between our file and the file
expected by config%aerosol_optics%setup are:

  • Our file has groups.
  • The SW bands in our file are ordered (as befits a NetCDF coordinate).


  • Our file does not contain variables for monochromatic asymmetry factor, single-scattering albedo and lidar backscattering ratio. These variables are not used by ECRad but they are nevertheless read and required by config%aerosol_optics%setup.
Location:
LMDZ6/branches/LMDZ_ECRad/libf/phylmd
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/LMDZ_ECRad/libf/phylmd/ecrad/radiation_aerosol_optics.F90

    r3908 r4182  
    3636    use radiation_aerosol_optics_data, only : aerosol_optics_type
    3737    use radiation_io,                  only : nulerr, radiation_abort
     38    use setup_aerosol_optics_lmdz_m, only: setup_aerosol_optics_lmdz
    3839
    3940    type(config_type), intent(inout) :: config
     
    4647      ! Load data from file and prepare to map config%n_aerosol_types
    4748      ! aerosol types
    48       call config%aerosol_optics%setup(trim(config%aerosol_optics_file_name), &
    49            &                        config%n_aerosol_types, iverbose=config%iverbosesetup)
     49       call setup_aerosol_optics_lmdz(config%aerosol_optics, &
     50            trim(config%aerosol_optics_file_name))
    5051
    5152      ! Check agreement in number of bands
Note: See TracChangeset for help on using the changeset viewer.