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

Create coordinate converter for [0,360] to [-180,180] #21

Closed
18 of 20 tasks
bikegeek opened this issue Sep 2, 2020 · 0 comments
Closed
18 of 20 tasks

Create coordinate converter for [0,360] to [-180,180] #21

bikegeek opened this issue Sep 2, 2020 · 0 comments
Assignees
Labels
component: plot point data priority: high High Priority requestor: NCAR/RAL NCAR Research Applications Laboratory type: task An actionable item of work
Milestone

Comments

@bikegeek
Copy link
Collaborator

bikegeek commented Sep 2, 2020

Describe the Task

Create a utility to convert longitudes that range from 0 to 360 to those that range from -180 to 180 (ie West-East). Read in a numpy array or list of longitudes and return a numpy list of longitudes. Use the formula lon_west_east = ((lon_360 + 180.0) % 360.0 ) - 180.0 where '%' is the modulo operator.

Time Estimate

Estimate the amount of work required here.
This should take one day including writing tests.

Sub-Issues

Consider breaking the task down into sub-issues.

  • Create the feature branch from the develop branch
  • Add a function to the util/utils.py module
  • Write parametrized unit test in pytest

Relevant Deadlines

List relevant project deadlines here or state NONE.

Funding Source

Define the source of funding and account keys here or state NONE.

Define the Metadata

Assignee

  • Select engineer(s) Minna Win
  • Select scientist(s) Tina Kalb

Labels

  • Select component(s)
  • Select priority
  • Select requestor(s)

Projects and Milestone

  • Review projects and select relevant Repository and Organization ones
  • Select milestone

Define Related Issue(s)

Consider the impact to the other METplus components.

Task Checklist

See the METplus Workflow for details.

  • Complete the issue definition above.
  • [x ] Fork this repository or create a branch of develop.
    Branch name: feature_<Issue Number>_<Description>
  • Complete the task and verify your changes.
  • Add/update unit tests.
  • Add/update documentation.
  • Push local changes to GitHub.
  • Submit a pull request to merge into develop and link the pull request to this issue.
    Pull request: feature <Issue Number> <Description>
  • Iterate until the reviewer(s) accept and merge your changes.
  • Delete your fork or branch.
  • Close this issue.
@bikegeek bikegeek added associated: METplotpy component: plot point data priority: high High Priority type: task An actionable item of work requestor: NCAR/RAL NCAR Research Applications Laboratory labels Sep 2, 2020
@bikegeek bikegeek added this to the METcalcpy future milestone Sep 2, 2020
@bikegeek bikegeek self-assigned this Sep 2, 2020
@bikegeek bikegeek added this to To do in METcalcpy-1.0-beta1 (10/23/20) via automation Sep 11, 2020
@bikegeek bikegeek moved this from To do to Pull request review in METcalcpy-1.0-beta1 (10/23/20) Sep 11, 2020
@bikegeek bikegeek moved this from Pull request review to Done in METcalcpy-1.0-beta1 (10/23/20) Sep 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: plot point data priority: high High Priority requestor: NCAR/RAL NCAR Research Applications Laboratory type: task An actionable item of work
Projects
No open projects
Development

No branches or pull requests

1 participant