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

Bugfix for shapefile reader #147

Merged
merged 97 commits into from Feb 14, 2024
Merged

Bugfix for shapefile reader #147

merged 97 commits into from Feb 14, 2024

Conversation

wcarthur
Copy link
Member

Existing shapefile.py was based on an old version of pyshp.shapefile, but this caused cartopy to use the older version of shapefile, which led to ShapefileExceptions when trying to plot maps.

This bugfix removes the old shapefile.py from the Utilities module and replaces references to that file with the pyshp version.

As pyshp is a dependency of cartopy, it is installed as part of the enviroment.

wcarthur and others added 30 commits April 16, 2021 15:13
track.ncReadTrackData previously returned cftime.DatetimeGregorian objects, which caused newer versions of matplotlib.dates.num2date to fail. This is because we write the tracks with units of 'hours since 1900-01-01 00:00', but matplotlib.dates uses 1970-01-01 as the epoch, and works in units of days (with no way to specify units in the num2date function).
* Update README.rst

* Update version number

* Merge commit 'ea8e3b816cf01089a304e121669880ef193c4b23'

* Read netcdf-format track file from GA SST

GA's Scenario selection tool allows users to download a selected track file, but due to technical constraints this is in a different format. This change allows TCRM to read the modified format.

* Fix up a couple of tests that were failing

* Bugfix: getPoci returns np.nan incorrectly

* Create tcrm-tests.yml for github actions
Remove `fail-under` threshold
* Add script to run through all permutations of wind parameters
* NHIRS-148: Using queue instead of massive number of threads.
* NHIRS-148: Re-organised imports.
* NHIRS-148: Added logging
* NHIRS-148: Removed unnecessary usage of threading.
* NHIRS-148: FlushCache added on each 1% progress and at the end.

Co-authored-by: Craig Arthur <craig.arthur@ga.gov.au>
Co-authored-by: Craig Arthur <wcarthur@gmail.com>
* Updated rmax to linear formula

Co-authored-by: Craig Arthur <craig.arthur@ga.gov.au>
Kieran Ricardo and others added 29 commits March 24, 2022 09:30
This PR implements several functions in fortran with MPI parallelisation:

- the Holland profile vorticity, velocity, and pressure profile
- the Kepert wind field model
- the conversion from latitude and longitude to polar coordinates

This yields a total speedup of 5x when calculating wind fields and potentially more if the wind fields at each time step are not saved.
* handle pycxml track files
* fix fortran warnings
* edit track class
* use single process
* close netcdf files asap
* make pycxml optional

Co-authored-by: Kieran Ricardo <kr4383@gadi-login-09.gadi.nci.org.au>
Co-authored-by: Kieran Ricardo <kr4383@gadi-login-07.gadi.nci.org.au>
gdal multi-threading for reprojection
Adds in a script to quickly downscale the wind multipliers and apply them to many wind fields quickly. If the wind multipliers have already been extracted this process takes minutes instead of weeks.

Co-authored-by: Kieran Ricardo <kr4383@gadi-login-04.gadi.nci.org.au>
* BUGFIX: Fix autocorrelation function
* Use mamba - Github actions environment build time was > 30 minutes
* Swap scipy random for numpy version
* Change order of modules - mamba build wanted gdal as first module in the list
* Update test_maps.py - moving to matplotlib 3.3 seems to have changed the way segment data is represented in LinearSegmentedColormap instances
* Remove deprecated Basemap references
* Update conda environment file
* Update actions/checkout to v3, setup-miniconda to v2.2
* Leave shapely to dependencies
* Remove cartopy version, bump python version
* Stringify python version
* Remove deprecated Basemap references
@wcarthur wcarthur merged commit 2109cdd into master Feb 14, 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.

None yet

3 participants