- Timestamp:
- 03/06/12 14:54:23 (12 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/interp_erai_t2m.pro
r155 r156 168 168 ; - fplod 20120306 169 169 ; 170 ; * try to add compile_opt seems to be incompatible with ncdf_quickwrite 170 171 ; * pro -> function 171 172 ; … … 234 235 , yyyymmddb $ 235 236 , yyyymmdde 237 ; 238 ;++compile_opt idl2, strictarrsubs, logical_predicate 236 239 ; 237 240 @cm_4cal … … 341 344 initncdf, fullfilename_t2 342 345 domdef 343 latin=reform(gphit (0,*))344 lonin=reform(glamt (*,0))345 print, 'lat grid from data',min(latin),max(latin),latin (1)-latin(0)346 print, 'lon grid from data',min(lonin),max(lonin),lonin (1)-lonin(0)346 latin=reform(gphit[0,*]) 347 lonin=reform(glamt[*,0]) 348 print, 'lat grid from data',min(latin),max(latin),latin[1]-latin[0] 349 print, 'lon grid from data',min(lonin),max(lonin),lonin[1]-lonin[0] 347 350 ; 348 351 ; get time in t2 file … … 375 378 initncdf, fullfilename_msk 376 379 domdef 377 latout=reform(gphit (0,*))378 lonout=reform(glamt (*,0))379 print, 'lat grid from mask ',min(latout),max(latout),latout (1)-latout(0)380 print, 'lon grid from mask ',min(lonout),max(lonout),lonout (1)-lonout(0)380 latout=reform(gphit[0,*]) 381 lonout=reform(glamt[*,0]) 382 print, 'lat grid from mask ',min(latout),max(latout),latout[1]-latout[0] 383 print, 'lon grid from mask ',min(lonout),max(lonout),lonout[1]-lonout[0] 381 384 mskout=read_ncdf("msk", file=fullfilename_msk,/nostr) 382 385 ; … … 386 389 t2mout=fltarr(jpi,jpj,jptin) 387 390 for jt=0,jptin-1 do begin 388 tab=reform(t2min (*,*,jt))389 t2mout (*,*,jt)=call_interp2d(tab,lonin,latin,mskin $391 tab=reform(t2min[*,*,jt]) 392 t2mout[*,*,jt]=call_interp2d(tab,lonin,latin,mskin $ 390 393 , lonout,latout,method='bilinear' $ 391 394 , OUTMASK_IND=mskout, SET_OUTMSKVAL=mskout) 392 t2mout (*,*,jt)=t2mout(*,*,jt)*mskout+(1.-mskout)*1.e20395 t2mout[*,*,jt]=t2mout[*,*,jt]*mskout+(1.-mskout)*1.e20 393 396 endfor 394 397 ; -
trunk/src/oaflux_mask_30n30s.pro
r155 r156 105 105 ; $URL$ 106 106 ; 107 ; - fplod 20120306 108 ; 109 ; * try to add compile_opt 110 ; 107 111 ; - fplod 20120305 108 112 ; … … 130 134 ; 131 135 FUNCTION oaflux_mask_30n30s 136 ; 137 ;++ compile_opt idl2, strictarrsubs, logical_predicate 132 138 ; 133 139 @cm_4cal … … 179 185 valmask=1.e20 180 186 ind=where(lh ge 32000,compl=nind) 181 lh (ind)=valmask182 lh (nind)=-0.1*lh(nind)187 lh[ind]=valmask 188 lh[nind]=-0.1*lh[nind] 183 189 mask_out=(lh ne valmask) 184 190 domdef, 0.,360.,-30.,30. 185 191 186 lon=reform(glamt (*,0))192 lon=reform(glamt[*,0]) 187 193 ind1=where(lon le 20.) 188 194 ind2=where(lon ge 30.) 189 195 190 lat_out=reform(gphit(0,firstyt:lastyt)) 191 192 lon_out=[reform(glamt(ind2,0)),reform(glamt(ind1,0))+360] 193 196 lat_out=reform(gphit[0,firstyt:lastyt]) 197 198 lon_out=[reform(glamt[ind2,0]),reform(glamt[ind1,0])+360] 199 200 ; ++ this line is incompatible with 201 ; compile_opt idl2, strictarrsubs, logical_predicate 194 202 mask_out=mask_out([ind2,ind1],firstyt:lastyt)*1. 195 203
Note: See TracChangeset
for help on using the changeset viewer.