Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function to mask/remove high value gates at the edge of sweeps #407

Closed
jjhelmus opened this issue Oct 23, 2015 · 1 comment · Fixed by #1580
Closed

Function to mask/remove high value gates at the edge of sweeps #407

jjhelmus opened this issue Oct 23, 2015 · 1 comment · Fixed by #1580

Comments

@jjhelmus
Copy link
Contributor

As suggested in nguy/artview#107 a method for removing the 'ring' of high value gates at the edge of sweeps would make a good addition to Py-ART. A simple implementation is as follows:

radar = pyart.io.read('some_file.nc')
# insure that the reflectivity field is a masked array
radar.fields['reflectivity']['data'] = np.ma.array(radar.fields['reflectivity']['data'])
# mask out the last gates in each sweep
radar.fields['reflectivity']['data'][:, -10:] = np.ma.masked

Such a feature would fit well in the pyart.correct namespace.

@scollis
Copy link
Member

scollis commented Oct 23, 2015

In addition it would be nice to write a procedure to detect this.. most
radars I have seen using a test signal use a constant dBm .. so writing
code that works out how many gates have within a certain stdev could be
easy to implement.. (i'll give this a go)

On 10/23/15 5:26 PM, Jonathan J. Helmus wrote:

As suggested in nguy/artview#107
nguy/artview#107 a method for removing the
'ring' of high value gates at the edge of sweeps would make a good
addition to Py-ART. A simple implementation is as follows:

radar= pyart.io.read('some_file.nc')

insure that the reflectivity field is a masked array

radar.fields['reflectivity']['data']= np.ma.array(radar.fields['reflectivity']['data'])

mask out the last gates in each sweep

radar.fields['reflectivity']['data'][:,-10:]= np.ma.masked

Such a feature would fit well in the |pyart.correct| namespace.


Reply to this email directly or view it on GitHub
#407.

zssherman added a commit to zssherman/pyart that referenced this issue May 16, 2024
This is useful for removing artificial rings near the end of data.
Closes ARM-DOE#407
mgrover1 pushed a commit that referenced this issue May 17, 2024
This is useful for removing artificial rings near the end of data.
Closes #407
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants