-
Notifications
You must be signed in to change notification settings - Fork 25
Remove 360-degree shift from fix_features_at_prime_meridian.py #55
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
Conversation
|
I have tested both The result of the following commands: is a shape split at both meridians, as expected: |
4352a92 to
9db8c66
Compare
|
@xylar, can you please rebase this branch and then I'll review it? |
9db8c66 to
6e12e7f
Compare
|
@pwolfram, in the end, I don't think the rebase was necessary because I think a merge would have detected the redundant commits. But I just did the rebase in any case. Removing the don't merge flag. |
This merge removes a command to translate the western portin of a feature by 360 degrees after splitting along the prime meridian. Instead, longitudes should remain between -180 and 180 degrees. Updated the docstrings for both fix_features*.py scripts to reflect the fact that the output file may be specified by the -o flag.
|
@xylar, this looks good. Some thoughts:
┌─[pwolfram][shapiro][~/Documents/MPAS_pull_requests/fix_feature_prime_meridian_shift][11:26][±][fix_fix_prime_meridian_scrip ✗]
└─▪ git grep fix_features
driver_scripts/setup_antarctic_basins.py:41:args = ['./fix_features_at_prime_meridian.py', '-f', outName]
driver_scripts/setup_ocean_land_coverage.py:46:#args = ['./fix_features_at_prime_meridian.py', '-f', outName]
fix_features_at_prime_meridian.py:7:call fix_features_at_antimeridian.py first if necessary before using thisI'm happy to merge this but it may be useful to consider these potential cleanup steps, which are obviously not high-priority. |
|
@pwolfram, I think there is a logical difference between the two scripts and we had rather different uses for them. In fact, we may not need
|
|
@xylar, should we remove |
|
@pwolfram, you could make an issue for this. For now, I'm not entirely sure it's not needed so it should stay. |
This merge removes an unnecessary shift by 360 degrees in the script fix_features_at_prime_meridian.py. This behavior was added for compatibility with the 0-360 degree longitude coordinate used in MPAS-O but is no longer needed because the mask creator supports features between -180 and 180 degrees longitude by default.