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

ENH: Max CAPPI #1633

Merged
merged 19 commits into from
Aug 30, 2024
Merged

ENH: Max CAPPI #1633

merged 19 commits into from
Aug 30, 2024

Conversation

syedhamidali
Copy link
Contributor

@syedhamidali syedhamidali commented Aug 29, 2024

So, I have added the plot_maxcappi function to the gridmapdisplay, here is what it is supposed to do

import pyart

grid = pyart.io.read_grid("GRID_KGRR20240119_163853_V06.nc")
display = pyart.graph.GridMapDisplay(grid)

display.plot_maxcappi('reflectivity', vmin=0, vmax=60, add_slogan=True)

image

@syedhamidali syedhamidali changed the title Max CAPPI ENH: Max CAPPI Aug 29, 2024
@zssherman
Copy link
Collaborator

I re-added back in Max as a reviewer as well as he made some change comments on the original PR, I'm reviewing as well.

pyart/graph/__init__.py Outdated Show resolved Hide resolved
pyart/graph/max_cappi.py Show resolved Hide resolved
Whether to print progress messages. Default is False.
savedir : str, optional
Directory where the plot will be saved. If None, the plot is not saved.
show_figure : bool, optional
Copy link
Collaborator

@zssherman zssherman Aug 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, maybe leave it up to the user for plt.show()?

Copy link
Contributor Author

@syedhamidali syedhamidali Aug 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, it doesn't take the fig and ax arguments since its fig canvas (Main, upper, right and colorbar axes) is manually built, that is why. What do you suggest?

pyart/graph/max_cappi.py Show resolved Hide resolved
@@ -1110,6 +1112,46 @@ def cartopy_coastlines(self):
category="physical", name="coastline", scale="10m", facecolor="none"
)

def plot_maxcappi(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More curiosity, but reason for having the code in its own file and then here as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was a long code, didn't wanted to overcrowd the gridmapdisplay.py script

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you suggest?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be fine being in the gridmapdisplay, or either or, we can get @mgrover1 thoughts on it as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’m open to merging it back if that’s preferred. Let's see what @mgrover1 has to say!

@syedhamidali
Copy link
Contributor Author

I’ve addressed the major issues causing CI failures. The only one remaining is build-deploy-site / deploy-website. I’m not sure what that involves, so you might need to handle it.

@zssherman
Copy link
Collaborator

@syedhamidali No worries on the build doc fail, I have a fix for it in my PR

Copy link
Collaborator

@mgrover1 mgrover1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great to me - I like the idea of moving a bulk of it to its own submodule, and it being used with the gridmapdisplay.

@mgrover1 mgrover1 merged commit db03920 into ARM-DOE:main Aug 30, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Constant Altitude Plan Position Indicator (CAPPI)
3 participants