wradlib Documentation - Bitbucket
wradlib Documentation - Bitbucket
wradlib Documentation - Bitbucket
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>wradlib</strong> <strong>Documentation</strong>, Release 0.1.1<br />
>>> mult_adjusted = mult_adjuster(obs, radar,0.)<br />
>>> # adjust the radar observation by MFB<br />
>>> mfb_adjuster = adjust.AdjustMFB(obs_coords, radar_coords, nnear_raws=1)<br />
>>> mfb_adjusted = mfb_adjuster(obs, radar,0.)<br />
>>> # adjust the radar observation by AdjustMixed<br />
>>> mixed_adjuster = adjust.AdjustMixed(obs_coords, radar_coords, nnear_raws=1)<br />
>>> mixed_adjusted = mixed_adjuster(obs, radar)<br />
>>> line1 = pl.plot(radar_coords, radar, ’k-’, label="raw radar")<br />
>>> line2 = pl.plot(obs_coords, obs, ’ro’, label="gage obs")<br />
>>> line3 = pl.plot(radar_coords, add_adjusted, ’-’, color="red", label="adjusted by AdjustAdd")<br />
>>> line4 = pl.plot(radar_coords, mult_adjusted, ’-’, color="green", label="adjusted by AdjustMu<br />
>>> line5 = pl.plot(radar_coords, mfb_adjusted, ’-’, color="orange", label="adjusted by AdjustMF<br />
>>> line6 = pl.plot(radar_coords, mixed_adjusted, ’-’, color="blue", label="adjusted by AdjustMi<br />
>>> pl.legend()<br />
>>> pl.show()<br />
Methods<br />
xvalidate(obs, raw)<br />
Leave-One-Out Cross Validation, applicable to all gage adjustment classes.<br />
<strong>wradlib</strong>.adjust.AdjustMFB.xvalidate<br />
AdjustMFB.xvalidate(obs, raw)<br />
Leave-One-Out Cross Validation, applicable to all gage adjustment classes.<br />
This method will be inherited to other Adjust classes. It should thus be applicable to all adjustment<br />
procedures without any modification. This way, the actual adjustment procedure has only to be defined<br />
once in the __call__ method.<br />
The output of this method can be evaluated by using the verify.ErrorMetrics class.<br />
Parameters obs : array of floats<br />
raw : array of floats<br />
Returns obs : array of floats<br />
valid observations at those locations which have a valid radar observation<br />
estatobs : array of floats<br />
estimated values at the valid observation locations<br />
__call__(obs, raw[, targets, rawatobs, ix])<br />
xvalidate(obs, raw)<br />
Return the field of raw values adjusted by obs.<br />
Leave-One-Out Cross Validation, applicable to all gage adjustment classes.<br />
<strong>wradlib</strong>.adjust.AdjustMFB.__call__<br />
AdjustMFB.__call__(obs, raw, targets=None, rawatobs=None, ix=None)<br />
Return the field of raw values adjusted by obs.<br />
Parameters obs : array of floats<br />
Gage observations<br />
raw : array of floats<br />
68 Chapter 3. Library Reference