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

REF: Use pyproj 3+ for PROJ 8+ migration #1808

Merged
merged 52 commits into from
Aug 31, 2021
Merged

Commits on Aug 13, 2021

  1. Configuration menu
    Copy the full SHA
    726ebac View commit details
    Browse the repository at this point in the history
  2. MAINT: Changing PlateCarree projection to be more lat/lon like

    - This pushes the units conversion up to PROJ and allows a globe
      to be defined with a WGS84 semimajor axis which helps for
      coordinate conversions down the line.
    greglucas authored and snowman2 committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    b6a879c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5d567ab View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    48ccf7d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3311d7f View commit details
    Browse the repository at this point in the history
  6. FIX: Update to fix image transforms

    - Set trap=False in transform_points to allow out of bounds calculations
    - Ignore the geocentric projection pivot in the image transform
    greglucas authored and snowman2 committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    017f989 View commit details
    Browse the repository at this point in the history
  7. TST: Use the Longitude/Latitude Formatters inside tests

    Update the tests to use the proper longitude/latitude formatters
    rather than rolling our own.
    greglucas authored and snowman2 committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    b33a69e View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    0617650 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    72be991 View commit details
    Browse the repository at this point in the history
  10. FIX: Add RotatedPole to list of mod-180 transforms

    Moves the transform_points update from PlateCarree into the
    Projection superclass and tests for _CylindricalProjection in
    there. Also added RotatedPole to the trace.pyx mod-180 checks.
    greglucas authored and snowman2 committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    9ed268c View commit details
    Browse the repository at this point in the history
  11. TST: Remove Squashed Mercator Test due to bad cellestial body

    You can't draw coastlines associated with WGS84 on a smaller ellipse
    in newer PROJ versions due to different celestial bodies error.
    greglucas authored and snowman2 committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    c57b399 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    f9e7b12 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    a3e50dd View commit details
    Browse the repository at this point in the history
  14. REF: Use ellipsoid instead of globe for axis; Use PROJ JSON for geoce…

    …ntric CRS for more accurate datum information
    snowman2 committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    9311aa2 View commit details
    Browse the repository at this point in the history
  15. FIX: Force Projections to not be Geodetic

    Some projections can be geographic in pyproj, but Cartopy views
    GeodeticCRS different and has some different handling of functions
    based on this check. For now, we will force all Projections to not
    be of Geodetic type.
    greglucas authored and snowman2 committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    3b15a54 View commit details
    Browse the repository at this point in the history
  16. LNT: Address flake8 errors

    snowman2 committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    178bec0 View commit details
    Browse the repository at this point in the history
  17. TST: Swap longitude/latitude to correct places

    The longitude and latitude were in the wrong locations, so put
    these into the right X/Y spot for the test.
    greglucas authored and snowman2 committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    20c5391 View commit details
    Browse the repository at this point in the history
  18. FIX: Always copy input array when wrapping coordinates

    The old array is still used for determining wraps later on, so we
    don't want to modify the array in-place.
    greglucas authored and snowman2 committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    3fc24f5 View commit details
    Browse the repository at this point in the history
  19. TST: Updating the tolerance for global wrap test

    Rather than updating the image, just bump the tolerance up a tiny amount
    to account for the shift in some of the pixels. This will still
    catch the big errors like missing a wrap.
    greglucas authored and snowman2 committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    a4011ff View commit details
    Browse the repository at this point in the history
  20. TST: Update test for set_extent in RotatedPole coordinates

    When setting the extent, you have to be within the proper domain,
    so subtract 360 to force the proper bounds.
    greglucas authored and snowman2 committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    28e52b1 View commit details
    Browse the repository at this point in the history
  21. FIX: Update all Globes to use proper semimajor axes

    PROJ requires semimajor axes to be compatible, but Cartopy previously
    used an artificial semimajor axis to make the units work out nicely.
    Instead make the units work out by using the "+to_meter" argument
    to PROJ.
    greglucas authored and snowman2 committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    40b7fc8 View commit details
    Browse the repository at this point in the history
  22. TST: Update split polygon test to exceed bounds

    To split the Polygon we need to go outside of the True bounds,
    not just land on it, so increase the limit just a bit.
    greglucas authored and snowman2 committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    4db5f18 View commit details
    Browse the repository at this point in the history
  23. FIX: Enable Geodetic to wrap to 180

    Also update the expected values in the test for gridding data
    outside of the transform. Once the values are wrapped, the
    expected value should be the 3rd entry.
    greglucas authored and snowman2 committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    e65cd85 View commit details
    Browse the repository at this point in the history
  24. TST: Updating test images and tolerances

    Updated the tolerances of a few, but the ones that changed by
    a decent amount were updated.
    greglucas authored and snowman2 committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    870c387 View commit details
    Browse the repository at this point in the history
  25. FIX: Pass globe as keyword argument in the extent calcs

    Globe is not the first argument, so it needs to be passed as a keyword.
    greglucas authored and snowman2 committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    9a1dd29 View commit details
    Browse the repository at this point in the history
  26. CI: Run python 3.7 & 3.8

    snowman2 committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    52664f2 View commit details
    Browse the repository at this point in the history
  27. DOC: Updating the eccentric ellipse image

    - Updating the extents of the image to correspond with the new
      PlateCarree "to_meter" conversion to always be between -180, 180.
    - Swap the extents in y to be negative so that the image is the
      same orientation as in the URL.
    - Remove the Frame from the Axes as the boundary isn't computed
      properly for an eccentric Globe.
    greglucas authored and snowman2 committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    5aed835 View commit details
    Browse the repository at this point in the history
  28. DOC: Remove explicit datum definition from effects of ellipse example

    PROJ shortcuts the transform if the datum is the same, so remove the
    datum to get a spherical transform in this example.
    greglucas authored and snowman2 committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    22dc737 View commit details
    Browse the repository at this point in the history
  29. CI: Update the minimum Python to 3.7 and numpy to 1.18

    These are in accordance with NEP29 for a release after July 2021.
    greglucas authored and snowman2 committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    ed5c471 View commit details
    Browse the repository at this point in the history
  30. TST: Removing old MPL images and updating test tolerances

    - Removes old images no longer supported for testing.
    - Updates tolerances to support older versions of MPL on those tests.
    greglucas authored and snowman2 committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    3481906 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    5de38a4 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    545168a View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    40a6e0a View commit details
    Browse the repository at this point in the history
  34. CI: pin pyproj=3.0 for min

    snowman2 committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    b397b1c View commit details
    Browse the repository at this point in the history
  35. CI: PROJ 8.0 in ci

    snowman2 committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    8e06257 View commit details
    Browse the repository at this point in the history
  36. TST: Update testing tolerances for minimum versions

    Adjust the image tolerances for the minimum MPL version. The images
    all look roughly the same, only with minor pixel shifts.
    This reduces the number of images added to the repository.
    greglucas authored and snowman2 committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    1ad3e3a View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    013a72e View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    af24b7e View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    8d06f38 View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    65d91cc View commit details
    Browse the repository at this point in the history
  41. MNT: Clean up image transform routines

    - Removed some duplicate transformations
    - Cleaned up documentation
    greglucas authored and snowman2 committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    b1e14d2 View commit details
    Browse the repository at this point in the history
  42. Revert "TST: Update test for set_extent in RotatedPole coordinates"

    This reverts commit 3b39029.
    greglucas authored and snowman2 committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    f0908a4 View commit details
    Browse the repository at this point in the history
  43. CI: Speed up doc build by allowing pyproj global context

    Adds the environment variable PYPROJ_GLOBAL_CONTEXT=ON
    greglucas authored and snowman2 committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    1152eab View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    02ecb6e View commit details
    Browse the repository at this point in the history
  45. Configuration menu
    Copy the full SHA
    234b0a9 View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2021

  1. Configuration menu
    Copy the full SHA
    9bdeade View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    73c5641 View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2021

  1. Update url to PROJ docs

    Co-authored-by: Ryan May <rmay31@gmail.com>
    snowman2 and dopplershift committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    60c5b38 View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2021

  1. MNT: Add cache for creating interpolator

    It is slow to create an interpolator and there are a lot of calls to
    project, so keep the interpolator around to speed up repeated calls.
    greglucas committed Aug 22, 2021
    Configuration menu
    Copy the full SHA
    e763573 View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2021

  1. Configuration menu
    Copy the full SHA
    6867415 View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2021

  1. MNT: Add an equals method on CRS objects

    pyproj == comparison is slow, so if we are comparing two Cartopy
    CRSs, return a fast-path comparison. Let the pyproj comparison
    handle the other cases.
    greglucas committed Aug 29, 2021
    Configuration menu
    Copy the full SHA
    bc63290 View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2021

  1. Configuration menu
    Copy the full SHA
    2db5efc View commit details
    Browse the repository at this point in the history