-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add GridObject class #6
Comments
There are a few things that we should consider when creating the GRIDobj-class, at least I am currently facing a couple of challenges when implementing the new MATLAB version. I am not sure whether and, if, to what degree, some design decisions should apply to the Python-version as well. First of all, instead of storing the coordinate vectors, I used to use a refmat-Matrix, and computed the coordinate vectors, if needed from the row and column indices (subscripts) from the grid. MATLAB, however, has abandoned refmat and uses a worldfilematrix instead. The matrix is a 2x3 matrix that let's you calculate coordinates from the intrinsic coordinates (the subscripts) using matrix multiplication. Perhaps, we should use this approach in Python as well. |
Closes #5 and #6 This commit adds a GridObject class with an info method. The GridObject constructor loads data from a file using rasterio, and `info` prints some useful information about the object. An example Jupyter notebook is added demonstrating the usage. The notebook requires data that can be found in wschwanghart/DEMs
No description provided.
The text was updated successfully, but these errors were encountered: