Changeset 156 for trunk/src


Ignore:
Timestamp:
03/06/12 14:54:23 (12 years ago)
Author:
pinsard
Message:

try to add compile_opt but seems to be incompatible with ncdf_quickwrite

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/interp_erai_t2m.pro

    r155 r156  
    168168; - fplod 20120306 
    169169; 
     170;   * try to add compile_opt seems to be incompatible with ncdf_quickwrite 
    170171;   * pro -> function 
    171172; 
     
    234235         , yyyymmddb $ 
    235236         , yyyymmdde 
     237; 
     238;++compile_opt idl2, strictarrsubs, logical_predicate 
    236239; 
    237240@cm_4cal 
     
    341344initncdf, fullfilename_t2 
    342345domdef 
    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) 
     346latin=reform(gphit[0,*]) 
     347lonin=reform(glamt[*,0]) 
     348print, 'lat grid from data',min(latin),max(latin),latin[1]-latin[0] 
     349print, 'lon grid from data',min(lonin),max(lonin),lonin[1]-lonin[0] 
    347350; 
    348351; get time in t2 file 
     
    375378initncdf, fullfilename_msk 
    376379domdef 
    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) 
     380latout=reform(gphit[0,*]) 
     381lonout=reform(glamt[*,0]) 
     382print, 'lat grid from mask ',min(latout),max(latout),latout[1]-latout[0] 
     383print, 'lon grid from mask ',min(lonout),max(lonout),lonout[1]-lonout[0] 
    381384mskout=read_ncdf("msk", file=fullfilename_msk,/nostr) 
    382385; 
     
    386389t2mout=fltarr(jpi,jpj,jptin) 
    387390for 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 $ 
    390393      , lonout,latout,method='bilinear' $ 
    391394      , OUTMASK_IND=mskout, SET_OUTMSKVAL=mskout) 
    392   t2mout(*,*,jt)=t2mout(*,*,jt)*mskout+(1.-mskout)*1.e20 
     395  t2mout[*,*,jt]=t2mout[*,*,jt]*mskout+(1.-mskout)*1.e20 
    393396endfor 
    394397; 
  • trunk/src/oaflux_mask_30n30s.pro

    r155 r156  
    105105; $URL$ 
    106106; 
     107; - fplod 20120306 
     108; 
     109;   * try to add compile_opt 
     110; 
    107111; - fplod 20120305 
    108112; 
     
    130134; 
    131135FUNCTION oaflux_mask_30n30s 
     136; 
     137;++ compile_opt idl2, strictarrsubs, logical_predicate 
    132138; 
    133139@cm_4cal 
     
    179185valmask=1.e20 
    180186ind=where(lh ge 32000,compl=nind) 
    181 lh(ind)=valmask 
    182 lh(nind)=-0.1*lh(nind) 
     187lh[ind]=valmask 
     188lh[nind]=-0.1*lh[nind] 
    183189mask_out=(lh ne valmask) 
    184190domdef, 0.,360.,-30.,30. 
    185191 
    186 lon=reform(glamt(*,0)) 
     192lon=reform(glamt[*,0]) 
    187193ind1=where(lon le 20.) 
    188194ind2=where(lon ge 30.) 
    189195 
    190 lat_out=reform(gphit(0,firstyt:lastyt)) 
    191  
    192 lon_out=[reform(glamt(ind2,0)),reform(glamt(ind1,0))+360] 
    193  
     196lat_out=reform(gphit[0,firstyt:lastyt]) 
     197 
     198lon_out=[reform(glamt[ind2,0]),reform(glamt[ind1,0])+360] 
     199 
     200; ++ this line is incompatible with  
     201; compile_opt idl2, strictarrsubs, logical_predicate 
    194202mask_out=mask_out([ind2,ind1],firstyt:lastyt)*1. 
    195203 
Note: See TracChangeset for help on using the changeset viewer.