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
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion pygeogrids/grids.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

self.ulat = np.unique(lat)

self.shape = None

if shape is not None and len(shape) == 2:
Expand Down Expand Up @@ -720,7 +723,7 @@ def __eq__(self, other):
class CellGrid(BasicGrid):

"""
Grid that has lat,lon coordinates as well as cell informatin. It can find
Grid that has lat,lon coordinates as well as cell information. It can find
nearest neighbour. It can also yield the gpi, lat, lon, cell information
in cell order. This is important if the data on the grid is saved in cell
files on disk as we can go through all grid points with optimized
Expand Down