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

Scatter plots on maps without an associated data variable. #175

Conversation

rhoneyager-tomorrow
Copy link
Contributor

Description

emcpy supports creating a scatter plot on a map without an associated data variable. This PR makes the small changes to eva needed to work with this feature.

This is quite useful when plotting observation locations. Here's an example, based on this PR, where I can easily highlight duplicate obs data locations in my SSMIS data feed.

observations_SSMIS_tb_1_ascending

Transform to generate variable:

transforms:
  - transform: accept where
    new name: SSMIS::Ascending_Orbital_Node_Highlighting_Duplicates::latitude
    starting field: SSMIS::MetaData::latitude
    where:
      - SSMIS::MetaData::satelliteAscendingFlag == 0
      - SSMIS::MetaData::duplicateDataCheck == 1
  - transform: accept where
    new name: SSMIS::Ascending_Orbital_Node_Highlighting_Duplicates::longitude
    starting field: SSMIS::MetaData::longitude
    where:
      - SSMIS::MetaData::satelliteAscendingFlag == 0
      - SSMIS::MetaData::duplicateDataCheck == 1

Plotting YAML section:

        - type: MapScatter
          longitude:
            variable: ${variable}::Ascending_Orbital_Node_Highlighting_Duplicates::longitude
          latitude:
            variable: ${variable}::Ascending_Orbital_Node_Highlighting_Duplicates::latitude
          markersize: 2
          label: Duplicate Observations
          color: 'red'

Dependencies

None

Impact

None

Copy link
Collaborator

@CoryMartin-NOAA CoryMartin-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 from what I can tell, thanks @rhoneyager-tomorrow !

@asewnath asewnath merged commit ee5592b into JCSDA-internal:develop Jan 16, 2024
5 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.

3 participants