Ignore:
Timestamp:
08/30/11 14:38:29 (13 years ago)
Author:
pinsard
Message:

suppress blank lines trailing blank

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/interp_erai_lwr_1989_2009.pro

    r94 r97  
    1212; Interpolation of str from ERA-I grid to OAFLUX grid 
    1313; 
    14 ; :file:`${PROJECT_ID}/20c3m_erai_str_TROP_1989_2009.nc`  
    15 ; containing str from ERA-I  
     14; :file:`${PROJECT_ID}/20c3m_erai_str_TROP_1989_2009.nc` 
     15; containing str from ERA-I 
    1616; has been produced 
    1717; by :ref:`compute_erai_daily_region_2d.sh`. 
    1818; 
    19 ; :file:`${PROJECT_ID}/mask_oaflux_30N30S.nc`  
     19; :file:`${PROJECT_ID}/mask_oaflux_30N30S.nc` 
    2020; containing OAFLUX mask 
    21 ; has been produced by  
     21; has been produced by 
    2222; :ref:`oaflux_mask_30N30S.pro`. 
    2323; 
    2424; Interpolated str is written in 
    25 ; :file:`${PROJECT_OD}/erai_lwr_19890102_20091231_oafluxgrid.nc`  
     25; :file:`${PROJECT_OD}/erai_lwr_19890102_20091231_oafluxgrid.nc` 
    2626; if this file not already exists. 
    2727; 
    28 ; This output file  
    29 ; :file:`${PROJECT_OD}/erai_lwr_19890102_20091231_oafluxgrid.nc`  
     28; This output file 
     29; :file:`${PROJECT_OD}/erai_lwr_19890102_20091231_oafluxgrid.nc` 
    3030; must be processed after by :ref:`add_198900101.sh`. 
    3131; 
     
    207207   STOP 
    208208ENDIF 
    209  
    210 st=19890101  
     209; 
     210st=19890101 
    211211en=20090801 
    212  
     212; 
    213213; build data filename 
    214214filename='20c3m_erai_str_TROP_1989_2009.nc' 
     
    260260lwrin=read_ncdf("str",0,7668,/timestep,file=fullfilename,/nostr) 
    261261lwrin=-1*lwrin 
    262  
     262; 
    263263initncdf, fullfilename 
    264264domdef 
    265 latin=reform(gphit(0,*))  
     265latin=reform(gphit(0,*)) 
    266266lonin=reform(glamt(*,0)) 
    267267print, 'lat grid ',min(latin),max(latin),latin(1)-latin(0) 
    268268print, 'lon grid ',min(lonin),max(lonin),lonin(1)-lonin(0) 
    269  
    270 timein=time  
     269; 
     270timein=time 
    271271jptin=jpt 
    272272tab=lwrin(*,*,0) 
    273273mskin=glamt*0.+1. 
    274  
     274; 
    275275initncdf, fullfilename_msk 
    276276domdef 
     
    279279print, 'lon grid ',min(lonout),max(lonout),lonout(1)-lonout(0) 
    280280mskout=read_ncdf("msk", file=fullfilename_msk,/nostr) 
    281  
     281; 
    282282si=size(lwrin) 
    283283lwrout=fltarr(jpi,jpj,jptin) 
    284  
     284; 
    285285for jt=0,jptin-1 do begin 
    286286  ; ++print, 'Interpolation jt=',jt,' / ',jptin-1 
    287  
     287; 
    288288  tab=reform(lwrin(*,*,jt)) 
    289289  lwrout(*,*,jt)=call_interp2d(tab,lonin,latin,mskin $ 
     
    291291      , OUTMASK_IND=mskout, SET_OUTMSKVAL=mskout) 
    292292  lwrout(*,*,jt)=lwrout(*,*,jt)*mskout+(1.-mskout)*1.e20 
    293  
     293; 
    294294endfor 
    295  
    296 time=timegen(7669, start=julday(1,2,1989,0), units='days')  
     295; 
     296time=timegen(7669, start=julday(1,2,1989,0), units='days') 
    297297jpt=n_elements(time) 
    298 tt=time  
     298tt=time 
    299299jptin=jpt 
    300300cda0=string(jul2date(tt(0)),format='(i8.8)') 
    301301cda1=string(jul2date(tt(jpt-1)),format='(i8.8)') 
    302302tt=tt-julday(1,1,1950,00,00,00) 
    303 xlon=reform(glamt(*,0) )  
     303xlon=reform(glamt(*,0) ) 
    304304ylat=reform(gphit(0,*)) 
    305  
     305; 
    306306initncdf, fullfilename_msk 
    307307valmask=1.e20 
    308  
     308; 
    309309ylat=latout 
    310310xlon=lonout 
     
    313313lat_attr={units:'degrees_north',long_name:'Latitude'} 
    314314time_attr={units:'days since 1950-01-01 00:00:00',long_name:'Time axis',time_origin:' 1950-JAN-01 00:00:00'} 
    315  
     315; 
    316316lwr_attr={units:'W/m2',missing_value:valmask,long_name:'Surface net longwave radiation ',short_name:'lwr',axis:'TYX'} 
    317317time_attr={units:'days since 1950-01-01 00:00:00',long_name:'Time axis',time_origin:' 1950-JAN-01 00:00:00'} 
    318318globattr={source:'Tropical ocean fluxes obtained from ERA Interim',timerange:cda0+' - '+cda1} 
    319  
     319; 
    320320ncfields = 'lwr[longitude,latitude,time]=lwrout:lwr_attr; ' $ 
    321321                      + 'longitude[]=xlon:lon_attr; ' $ 
     
    323323                      + 'tt[*time]=tt:time_attr ' $ 
    324324                      + ' @ globattr' 
    325  
     325; 
    326326@ncdf_quickwrite 
    327  
     327; 
    328328end 
Note: See TracChangeset for help on using the changeset viewer.