-
Notifications
You must be signed in to change notification settings - Fork 16
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
Accessing grid coordinates #50
Comments
@kwilcox only @ayan-usgs can answer correctly that question, but you must avoid using @ayan-usgs I will gladly help you write some docs and/or examples for |
Pysgrid doesn't handle staggered grids as if there are separate grids for nodes for I was trying to keep method names pretty generic, so |
@ayan-usgs, are you using In either case, we should have a way of easily extracting the lon/lat values of the "child" individual curvilinear grids that are associated with the the u, v, psi or rho points, so that it's easy for the user to extract data that will allow them to do analysis and plotting (e.g. |
@ocefpaf I agree, I was looking for a generic approach for returning all of the grids. I used the ROMS names for familiarity. @ayan-usgs @rsignell-usgs Rich said it better, I need a way to access all of the child grids as well as the main grid that we average everything onto for visualization purposes (if necessary). Maybe |
No, I am not currently using I think using the original nomenclature that Arakawa used in his paper is an awesome idea. It's something probably be acceptable to many users. It would allow users to work with a dataset without knowing too much about the data; my original thinking was that changing the variable names, when accessing variable attributes, would be confusing to someone who has a dataset and then read it into an sgrid object. I'll make an issue for this. |
So for a child grid, what would be the It seems more complicated then it needs to be. Would carrying being able to access lat/lon data via something like |
@ayan-usgs @rsignell-usgs In sci-wms, we need to create a tree index for each
grid
in a sgrid dataset so we can quickly identify the nearest grid point for a given lat/lon pair. When a request comes in for a variable, we look to see whichgrid
it is on (rho, psi, u, or v for ROMS, but it should be arbitrary) and use the appropriate tree index to query for the nearest grid point.Does access to this information exist in pysgrid? I couldn't find a way to pull it out.
What I'm looking to do:
What is
.centers
actually returning? Which grids? All that are available? How can I choose which to get back?I think this is close to what I'm looking for
The text was updated successfully, but these errors were encountered: