Skip to content

Add filled contour map plotting capabilities#145

Merged
kevindougherty-noaa merged 4 commits intodevelopfrom
feature/filled_contourf_mapping
Mar 17, 2025
Merged

Add filled contour map plotting capabilities#145
kevindougherty-noaa merged 4 commits intodevelopfrom
feature/filled_contourf_mapping

Conversation

@kevindougherty-noaa
Copy link
Contributor

There is a need to plot filled contour maps for eva #216.

The following adds those needed capabilities to EMCPy so they can be used in eva.

@kevindougherty-noaa
Copy link
Contributor Author

The following tests and examples added produce this figure:

image

Copy link
Contributor

@EdwardSafford-NOAA EdwardSafford-NOAA left a comment

Choose a reason for hiding this comment

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

Looks good to me -- just had the one question on a variable name.


def _map_filled_contour(self, plotobj, ax):

skipvars = ['plottype', 'longitude', 'latitude', 'data',
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a question on the choice of skipvars as a name. Does it have a specific meaning in this context? I'm not super familiar with emcpy so I might be missing something.

Copy link
Contributor

Choose a reason for hiding this comment

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

If I recall correctly, it's what keys in the dictionary to not pass to the underlying matplotlib plotting routine

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it means exactly what you think. In map_plot.py, there are variables that are added to python object so we need to skip certain ones that are not related to the kargs that are for plot related things themselves.

@kevindougherty-noaa kevindougherty-noaa merged commit 2b468bf into develop Mar 17, 2025
4 checks passed
@kevindougherty-noaa kevindougherty-noaa deleted the feature/filled_contourf_mapping branch March 17, 2025 18:30
CoryMartin-NOAA added a commit to JCSDA-internal/eva that referenced this pull request Apr 10, 2025
## Description

This PR looks to add a missing need for Filled Contour Map plots and
Gridded plots. Specifically attempting to solve the following issue:
[here](#216 (comment))

## Dependencies

Waiting on the following PRs:
- [x] waiting on
[NOAA-EMC/emcpy/pull/145](NOAA-EMC/emcpy#145)

---------

Co-authored-by: Cory Martin <cory.r.martin@noaa.gov>
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.

3 participants