-
Notifications
You must be signed in to change notification settings - Fork 268
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
Max cappi #1627
Max cappi #1627
Conversation
@mgrover1 Could you please take a look at these conflicts? I'm not quite sure how to resolve them. |
Sure! I can take a look here - thanks for putting this together 👍 |
@syedhamidali - this should resolve the merge conflicts 👍 |
@mgrover1 Thank you! |
@mgrover1 I'm unsure if these CI errors relate to my commits. Could you help clarify? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here are a few suggestions - this should help resolving some of the failing tests
radar = pyart.io.read_nexrad_archive("s3://" + file) | ||
|
||
# Create a 3D grid | ||
# mask out last 10 gates of each ray, this removes the "ring" around the radar. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# mask out last 10 gates of each ray, this removes the "ring" around the radar. | |
# Mask out last 10 gates of each ray, this removes the "ring" around the radar. |
# mask out last 10 gates of each ray, this removes the "ring" around the radar. | ||
radar.fields["reflectivity"]["data"][:, -10:] = np.ma.masked | ||
|
||
# exclude masked gates from the gridding |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# exclude masked gates from the gridding | |
# Exclude masked gates from the gridding |
gatefilter.exclude_masked("reflectivity") | ||
gatefilter.exclude_outside("reflectivity", 10, 80) | ||
|
||
# perform Cartesian mapping, limit to the reflectivity field. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# perform Cartesian mapping, limit to the reflectivity field. | |
# Perform Cartesian mapping, limit to the reflectivity field. |
ds.lon.encoding["_FillValue"] = None | ||
|
||
# Grab original radar(s) name and number of radars used to make grid | ||
ds.attrs["nradar"] = self.nradar |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@syedhamidali - you are removing nradar here within the attributes which is causing tests to fail
So, I have added the plot_maxcappi function to the gridmapdisplay, here is what it is supposed to do