Skip to content

Conversation

@rsignell-usgs
Copy link
Contributor

Description Of Changes

@rsignell-usgs
Copy link
Contributor Author

rsignell-usgs commented Mar 26, 2020

@dopplershift , to implement albers, I just copied the code for the lambert method and test. I figured they were both conformal, so the parameters should be the same? Of course there may be more to it than that, but fingers crossed! 😸

Copy link
Member

@dopplershift dopplershift left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks good in general. Just a few minor flake8 issues.

Copy link
Member

@dopplershift dopplershift left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!

@dopplershift dopplershift merged commit 915dd10 into Unidata:master Mar 27, 2020
@dopplershift dopplershift added this to the 1.0 milestone Mar 27, 2020
@dopplershift dopplershift added Area: Projections Pertains to projecting coordinates between coordinate systems Type: Feature New functionality labels Mar 27, 2020
@rsignell-usgs rsignell-usgs deleted the albers branch March 30, 2020 18:36
attrs = {'grid_mapping_name': 'albers_conical_equal_area', 'standard_parallel': 25}
crs = CFProjection(attrs).to_cartopy()
assert isinstance(crs, ccrs.AlbersEqualArea)
assert crs.proj4_params['lat_1'] == 20
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not seem to match with the attrs that was set (attrs says 25, this says 20), which is causing test suite to now fail after the fixes I'm working on in #1325. @dopplershift Can I update it there to get tests passing?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sigh Yes. This is why we need CI working, because I suck at code review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Projections Pertains to projecting coordinates between coordinate systems Type: Feature New functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support albers_conical_equal_area projection

3 participants