Ignore:
Timestamp:
03/26/14 11:58:56 (10 years ago)
Author:
pinsard
Message:

fix thanks to coding rules; typo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/flux_evaluation_tpr_timeseries.pro

    r203 r204  
    4141; 
    4242;   * try to make it work on my account on cratos 
    43 ;   * remove x_site_location and  x_site_location because already exist 
     43;   * remove x_site_location and x_site_location because already exist 
    4444; 
    4545;- 
    4646pro flux_evaluation_tpr_timeseries, $ 
    4747;                    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) 
     48date1, $ ;;  start date (in Julian date. eg. 20000101) 
     49date2    ;;  end date (in Julian date eg. 20091231) 
    5050 
    5151@common 
     
    110110for n=0, nn-1 do begin 
    111111 
    112 ;; reading data from mooring 
     112    ;; reading data from mooring 
    113113 
    114114    site=sitelist(n) & csite=site 
     
    122122            sw,lw,sh,lh 
    123123 
    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) 
    125125 
    126    tpr=sh 
     126    tpr=sh 
    127127 
    128    ind=where(finite(tpr)) & no_valid=n_elements(ind) 
     128    ind=where(finite(tpr)) & no_valid=n_elements(ind) 
    129129 
    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) 
    131134 
     135        stats_5d, tpr,var_tpr, $  ;; tpr=TPR observation and var_tpr=gridded product extracted at TPR location 
     136        cor, bias, std, rmsd 
    132137 
    133        extract_tpr_location,var,box, $ 
    134        var_tpr 
    135        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 
    136141 
    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] 
    153151    endif 
    154152endfor 
Note: See TracChangeset for help on using the changeset viewer.