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

ulon, ulat #56

Closed
wants to merge 2 commits into from
Closed

ulon, ulat #56

wants to merge 2 commits into from

Conversation

Lmoesinger
Copy link

@Lmoesinger Lmoesinger commented Sep 4, 2018

Added ulon and ulat to basegrid which can be used for other functions to get the unique lon/lat values.
Required for TUW-GEO/pynetcf#47

@@ -170,6 +170,9 @@ def __init__(self, lon, lat, gpis=None, geodatum='WGS84', subset=None,
self.arrlon = lon
self.arrlat = lat

self.ulon = np.unique(lon)
Copy link
Collaborator

Choose a reason for hiding this comment

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

If we add that then please document in the attributes above.

Copy link
Author

Choose a reason for hiding this comment

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

done

@cpaulik
Copy link
Collaborator

cpaulik commented Sep 17, 2018

As discussed we will not add this due to the easy confusion it adds if the lat, lon are sorted and data values are not. If somebody needs the unique lat and lon values then they are easy to compute from arrlon and arrlat

@cpaulik cpaulik closed this Sep 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants