Changeset 801 for trunk/LMDZ.MARS/libf
- Timestamp:
- Oct 5, 2012, 2:25:36 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/albedocaps.F90
r707 r801 13 13 #include"surfdat.h" 14 14 #include"callkeys.h" 15 #ifdef MESOSCALE 16 #include"comgeomfi.h" 17 #endif 15 18 16 19 ! arguments: … … 51 54 52 55 do ig=1,ngrid 56 #ifndef MESOSCALE 53 57 if (ig.gt.ngrid/2+1) then 58 #else 59 if (lati(ig)*180./acos(-1.).lt.0.) then 60 #endif 54 61 icap=2 ! Southern hemisphere 55 62 else … … 64 71 ! write(*,*) "albedocaps: call TES_icecap_albedo" 65 72 ! write(*,*) "albedocaps: zls=",zls," ig=",ig 66 call TES_icecap_albedo(zls,ig,psolaralb(ig,1) )73 call TES_icecap_albedo(zls,ig,psolaralb(ig,1),icap) 67 74 ! write(*,*) "albedocaps: psolaralb(ig,1)=",psolaralb(ig,1) 68 75 psolaralb(ig,2)=psolaralb(ig,1) … … 89 96 90 97 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 91 subroutine TES_icecap_albedo(zls,ig,alb )98 subroutine TES_icecap_albedo(zls,ig,alb,icap) 92 99 93 100 implicit none … … 103 110 integer,intent(in) :: ig ! grid point index 104 111 real,intent(out) :: alb ! (interpolated) TES ice albedo at that grid point 112 integer :: icap ! =1: Northern hemisphere =2: Southern hemisphere 105 113 106 114 ! local variables: … … 118 126 real :: lond ! longitude, in degrees 119 127 integer :: i 120 integer :: icap ! =1: Northern hemisphere =2: Southern hemisphere121 128 122 129 ! TES datasets: (hard coded fixed length/sizes; for now) … … 231 238 endif ! of if firstcall 232 239 233 ! 1. Identify hemisphere and encompassing latitudes 234 if (ig.GT.ngridmx/2+1) then 235 icap=2 ! Southern hemisphere 236 else 237 icap=1 ! Northern hemisphere 238 endif 240 ! 1. Identify encompassing latitudes 239 241 240 242 ! Check that latitude is such that there is TES data to use
Note: See TracChangeset
for help on using the changeset viewer.