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 1000 cycloneplotter #1202

Merged
merged 25 commits into from
Oct 19, 2021
Merged

Feature 1000 cycloneplotter #1202

merged 25 commits into from
Oct 19, 2021

Conversation

bikegeek
Copy link
Contributor

@bikegeek bikegeek commented Oct 8, 2021

Pull Request Testing

  • Describe testing already performed for these changes:
  • generate plots for use case using the CyclonePlotter ExtraTC config file at:

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.

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):
_

ERROR: Some differences were found
file not found (new output)
A:
B:/data/output/CyclonePlotter/metplus_final.conf

file not found (new output)
A:
B:/data/output/CyclonePlotter/cyclone/20150301.png

file not found (new output)
A:
B:/data/output/CyclonePlotter/cyclone/20150301.csv

Finished comparing directories

_

  • Please complete this pull request review by [end of Week of October 12].

Pull Request Checklist

See the METplus Workflow for details.

  • Complete the PR definition above.
  • Ensure the PR title matches the feature or bugfix branch name.
  • Define the PR metadata, as permissions allow.
    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
  • After submitting the PR, select Linked issues with the original issue number.
  • After the PR is approved, merge your changes. If permissions do not allow this, request that the reviewer do the merge.
  • Close the linked issue and delete your feature or bugfix branch from GitHub.

bikegeek and others added 22 commits September 21, 2021 17:25
…gitudes that could cross the International Date Line.
…x the subsetted dataframe to avoid array indexing issues.
…erence system), remove unneccessary code and comments, add support to read the central longitude from the config file.
… 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.
@bikegeek bikegeek requested a review from j-opatz October 8, 2021 03:05
@bikegeek bikegeek added this to the METplus-4.1.0 milestone Oct 8, 2021
@bikegeek bikegeek linked an issue Oct 8, 2021 that may be closed by this pull request
22 tasks
@bikegeek bikegeek closed this Oct 8, 2021
@bikegeek
Copy link
Contributor Author

bikegeek commented Oct 8, 2021

Now some use case tests are failing because previous plots don't match the new ones.

@bikegeek bikegeek reopened this Oct 12, 2021
@j-opatz
Copy link
Contributor

j-opatz commented Oct 14, 2021

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.
However, I did want to note one thing: in an earlier test, the output showed one of the issues, the overlap of the 180 E/180 W text, had been resolved:
resolved_180_text
My current run shows that these values are again overlapping:

Screen Shot 2021-10-14 at 1 37 40 PM
This is not listed in the issue so I'll approve the PR, but would it be possible to address this issue in this code update? If not, we can open a new issue for this.

bikegeek and others added 2 commits October 14, 2021 17:15
…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.
@bikegeek bikegeek marked this pull request as draft October 16, 2021 00:22
@bikegeek
Copy link
Contributor Author

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

@bikegeek bikegeek marked this pull request as ready for review October 16, 2021 00:24
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).
@j-opatz
Copy link
Contributor

j-opatz commented Oct 18, 2021

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.
I suggest discussing the inclusion of the new cartopy version in the existing cyclone Conda environment with @georgemccabe, since I don't think we want/need a completely new conda environment to support.

@bikegeek bikegeek merged commit 139ee0d into develop Oct 19, 2021
@bikegeek bikegeek deleted the feature_1000_cycloneplotter branch October 19, 2021 22:33
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.

CyclonePlotter, connected lines run over the Prime Meridian
3 participants