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

Fix coordinate order for projection grids #32

Merged
merged 3 commits into from
May 25, 2021

Conversation

xylar
Copy link
Collaborator

@xylar xylar commented May 24, 2021

We nearly always use square grids so presumably didn't notice the incorrect order.

Update example with projection grid. The grid is no longer square, does remapping with both remap_file and remap, and the first time index and top vertical level are selected from the input data for easier viz.

Update tests to handle fix to projection grids:

  • Test a non-square projection grid
  • Update the reference files
  • Remove redundant test for mpas_to_latlon
  • Test more examples with remap_file (ncremap)

xylar added 2 commits May 24, 2021 15:16
We nearly always use square grids so presumably didn't notice the
incorrect order.
The grid is no longer square, does remapping with both remap_file
and remap, and the first time index and top vertical level are
selected from the input data for easier viz.
@xylar xylar added the bug Something isn't working label May 24, 2021
@xylar xylar self-assigned this May 24, 2021
@pep8speaks
Copy link

pep8speaks commented May 24, 2021

Hello @xylar! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2021-05-24 13:29:36 UTC

Test a non-square projection grid

Update the reference files

Remove redundant test for mpas_to_latlon

Test more examples with remap_file (ncremap)
@xylar xylar force-pushed the fix_projection_dim_order branch from 2d8bd0a to 7df9f23 Compare May 24, 2021 13:29
@xylar
Copy link
Collaborator Author

xylar commented May 25, 2021

Testing

I tested these fixes on a QU240wLI simulation with MPAS-Analysis. The corrected dimension order is handled fine, perhaps because MPAS-Analysis happens to always use square projection grids.

https://web.lcrc.anl.gov/public/e3sm/diagnostic_output/ac.xylar/analysis_testing/chrysalis/test_projection_dim_fix/

@xylar xylar merged commit 89ee35d into MPAS-Dev:master May 25, 2021
@xylar xylar deleted the fix_projection_dim_order branch May 25, 2021 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants