Changeset 1156 for trunk/LMDZ.MARS/libf/phymars
- Timestamp:
- Jan 8, 2014, 11:49:31 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/read_dust_scenario.F90
r1047 r1156 117 117 allocate(lat(latlen), lon(lonlen), time(timelen)) 118 118 119 ! "dustop" if loading visible extinction opacity 120 ! "cdod" if loading IR absorption opacity 119 121 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 126 142 127 143 ierr=nf90_inq_varid(nid,"Time",nvarid)
Note: See TracChangeset
for help on using the changeset viewer.