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

Xarray accessor updates to remove automatic quantification and in-place operations #1378

Closed
wants to merge 8 commits into from
Closed

Xarray accessor updates to remove automatic quantification and in-place operations #1378

wants to merge 8 commits into from

Conversation

jthielen
Copy link
Collaborator

Description Of Changes

Based on lingering discussions (particularly in #1354), this PR implements a few cleanups on the xarray accessors needed for work on #1353 to continue, namely, removing automatic conversion to quantities in parse_cf (since its loading of data into memory can cause errors) and making sure all operations are not in-place. There is one place where "side effects" still occur (caching of the coordinate parsing results in the _metpy_axis attribute), but I figured this was still okay (and hard to avoid, since it is invoked when using a property).

Also, I've left this PR in draft status, since it depends on #1372 for Cartopy 0.18 fixes and #1373 for flake8/pylint fixes.

Checklist

dopplershift and others added 8 commits May 13, 2020 19:07
CartoPy 0.18 started validating scales for NaturalEarthFeature, which
breaks with the scales for our own map features. There's really no
reason to inherit from NaturalEarthFeature, so just make this inherit
Feature and add a few missing things.
Matplotlib (as of 3.2.2) does not properly clip text to paths. For now,
add a clipbox for the Axes bounding box, which will supplement the set
clip path.
0.18 started autoscaling map features and updated some gridline
handling, causing changes to our test images.
@jthielen jthielen added Area: Xarray Pertains to xarray integration Type: Maintenance Updates and clean ups (but not wrong) labels May 25, 2020
@jthielen jthielen added this to the 1.0 milestone May 25, 2020
@dopplershift dopplershift self-requested a review May 28, 2020 19:21
@jthielen jthielen mentioned this pull request Jul 9, 2020
3 tasks
@jthielen
Copy link
Collaborator Author

Closing since I had to re-create my MetPy fork, which means this PR no longer has a valid reference. Will put up a new PR once master is in a stable enough state that I can avoid too many rebases on antecedent patches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Xarray Pertains to xarray integration Type: Maintenance Updates and clean ups (but not wrong)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How does cross_section recognize projections?
2 participants