-
Notifications
You must be signed in to change notification settings - Fork 38
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 1000 cycloneplotter #1202
Conversation
…gitudes that could cross the International Date Line.
… file will be written
…coded filename and location.
…x the subsetted dataframe to avoid array indexing issues.
…arker sizes to smaller values.
…nter/METplus into feature_1000_cycloneplotter
… and watermark on/off.
…to configuration
…erence system), remove unneccessary code and comments, add support to read the central longitude from the config file.
…ature_1000_cycloneplotter
…80 to center the map over the Pacific Ocean
… will always be set to 180 in the plotting script to center the map on the Pacific Ocean.
…ting, cleaning up code, moving hard-coded values from the plotting method into initialization section.
Now some use case tests are failing because previous plots don't match the new ones. |
I ran both use cases indicated in the PR and was successful in creating output that reflected the desired update: storm lines no longer cross the entire globe when they go across the PM. In this respect, the code updates were successful. Not only that, but there was update to the size of the legend box, so it no longer overlaps on the map area and the size of the font looks more appropriate for the image size. The only errors in the automated checks are explainable by new output, which @bikegeek noted in the PR. |
…ls/cartopy#1401 and removing the original command of ax.gridlines(draw_labels=False, xlocs=[180, -180]) to prevent overlapping of 180E and 180W for central_longitude=180. Also fixed the sorting so the final ASCII (.csv) representation of the final data frame has been reindexed.
removed extra entry for met_tools to test the cycloneplotter wrapper earlier in the process.
Requires cartopy 0.18 to remove the overlapping 180/-180 longitude labels when the central longitude=180. Use the conda env cycloneplotter_carto_0_18 on 'seneca' in /home/met_test/.conda/envs/cycloneplotter_carto_0_18 |
update cartopy version from 0.17 to 0.18 (the 0.18 version "fixes" the issue with overlapping 180/-180 longitude labels when the central longitude is set to 180).
As @bikegeek indicated in the last comment, the bug of write-over text on the longitudes at the international dateline has been solved; it requires a new cartopy version to be used. I reran the 2 use cases and confirmed that this fix works as intended with no other undesired effects. |
Pull Request Testing
https://github.com/dtcenter/METplus/blob/feature_1000_cycloneplotter/parm/use_cases/model_applications/tc_and_extra_tc/CyclonePlotter_fcstGFS_obsGFS_UserScript_ExtraTC.conf
to verify that the extraneous lines are absent.
https://github.com/dtcenter/METplus/blob/feature_1000_cycloneplotter/parm/use_cases/model_applications/tc_and_extra_tc/Plotter_fcstGFS_obsGFS_ExtraTC.conf
This will produce more tracks as the original code was not correctly retrieving all the available tracks.
Recommend testing for the reviewer(s) to perform, including the location of input datasets, and any additional instructions:
re-create the plot using the same two use cases above.
Do these changes include sufficient documentation updates, ensuring that no errors or warnings exist in the build of the documentation? [Yes ]
Do these changes include sufficient testing updates? [NA]
Will this PR result in changes to the test suite? [Yes ]
Different images produced than the original implementation, resulting in failed checks (2, because I added a test for the same thing early on in the testing cycle):
_
_
Pull Request Checklist
See the METplus Workflow for details.
Select: Reviewer(s)
Select: Organization level software support Project or Repository level development cycle Project
Select: Milestone as the version that will include these changes