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

Feature/new ncextract #62

Merged
merged 13 commits into from
Apr 30, 2024
Merged

Feature/new ncextract #62

merged 13 commits into from
Apr 30, 2024

Conversation

casadoj
Copy link
Collaborator

@casadoj casadoj commented Apr 16, 2024

This branch is an improvement of the ncextract tool:

  1. The tool now allows to read both NetCDF and GRIB files. I have added to requirements.txt the library cfgrib.
  2. The tool is now able to read input files whose coordinates are not named 'lat' or 'lon', as it was hard coded up until now. This was a problem because files in the Climate Data Store use the names 'latitude' and 'longitude'. Any coordinate name that starts with 'x', 'y', 'lat' or 'lon' will be recognised now.
  3. I have divided the previous code in three functions: read_inputmaps, read_points and extract_timeseries. In this way, the function extract_timeseries can be imported an used in the pipeline of any Python script.
from lisfloodutilities.ncextract import extract_timeseries

I have updated the documentation and test.

@doc78 doc78 merged commit 3ce5cff into development Apr 30, 2024
1 check passed
@doc78 doc78 deleted the feature/new_ncextract branch April 30, 2024 10:09
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.

2 participants