- Timestamp:
- 08/08/11 12:41:36 (13 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/interp_erai_dewt_1989_2009.pro
- Property svn:keywords set to URL
r67 r70 4 4 ; 5 5 ; ============================== 6 ; interp_erai_dewt_1989_2009.pro 6 ; interp_erai_dewt_1989_2009.pro 7 7 ; ============================== 8 8 ; … … 73 73 ; Variable is undefined: OUTMASK_IND. 74 74 ; 75 ; check OUTMASK_IND and SET_OUTMSKVAL added to call_interp2d call 76 ; 77 ; use real output of :ref:`compute_erai_daily_region_2d.sh`. 78 ; 75 79 ; coding rules 76 80 ; … … 87 91 ; 88 92 ; $URL$ 93 ; 94 ; - fplod 20110808T094156Z cratos (Linux) 95 ; 96 ; * add OUTMASK_IND and SET_OUTMSKVAL to call_interp2d call 89 97 ; 90 98 ; - pinsard 2011-07-05T07:33:36Z loholt1.ipsl.polytechnique.fr (Linux) … … 220 228 print, 'Interpolation jt=',jt,' / ',jptin-1 221 229 tab=reform(d2min(*,*,jt)) 222 d2mout(*,*,jt)=call_interp2d(tab,lonin,latin,mskin,lonout,latout,method='bilinear') 230 d2mout(*,*,jt)=call_interp2d(tab,lonin,latin,mskin $ 231 , lonout,latout,method='bilinear' $ 232 , OUTMASK_IND=mskout, SET_OUTMSKVAL=mskout) 223 233 d2mout(*,*,jt)=d2mout(*,*,jt)*mskout+(1.-mskout)*1.e20 224 234 endfor -
trunk/src/interp_erai_lwr_1989_2009.pro
- Property svn:keywords set to URL
r67 r70 75 75 ; Variable is undefined: OUTMASK_IND. 76 76 ; 77 ; check OUTMASK_IND and SET_OUTMSKVAL added to call_interp2d call 78 ; 79 ; use real output of :ref:`compute_erai_daily_region_2d.sh`. 80 ; 81 ; 19890101 is not provided in ERA-Intermim file str : a possible workaround is to copy 19890102 82 ; dataset to 19890101 using nco before processing. see :ref:`compute_erai_daily_region_2d.sh` 83 ; 77 84 ; coding rules 78 85 ; … … 89 96 ; 90 97 ; $URL$ 98 ; 99 ; - fplod 20110808T094156Z cratos (Linux) 100 ; 101 ; * add OUTMASK_IND and SET_OUTMSKVAL to call_interp2d call 102 ; * fix typo 103 ; .. note:: 104 ; 105 ; IDL do not warn when asking size of an undefined array:: 106 ; 107 ; IDL> must_crash=size(ginette) 91 108 ; 92 109 ; - pinsard 2011-07-05T07:33:36Z loholt1.ipsl.polytechnique.fr (Linux) … … 203 220 lwrin=read_ncdf("str",0,7668,/timestep,file=fullfilename,/nostr) 204 221 lwrin=-1*lwrin 205 help, lwrin206 222 207 223 initncdf, fullfilename … … 222 238 mskout=read_ncdf("msk", file=fullfilename_msk,/nostr) 223 239 224 help, lwrin 225 226 si=size(swrin) 240 241 si=size(lwrin) 227 242 lwrout=fltarr(jpi,jpj,jptin) 228 243 … … 231 246 232 247 tab=reform(lwrin(*,*,jt)) 233 lwrout(*,*,jt)=call_interp2d(tab,lonin,latin,mskin,lonout,latout,method='bilinear') 248 lwrout(*,*,jt)=call_interp2d(tab,lonin,latin,mskin $ 249 , lonout,latout,method='bilinear' $ 250 , OUTMASK_IND=mskout, SET_OUTMSKVAL=mskout) 251 help, OUTMASK_IND 252 help, SET_OUTMSKVAL 234 253 lwrout(*,*,jt)=lwrout(*,*,jt)*mskout+(1.-mskout)*1.e20 235 254 … … 257 276 globattr={source:'Tropical ocean fluxes obtained from ERA Interim',timerange:cda0+' - '+cda1} 258 277 259 help,lwrout260 261 278 ncfields = 'lwr[longitude,latitude,time]=lwrout:lwr_attr; ' $ 262 279 + 'longitude[]=xlon:lon_attr; ' $ -
trunk/src/interp_erai_sst_1989_2009.pro
- Property svn:keywords set to URL
r67 r70 75 75 ; Variable is undefined: OUTMASK_IND. 76 76 ; 77 ; check OUTMASK_IND and SET_OUTMSKVAL added to call_interp2d call 78 ; 77 79 ; coding rules 78 80 ; … … 91 93 ; 92 94 ; $URL$ 95 ; 96 ; - fplod 20110808T094156Z cratos (Linux) 97 ; 98 ; * add OUTMASK_IND and SET_OUTMSKVAL to call_interp2d call 93 99 ; 94 100 ; - pinsard 2011-07-04T15:45:35Z loholt1.ipsl.polytechnique.fr (Linux) … … 226 232 print, 'Interpolation jt=',jt,' / ',jptin-1 227 233 tab=reform(sstkin(*,*,jt)) 228 sstkout(*,*,jt)=call_interp2d(tab,lonin,latin,mskin,lonout,latout,method='bilinear') 234 sstkout(*,*,jt)=call_interp2d(tab,lonin,latin,mskin $ 235 , lonout,latout,method='bilinear' $ 236 , OUTMASK_IND=mskout, SET_OUTMSKVAL=mskout) 229 237 sstkout(*,*,jt)=sstkout(*,*,jt)*mskout+(1.-mskout)*1.e20 230 238 endfor -
trunk/src/interp_erai_t2m_1989_2009.pro
- Property svn:keywords set to URL
r67 r70 76 76 ; IDL> interp_erai_t2m_1989_2009 77 77 ; 78 ;79 78 ; TODO 80 79 ; ==== … … 97 96 ; why two "initncdf, fullfilename_msk" 98 97 ; 99 ; hard coded attributes for t2m (missing value, short name, axis) and time (origin) : use ncdf_getatt 98 ; hard coded attributes for t2m (missing value, short name, axis) and time (origin) : use ncdf_getatt 100 99 ; 101 100 ; CF conventions 101 ; 102 ; check OUTMASK_IND and SET_OUTMSKVAL added to call_interp2d call 103 ; 104 ; remove ncdf_quickwrite exercices 102 105 ; 103 106 ; KNOWN ISSUES … … 109 112 ; EVOLUTIONS 110 113 ; ========== 114 ; 115 ; $Id$ 116 ; 117 ; $URL$ 118 ; 119 ; - fplod 20110808T094156Z cratos (Linux) 120 ; 121 ; * add OUTMASK_IND and SET_OUTMSKVAL to call_interp2d call 111 122 ; 112 123 ; - fplod 20110103T153734Z aedon.locean-ipsl.upmc.fr (Darwin) … … 251 262 initncdf, fullfilename_t2 252 263 domdef 253 latin=reform(gphit(0,*)) 264 latin=reform(gphit(0,*)) 254 265 lonin=reform(glamt(*,0)) 255 266 print, 'lat grid from data',min(latin),max(latin),latin(1)-latin(0) … … 285 296 initncdf, fullfilename_msk 286 297 domdef 287 latout=reform(gphit(0,*)) 298 latout=reform(gphit(0,*)) 288 299 lonout=reform(glamt(*,0)) 289 300 print, 'lat grid from mask ',min(latout),max(latout),latout(1)-latout(0) … … 297 308 for jt=0,jptin-1 do begin 298 309 tab=reform(t2min(*,*,jt)) 299 t2mout(*,*,jt)=call_interp2d(tab,lonin,latin,mskin,lonout,latout,method='bilinear') 310 t2mout(*,*,jt)=call_interp2d(tab,lonin,latin,mskin $ 311 , lonout,latout,method='bilinear' $ 312 , OUTMASK_IND=mskout, SET_OUTMSKVAL=mskout) 300 313 t2mout(*,*,jt)=t2mout(*,*,jt)*mskout+(1.-mskout)*1.e20 301 314 endfor … … 324 337 help, t2mout 325 338 help, timein 326 ;ncfields = 't2m[longitude,latitude,*time]=t2mout:t2m_attr; ' $ 327 ; + 'longitude[]=lon:lon_attr; ' $ 328 ; + 'latitude[]=lat:lat_attr; ' $ 329 ; + 'time[]=timein:time_attr ' $ 330 ; + ' @globattr' 339 ncfields = 't2m[longitude,latitude,*time]=t2mout:t2m_attr; ' $ 340 + 'longitude[]=lon:lon_attr; ' $ 341 + 'latitude[]=lat:lat_attr; ' $ 342 + 'time[]=timein:time_attr ' $ 343 + ' @globattr' 344 @ncdf_quickwrite 331 345 332 346 ; ok ncfields = 'longitude[]=lon:lon_attr;latitude[]=lat:lat_attr' … … 354 368 help, lat 355 369 help, lon 356 help, t2m 370 help, t2m 357 371 help, time 358 372 help, timein … … 368 382 ;ncfields = 't2m[longitude,latitude,*time];longitude[]=lon:lon_attr;latitude[]=lat:lat_attr;time[]=timepb:time_attr' 369 383 370 timepb=findgen(7670)371 ncfields = 't2m[longitude,latitude,*time];longitude[]=lon:lon_attr;latitude[]=lat:lat_attr;time[]=timepb:time_attr'372 @ncdf_quickwrite384 ;++timepb=findgen(7670) 385 ;++ncfields = 't2m[longitude,latitude,*time];longitude[]=lon:lon_attr;latitude[]=lat:lat_attr;time[]=timepb:time_attr' 386 ;++@ncdf_quickwrite 373 387 374 388 -
trunk/src/interp_erai_ws_1989_2009.pro
- Property svn:keywords set to URL
r67 r70 78 78 ; Variable is undefined: OUTMASK_IND. 79 79 ; 80 ; check OUTMASK_IND and SET_OUTMSKVAL added to call_interp2d call 81 ; 82 ; use real output of :ref:`compute_erai_daily_region_2d.sh`. 83 ; 80 84 ; coding rules 81 85 ; … … 92 96 ; 93 97 ; $URL$ 98 ; 99 ; - fplod 20110808T094156Z cratos (Linux) 100 ; 101 ; * add OUTMASK_IND and SET_OUTMSKVAL to call_interp2d call 94 102 ; 95 103 ; - pinsard 2011-07-05T07:33:36Z loholt1.ipsl.polytechnique.fr (Linux) … … 245 253 print, 'Interpolation jt=',jt,' / ',jptin-1 246 254 tab=reform(u10in(*,*,jt)) 247 u10out(*,*,jt)=call_interp2d(tab,lonin,latin,mskin,lonout,latout,method='bilinear') 255 u10out(*,*,jt)=call_interp2d(tab,lonin,latin,mskin $ 256 , lonout,latout,method='bilinear' $ 257 , OUTMASK_IND=mskout, SET_OUTMSKVAL=mskout) 248 258 u10out(*,*,jt)=u10out(*,*,jt)*mskout+(1.-mskout)*1.e20 249 259 250 260 tab=reform(v10in(*,*,jt)) 251 v10out(*,*,jt)=call_interp2d(tab,lonin,latin,mskin,lonout,latout,method='bilinear') 261 v10out(*,*,jt)=call_interp2d(tab,lonin,latin,mskin $ 262 , lonout,latout,method='bilinear' $ 263 , OUTMASK_IND=mskout, SET_OUTMSKVAL=mskout) 252 264 v10out(*,*,jt)=v10out(*,*,jt)*mskout+(1.-mskout)*1.e20 253 265
Note: See TracChangeset
for help on using the changeset viewer.