- Timestamp:
- 08/08/11 13:41:35 (13 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/interp_erai_dewt_1989_2009.pro
r70 r71 28 28 ; rankdir="LR", 29 29 ; ] 30 ; 30 31 ; file_in [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/20c3m_erai_d2_TROP_1989_2009.nc"]; 31 32 ; mask [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/mask_oaflux_30N30S.nc"]; 32 ;33 33 ; file_out [shape=ellipse,fontname=Courier,label="${PROJECT_OD}/erai_d2m_19890101_20091231_oafluxgrid.nc"]; 34 ; 34 35 ; interp_erai_dewt_1989_2009 [shape=box, 35 36 ; fontname=Courier, … … 40 41 ; {file_in mask} -> {interp_erai_dewt_1989_2009} -> {file_out} 41 42 ; 42 ; }43 ; } 43 44 ; 44 45 ; SEE ALSO … … 71 72 ; make it work : pb on loholt1:: 72 73 ; 73 ; Variable is undefined: OUTMASK_IND. 74 ; d2m[longitude,latitude,time]=d2mout:d2m_attr; longitude[]=lon:lon_attr; latitude[]=lat:lat_attr; time[*time]=timein:time_attr @ globattr 75 ; % NCDF_DIMDEF: 0 is not a valid cdfid. 76 ; % Stop encountered: INTERP_ERAI_DEWT_1989_2009 1 77 ; /home/pinsard/tropflux_ws/src/interp_erai_dewt_1989_2009.pro 74 78 ; 75 79 ; check OUTMASK_IND and SET_OUTMSKVAL added to call_interp2d call … … 162 166 ; build data filename 163 167 filename='20c3m_erai_d2_TROP_1989_2009.nc' 168 ; 169 ; check if this file exists 164 170 fullfilename = isafile(iodirin + filename, NEW=0, /MUST_EXIST) 165 171 IF fullfilename[0] EQ '' THEN BEGIN … … 168 174 STOP 169 175 ENDIF 170 ;171 176 ; 172 177 ; test if ${PROJECT_OD} defined … … 234 239 endfor 235 240 236 237 241 timein=timein & jptin=jpt 238 242 … … 255 259 globattr={source:'Data are from ECMWF ERA-Interim reanalysis', timerange:cda0+' - '+cda1} 256 260 257 258 261 ncfields = 'd2m[longitude,latitude,time]=d2mout:d2m_attr; ' $ 259 262 + 'longitude[]=lon:lon_attr; ' $ … … 264 267 @ncdf_quickwrite 265 268 266 267 269 end -
trunk/src/interp_erai_lwr_1989_2009.pro
r70 r71 28 28 ; rankdir="LR", 29 29 ; ] 30 ; 31 ; file_in [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/20c3m_erai_str_TROP_1989_2009.nc"]; 30 32 ; mask [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/mask_oaflux_30N30S.nc"]; 31 ; 32 ; file_in [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/20c3m_erai_str_TROP_1989_2009.nc"]; 33 ; 34 ; ncfile [shape=ellipse,fontname=Courier,label="${PROJECT_OD}/erai_lwr_19890102_20091231_oafluxgrid.nc"]; 33 ; file_out [shape=ellipse,fontname=Courier,label="${PROJECT_OD}/erai_lwr_19890102_20091231_oafluxgrid.nc"]; 35 34 ; 36 35 ; interp_erai_lwr_1989_2009 [shape=box, … … 40 39 ; label="${PROJECT}/src/interp_erai_lwr_1989_2009.pro"]; 41 40 ; 42 ; { mask file_in} -> {interp_erai_lwr_1989_2009} -> {ncfile}41 ; {file_in mask} -> {interp_erai_lwr_1989_2009} -> {file_out} 43 42 ; 44 43 ; } … … 73 72 ; make it work : pb on loholt1:: 74 73 ; 75 ; Variable is undefined: OUTMASK_IND. 74 ; OUTMASK_IND UNDEFINED = <Undefined> 75 ; SET_OUTMSKVAL UNDEFINED = <Undefined> 76 ; 77 ; lwr[longitude,latitude,time]=lwrout:lwr_attr; longitude[]=xlon:lon_attr; latitude[]=ylat:lat_attr; tt[*time]=tt:time_attr @ globattr 78 ; % NCDF_DIMDEF: 0 is not a valid cdfid. 79 ; % Stop encountered: INTERP_ERAI_LWR_1989_2009 1 80 ; /home/pinsard/tropflux_ws/src/interp_erai_lwr_1989_2009.pro 76 81 ; 77 82 ; check OUTMASK_IND and SET_OUTMSKVAL added to call_interp2d call … … 178 183 ; check if this file exists 179 184 fullfilename = isafile(iodirin + filename, NEW=0, /MUST_EXIST) 180 IF fullfilename _msk[0] EQ '' THEN BEGIN181 msg = 'eee : the file ' + fullfilename _msk+ ' was not found.'185 IF fullfilename[0] EQ '' THEN BEGIN 186 msg = 'eee : the file ' + fullfilename + ' was not found.' 182 187 ras = report(msg) 183 188 STOP … … 238 243 mskout=read_ncdf("msk", file=fullfilename_msk,/nostr) 239 244 240 241 245 si=size(lwrin) 242 246 lwrout=fltarr(jpi,jpj,jptin) … … 247 251 tab=reform(lwrin(*,*,jt)) 248 252 lwrout(*,*,jt)=call_interp2d(tab,lonin,latin,mskin $ 249 , lonout,latout,method='bilinear' $250 , OUTMASK_IND=mskout, SET_OUTMSKVAL=mskout)253 , lonout,latout,method='bilinear' $ 254 , OUTMASK_IND=mskout, SET_OUTMSKVAL=mskout) 251 255 help, OUTMASK_IND 252 256 help, SET_OUTMSKVAL -
trunk/src/interp_erai_sst_1989_2009.pro
r70 r71 15 15 ; by :ref:`compute_erai_daily_region_2d.sh`. 16 16 ; 17 ; :file:`${PROJECT_ID}/mask_oaflux_30N30S.nc` containing OAFLUX grid have been p 17 ; :file:`${PROJECT_ID}/mask_oaflux_30N30S.nc` containing OAFLUX grid have been produced by :ref:`oaflux_mask_30N30S.pro`. 18 18 ; 19 19 ; Interpolated sst is written in … … 29 29 ; rankdir="LR", 30 30 ; ] 31 ; 31 32 ; file_in [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/20c3m_erai_sstk_TROP_1989_2009.nc"]; 32 ;33 33 ; mask [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/mask_oaflux_30N30S.nc"]; 34 ; 35 ; ncfile [shape=ellipse,fontname=Courier,label="${PROJECT_OD}/erai_sst_19890101_20091231_oafluxgrid.nc"]; 34 ; file_out [shape=ellipse,fontname=Courier,label="${PROJECT_OD}/erai_sst_19890101_20091231_oafluxgrid.nc"]; 36 35 ; 37 36 ; interp_erai_sst_1989_2009 [shape=box, … … 41 40 ; label="${PROJECT}/src/interp_erai_sst_1989_2009.pro"]; 42 41 ; 43 ; {file_in mask} -> {interp_erai_sst_1989_2009} -> {ncfile} 42 ; {file_in mask} -> {interp_erai_sst_1989_2009} -> {file_out} 43 ; 44 44 ; } 45 45 ; … … 73 73 ; make it work : pb on loholt1:: 74 74 ; 75 ; Variable is undefined: OUTMASK_IND. 75 ; sst[longitude,latitude,time]=sstkout:sstk_attr; longitude[]=lon:lon_attr; latitude[]=lat:lat_attr; time[*time]=timein:time_attr @ globattr 76 ; % NCDF_DIMDEF: 0 is not a valid cdfid. 77 ; % Stop encountered: INTERP_ERAI_SST_1989_2009 1 78 ; /home/pinsard/tropflux_ws/src/interp_erai_sst_1989_2009.pro 76 79 ; 77 80 ; check OUTMASK_IND and SET_OUTMSKVAL added to call_interp2d call … … 167 170 ; check if this file exists 168 171 fullfilename = isafile(iodirin + filename, NEW=0, /MUST_EXIST) 169 IF fullfilename _msk[0] EQ '' THEN BEGIN170 msg = 'eee : the file ' + fullfilename _msk+ ' was not found.'172 IF fullfilename[0] EQ '' THEN BEGIN 173 msg = 'eee : the file ' + fullfilename + ' was not found.' 171 174 ras = report(msg) 172 175 STOP … … 233 236 tab=reform(sstkin(*,*,jt)) 234 237 sstkout(*,*,jt)=call_interp2d(tab,lonin,latin,mskin $ 235 , lonout,latout,method='bilinear' $236 , OUTMASK_IND=mskout, SET_OUTMSKVAL=mskout)238 , lonout,latout,method='bilinear' $ 239 , OUTMASK_IND=mskout, SET_OUTMSKVAL=mskout) 237 240 sstkout(*,*,jt)=sstkout(*,*,jt)*mskout+(1.-mskout)*1.e20 238 241 endfor 239 240 242 241 243 timein=timein & jptin=jpt … … 257 259 globattr={source:'Data are from ECMWF ERA-Interim reanalysis', timerange:cda0+' - '+cda1} 258 260 259 260 261 ncfields = 'sst[longitude,latitude,time]=sstkout:sstk_attr; ' $ 261 262 + 'longitude[]=lon:lon_attr; ' $ … … 266 267 @ncdf_quickwrite 267 268 268 269 269 end -
trunk/src/interp_erai_t2m_1989_2009.pro
r70 r71 28 28 ; rankdir="TB", 29 29 ; ] 30 ; 30 31 ; file_in [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/20c3m_erai_t2_TROP_1989_2009.nc"]; 31 32 ; mask [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/mask_oaflux_30N30S.nc"]; 32 ; 33 ; ncfile [shape=ellipse,fontname=Courier,label="${PROJECT_OD}/erai_t2m_19890101_20091231_oafluxgrid.nc"]; 33 ; file_out [shape=ellipse,fontname=Courier,label="${PROJECT_OD}/erai_t2m_19890101_20091231_oafluxgrid.nc"]; 34 34 ; 35 35 ; interp_erai_t2m_1989_2009 [shape=box, … … 39 39 ; label="${PROJECT}/src/interp_erai_t2m_1989_2009.pro"]; 40 40 ; 41 ; {file_in mask} -> {interp_erai_t2m_1989_2009} -> { ncfile}41 ; {file_in mask} -> {interp_erai_t2m_1989_2009} -> {file_out} 42 42 ; 43 43 ; } 44 ;45 44 ; 46 45 ; SEE ALSO … … 78 77 ; TODO 79 78 ; ==== 79 ; 80 ; make it work : pb on loholt1:: 81 ; 82 ; t2m[longitude,latitude,*time]=t2mout:t2m_attr; longitude[]=lon:lon_attr; latitude[]=lat:lat_attr; time[]=timein:time_attr @globattr 83 ; % NCDF_DIMDEF: 0 is not a valid cdfid. 84 ; % Stop encountered: INTERP_ERAI_T2M_1989_2009 1 85 ; /home/pinsard/tropflux_ws/src/interp_erai_t2m_1989_2009.pro 80 86 ; 81 87 ; strange view (lat and lon shift with ncview) : check grid init … … 334 340 globattr={source:'Data are from ECMWF ERA-Interim reanalysis', timerange:cda0+' - '+cda1} 335 341 336 337 342 help, t2mout 338 343 help, timein … … 386 391 ;++@ncdf_quickwrite 387 392 388 389 393 end -
trunk/src/interp_erai_ws_1989_2009.pro
r70 r71 30 30 ; rankdir="LR", 31 31 ; ] 32 ; 32 33 ; file_u10 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/20c3m_erai_u10_TROP_1989_2009.nc"]; 33 34 ; file_v10 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/20c3m_erai_v10_TROP_1989_2009.nc"]; 34 ;35 35 ; mask [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/mask_oaflux_30N30S.nc"]; 36 ; 37 ; ncfile [shape=ellipse,fontname=Courier,label="${PROJECT_OD}/erai_ws_19890101_20091231_oafluxgrid.nc"]; 36 ; file_out [shape=ellipse,fontname=Courier,label="${PROJECT_OD}/erai_ws_19890101_20091231_oafluxgrid.nc"]; 38 37 ; 39 38 ; interp_erai_ws_1989_2009 [shape=box, … … 43 42 ; label="${PROJECT}/src/interp_erai_ws_1989_2009.pro"]; 44 43 ; 45 ; {file_u10 file_v10 mask} -> {interp_erai_ws_1989_2009} -> { ncfile}46 ; 47 ; }44 ; {file_u10 file_v10 mask} -> {interp_erai_ws_1989_2009} -> {file_out} 45 ; 46 ; } 48 47 ; 49 48 ; SEE ALSO … … 76 75 ; make it work : pb on loholt1:: 77 76 ; 78 ; Variable is undefined: OUTMASK_IND. 77 ; Writing fields: 78 ; u10[longitude,latitude,time]=u10out:u10_attr; v10[longitude,latitude,time]=v10out:v10_attr; longitude[]=xlon:lon_attr; latitude[]=ylat:lat_attr; tt[*time]=tt:time_attr @ globattr 79 ; % NCDF_DIMDEF: 0 is not a valid cdfid. 80 ; % Stop encountered: INTERP_ERAI_WS_1989_2009 1 81 ; /home/pinsard/tropflux_ws/src/interp_erai_ws_1989_2009.pro 79 82 ; 80 83 ; check OUTMASK_IND and SET_OUTMSKVAL added to call_interp2d call
Note: See TracChangeset
for help on using the changeset viewer.