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

New tool catchstats and updates to ncextract tool #64

Merged
merged 53 commits into from
May 8, 2024
Merged

Conversation

doc78
Copy link
Collaborator

@doc78 doc78 commented Apr 30, 2024

  • New tool called catchstats used to compute catchment statistics. The tool can be used either from the command prompt or imported in a Python script:
    from lisfloodutilities.catchstats import catchment_statistics
  • Updates to ncextract tool, that now allows to read both NetCDF and GRIB files. 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.
    Code is now split 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
  • Updates to the README.md to improve the readability of some documentation.

casadoj and others added 30 commits March 25, 2024 11:08
…ns, so function "catchment_statistics" can be imported in a script to be used as convenient
…or NetCDF files whose coordinate names differ from "lat" and "lon"
@doc78 doc78 merged commit 506b693 into master May 8, 2024
1 check 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