Changeset 204 for trunk/src/flux_evaluation_tpr_timeseries.pro
- Timestamp:
- 03/26/14 11:58:56 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/flux_evaluation_tpr_timeseries.pro
r203 r204 41 41 ; 42 42 ; * try to make it work on my account on cratos 43 ; * remove x_site_location and 43 ; * remove x_site_location and x_site_location because already exist 44 44 ; 45 45 ;- 46 46 pro flux_evaluation_tpr_timeseries, $ 47 47 ; var, $ ;; flux variable (swr, lwr, lhf, shf) to calculate the statistics 48 date1, $ ;; start date (in julian date. eg. 20000101)49 date2 ;; end date (in julian date eg. 20091231)48 date1, $ ;; start date (in Julian date. eg. 20000101) 49 date2 ;; end date (in Julian date eg. 20091231) 50 50 51 51 @common … … 110 110 for n=0, nn-1 do begin 111 111 112 ;; reading data from mooring112 ;; reading data from mooring 113 113 114 114 site=sitelist(n) & csite=site … … 122 122 sw,lw,sh,lh 123 123 124 ;; select the appropriate variables for evaluation (trp = sw or lw or sh or lh)124 ;; select the appropriate variables for evaluation (trp = sw or lw or sh or lh) 125 125 126 tpr=sh126 tpr=sh 127 127 128 ind=where(finite(tpr)) & no_valid=n_elements(ind)128 ind=where(finite(tpr)) & no_valid=n_elements(ind) 129 129 130 if (no_valid ge min_obs) then begin 130 if (no_valid ge min_obs) then begin 131 extract_tpr_location,var,box, $ 132 var_tpr 133 var_tpr=reform(var_tpr) 131 134 135 stats_5d, tpr,var_tpr, $ ;; tpr=TPR observation and var_tpr=gridded product extracted at TPR location 136 cor, bias, std, rmsd 132 137 133 extract_tpr_location,var,box, $134 var_tpr135 var_tpr=reform(var_tpr)138 printf, 1, x, y, cor, bias, std, rmsd, format='(f6.2, 3x, f6.2, 3x, f4.2, 3x, f7.2, 3x, f4.2, 3x, f5.2)' 139 cstat=string(cor, bias, std, rmsd, format='(f4.2,3x,f7.2,3x,f4.2,3x,f5.2)') 140 print, cstat 136 141 137 stats_5d, tpr,var_tpr, $ ;; tpr=TPR observation and var_tpr=gridded product extracted at TPR location 138 cor, bias, std, rmsd 139 140 printf, 1, x, y, cor, bias, std, rmsd, format='(f6.2, 3x, f6.2, 3x, f4.2, 3x, f7.2, 3x, f4.2, 3x, f5.2)' 141 cstat=string(cor, bias, std, rmsd, format='(f4.2,3x,f7.2,3x,f4.2,3x,f5.2)') 142 print, cstat 143 144 ;; PLOTTING THE TIME-SERIES 145 array=[tpr, var_tpr] & mi=min(array,/nan) & ma=max(array,/nan) & int=(ma-mi)/3. 146 pltt, ts_smooth(tpr,5,/nan), "t",/rempl, small=[1,3,1], lct=65, $ 147 title='Five day stats are shown below. TPR (black) and Product (red) at'+csite+' ', charsize=1., $ 148 subtitle=cstat 149 ind=where(finite(tpr,/nan)) & var_tpr(ind)=!Values.f_nan 150 pltt, ts_smooth(var_tpr,5,/nan), "t",/ov1d, color=250 151 erase 152 mooring=[mooring,tpr] & product=[product,var_tpr] 142 ;; PLOTTING THE TIME-SERIES 143 array=[tpr, var_tpr] & mi=min(array,/nan) & ma=max(array,/nan) & int=(ma-mi)/3. 144 pltt, ts_smooth(tpr,5,/nan), "t",/rempl, small=[1,3,1], lct=65, $ 145 title='Five day stats are shown below. TPR (black) and Product (red) at'+csite+' ', charsize=1., $ 146 subtitle=cstat 147 ind=where(finite(tpr,/nan)) & var_tpr(ind)=!Values.f_nan 148 pltt, ts_smooth(var_tpr,5,/nan), "t",/ov1d, color=250 149 erase 150 mooring=[mooring,tpr] & product=[product,var_tpr] 153 151 endif 154 152 endfor
Note: See TracChangeset
for help on using the changeset viewer.