- Timestamp:
- 03/29/12 13:59:31 (12 years ago)
- Location:
- trunk/src
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/tropflux.sh
r179 r183 96 96 # :func:`t2m_correction_ncdf`, :func:`ws_correction_ncdf`, 97 97 # :func:`tropflux_swr_dt`, :func:`tropflux_swr_nrt`, :func:`tropflux_swr_blnd`, 98 # :func:`tropflux_nrt_cdf`, 98 # :func:`tropflux_nrt_cdf`,:func:`tropflux_wind_stress` 99 99 # etc. 100 100 # … … 108 108 # make it work 109 109 # 110 # if yyyymmdd < 20071231, is it meaningfull to call all the fucntions ? 111 # 110 112 # idl status = 0 even if not ok 111 113 # … … 118 120 # 119 121 # $URL$ 122 # 123 # - pinsard 20120329 124 # 125 # * add tropflux_wind_stress (to be consolidated) 120 126 # 121 127 # - pinsard 20120326 … … 452 458 exit 453 459 ENDIF 460 result = tropflux_wind_stress(${yyyymmddb}, ${yyyymmdde}) 461 IF result < 0 THEN BEGIN 462 msg = 'eee : pb after tropflux_wind_stress' + string(result) 463 err = report(msg) 464 exit 465 ENDIF 454 466 end 455 467 EOF -
trunk/src/tropflux_wind_stress.pro
r182 r183 1 1 ;+ 2 2 ; 3 ; .. _ TropFlux_wind_stress_19890101_20101231.pro:3 ; .. _tropflux_wind_stress.pro: 4 4 ; 5 ; ======================== ==================6 ; TropFlux_wind_stress_19890101_20101231.pro7 ; ======================== ==================5 ; ======================== 6 ; tropflux_wind_stress.pro 7 ; ======================== 8 8 ; 9 9 ; DESCRIPTION 10 10 ; =========== 11 11 ; 12 ; SEE ALSO 13 ; ======== 14 ; 12 15 ; TODO 13 16 ; ==== 14 17 ; 15 18 ; integration to the whole process 19 ; 20 ; check existence protection 21 ; 22 ; complete header, complete data_contents.rst 23 ; 24 ; graphviz 16 25 ; 17 26 ; EVOLUTIONS … … 21 30 ; 22 31 ; $URL$ 32 ; 33 ; - fplod 20120329 34 ; 35 ; * pro -> func 36 ; * rename with lower case TropFlux_wind_stress_19890101_20101231.pro become 37 ; tropflux_wind_stress.pro 38 ; * hard coded st and en replaced by yyyymmddb and yyyymmdde parameters 39 ; * add compile_opt 40 ; * get rid of hard coded path 23 41 ; 24 42 ; - fplod 20110830T153220Z cratos (Linux) … … 31 49 ; 32 50 ;- 33 pro TropFlux_wind_stress_19890101_20101231 34 @common 35 ;------------------------------------------------------------ 36 st=19880101 37 en=20101231 38 st=19880101 39 en=20101231 51 function tropflux_wind_stress $ 52 , yyyymmddb $ 53 , yyyymmdde 40 54 ; 41 file="/Volumes/PAYASAM/TropFlux/ERA_C_1989_2010/TropFlux_19890101_20101231.nc" 55 compile_opt idl2, strictarrsubs, logical_predicate 56 ; 57 @cm_4cal 58 @cm_4data 59 @cm_4mesh 60 @cm_4data 61 @cm_project 62 ; 63 ; 64 ; Return to caller if errors 65 ON_ERROR, 2 66 ; 67 result = -1 68 ; 69 usage = 'result = tropflux_swr_dt(yyyymmddb, yyyymmdde)' 70 nparam = N_PARAMS() 71 IF (nparam NE 2) THEN BEGIN 72 ras = report(['Incorrect number of arguments.' $ 73 + '!C' $ 74 + 'Usage : ' + usage]) 75 return, result 76 ENDIF 77 78 dir=project_od_env 79 file=dir + 'TropFlux_' + string(yyyymmddb,format='(I8.8)') + '_' + string(yyyymmdde,format='(I8.8)') + '.nc' 42 80 initncdf, file 43 tau=read_ncdf("tau", st, en, file=file,/nostr)81 tau=read_ncdf("tau", yyyymmddb-.5d,yyyymmdde, file=file,/nostr) 44 82 tau=reform(tau) 45 83 help, tau 46 84 ; 47 stop 48 dir='/Volumes/PAYASAM/TropFlux/ERA_C_1989_2010/' 49 file_wind=dir+'TropFlux_ws_19890101_20101231.nc' 50 file_wg=dir+'gustiness_19890101_20101231.nc' 85 file_wind=dir+'TropFlux_ws_' + string(yyyymmddb,format='(I8.8)') + '_' + string(yyyymmdde,format='(I8.8)') + '.nc' 86 file_wg=dir+'gustiness_' + string(yyyymmddb,format='(I8.8)') + '_' + string(yyyymmdde,format='(I8.8)') + '.nc' 51 87 initncdf, file_wind 52 88 ; 53 ws=read_ncdf('ws', st,en,file=file_wind,/nostr)54 wg=read_ncdf('wg', st,en,file=file_wg,/nostr)89 ws=read_ncdf('ws',yyyymmddb-.5d,yyyymmdde,file=file_wind,/nostr) 90 wg=read_ncdf('wg',yyyymmddb-.5d,yyyymmdde,file=file_wg,/nostr) 55 91 s=sqrt((ws*ws)+(wg*wg)) 56 92 s=reform(s) 57 93 help, s 58 94 ; 59 file= "/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_ws_19890101_20101231.nc"95 file=dir+'erai_ws_+ string(yyyymmddb,format='(I8.8)') + '_' + string(yyyymmdde,format='(I8.8)') + '.nc' 60 96 initncdf, file 61 u=read_ncdf('u10', st,en,file=file,/nostr)62 v=read_ncdf('v10', st,en,file=file,/nostr)97 u=read_ncdf('u10',yyyymmddb-.5d,yyyymmdde,file=file,/nostr) 98 v=read_ncdf('v10',yyyymmddb-.5d,yyyymmdde,file=file,/nostr) 63 99 ; 64 100 u=reform(u) … … 101 137 @ncdf_quickwrite 102 138 ; 139 result = 0 140 return, result 141 ; 103 142 end
Note: See TracChangeset
for help on using the changeset viewer.