Ignore:
Timestamp:
Jan 8, 2014, 11:49:31 AM (11 years ago)
Author:
emillour
Message:

Mars GCM:

  • Update of the read_dust_scenario routine: when input dust scenarios file contain variable "dustop", it is assumed to be visible extinction opacity, and if it is "cdod" (recent change, for the MCDv5.1 dust scenarios), then it is IR absorption opacity (and is multiplied by 2.6 to be converted to visible extinction opacity).

EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/read_dust_scenario.F90

    r1047 r1156  
    117117   allocate(lat(latlen), lon(lonlen), time(timelen))
    118118
     119   ! "dustop" if loading visible extinction opacity
     120   ! "cdod" if loading IR absorption opacity
    119121   ierr=nf90_inq_varid(nid,"dustop",nvarid)
    120    ierr=nf90_get_var(nid,nvarid,tautes)
    121    IF (ierr .NE. nf90_noerr) THEN
    122       PRINT*, "Error: read_dust_scenario <dustop> not found"
    123       write(*,*)trim(nf90_strerror(ierr))
    124       stop
    125    ENDIF
     122   if (ierr.eq.nf90_noerr) then
     123     ierr=nf90_get_var(nid,nvarid,tautes)
     124     IF (ierr .NE. nf90_noerr) THEN
     125        PRINT*, "Error: read_dust_scenario <dustop> not found"
     126        write(*,*)trim(nf90_strerror(ierr))
     127        stop
     128     ENDIF
     129   else
     130     ! did not find "dustop" , look for "cdod"
     131     ierr=nf90_inq_varid(nid,"cdod",nvarid)
     132     ierr=nf90_get_var(nid,nvarid,tautes)
     133     IF (ierr .NE. nf90_noerr) THEN
     134        PRINT*, "Error: read_dust_scenario <cdod> not found"
     135        write(*,*)trim(nf90_strerror(ierr))
     136        stop
     137     ENDIF
     138     ! and multiply by 2*1.3=2.6 to convert from IR absorption
     139     ! to visible extinction opacity
     140     tautes(:,:,:)=2.6*tautes(:,:,:)
     141   endif
    126142
    127143   ierr=nf90_inq_varid(nid,"Time",nvarid)
Note: See TracChangeset for help on using the changeset viewer.