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

>>> a=[1,2,3]<br />

>>> print [x + 3 for x in a]<br />

[4, 5, 6]<br />

>>> print "a\n\nb"<br />

a<br />

b<br />

3.9.2 <strong>wradlib</strong>.clutter.filter_gabella_a<br />

<strong>wradlib</strong>.clutter.filter_gabella_a(img, wsize, tr1)<br />

First part of the Gabella filter looking for large reflectivity gradients.<br />

This function checks for each pixel in img how many pixels surrounding it in a window of wsize are by tr1<br />

smaller than the central pixel.<br />

See Also:<br />

Parameters img : array_like<br />

radar image to which the filter is to be applied<br />

wsize : int<br />

Size of the window surrounding the central pixel TODO check if a 5x5 window would<br />

have wsize=2 or wsize=5<br />

tr1 : float<br />

Threshold value<br />

Returns output : array_like<br />

an array with the same shape as img, containing the filter’s results.<br />

filter_gabella_b the second part of the filter<br />

filter_gabella the complete filter<br />

Examples<br />

TODO: provide a correct example here<br />

>>> a=[1,2,3]<br />

>>> print [x + 3 for x in a]<br />

[4, 5, 6]<br />

>>> print "a\n\nb"<br />

a<br />

b<br />

3.9.3 <strong>wradlib</strong>.clutter.filter_gabella_b<br />

<strong>wradlib</strong>.clutter.filter_gabella_b(img, thrs=0.0)<br />

Second part of the Gabella filter comparing area to circumference of contiguous echo regions.<br />

Parameters img : array_like<br />

thrs : float<br />

Threshold below which the field values will be considered as no rain<br />

56 Chapter 3. Library Reference

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

Saved successfully!

Ooh no, something went wrong!