24.12.2013 Views

wradlib Documentation - Bitbucket

wradlib Documentation - Bitbucket

wradlib Documentation - Bitbucket

SHOW MORE
SHOW LESS

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 />

index array referring to the coords array<br />

3.8.2 <strong>wradlib</strong>.comp.togrid<br />

<strong>wradlib</strong>.comp.togrid(src, trg, radius, center, data, interpol, *args, **kwargs)<br />

Interpolate data from a radar location to the composite grid or set of locations<br />

Parameters src : ndarray of float of shape (numpoints, ndim)<br />

cartesian x / y coordinates of the radar bins<br />

trg : ndarray of float of shape (numpoints, ndim)<br />

cartesian x / y coordinates of the composite<br />

radius : float<br />

the radius of the radar circle (same units as src and trg)<br />

center : array of float<br />

the location coordinates of the radar<br />

data : ndarray of float<br />

the data that should be transferred to composite<br />

interpol : an interpolation class name from <strong>wradlib</strong>.ipol - e.g. Nearest or<br />

Idw<br />

Returns output : ndarray of float<br />

data of the radar circle which is interpolated on the composite grid<br />

3.8.3 <strong>wradlib</strong>.comp.compose_ko<br />

<strong>wradlib</strong>.comp.compose_ko(radargrids, qualitygrids)<br />

Composes grids according to quality information using quality information as a knockout criterion.<br />

The value of the composed pixel is taken from the radargrid whose quality grid has the highest value.<br />

Parameters radargrids : list of arrays<br />

radar data to be composited. Each item in the list corresponds to the data of one radar<br />

location. All items must have the same shape.<br />

qualitygrids : list of arrays<br />

quality data to decide upon which radar site will contribute its pixel to the composite.<br />

Then length of this list must be the same as that of radargrids. All items must have the<br />

same shape and be aligned with the items in radargrids.<br />

Returns composite : array<br />

3.8.4 <strong>wradlib</strong>.comp.compose_weighted<br />

<strong>wradlib</strong>.comp.compose_weighted(radargrids, qualitygrids)<br />

Composes grids according to quality information using a weighted averaging approach.<br />

The value of the composed pixel is the weighted average of all radar pixels with the quality values being the<br />

weights.<br />

54 Chapter 3. Library Reference

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!