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

Feature/geotiff export #364

Merged
merged 10 commits into from
Feb 5, 2020
Merged

Feature/geotiff export #364

merged 10 commits into from
Feb 5, 2020

Conversation

mpu-creare
Copy link
Contributor

This adds geotiff export support to podpac. This is in support of the WCS OGC endpoint.

Right now the rotated coordinates are probably not working, but with this update 90% of the WCS endpoint should work. That piece is untested.

jmilloy and others added 5 commits February 4, 2020 06:40
* Fixed some inconsistencies / bugs in the geotransform. I'm trying to move most of the heavy lifting to the Coordinates object
* The GDAL transform's first line is for the X or Lon direction, the second line is for the Y or Lat direction, which means if the data is not organized so that rows corresponds to changes in lat, we need to rework some automatically computed geotransforms
* Coordinates now handles the `from_geotransform` work, and operates with both rot (untested) and uniform coordinates (tested)
    * Rot coords will be tested once #363 is solved
* Extended Rasterio to handle multi-band data.
* Removed logic from get_native_coordinates and used Coordinates.from_geotransform instead
* In the units.to_geotiff function, converted back to an rasterio.affine geotransform due to deprecation warning... perhaps should do the affine geotransform everywhere.
@mpu-creare mpu-creare requested a review from jmilloy February 4, 2020 21:33
@coveralls
Copy link

coveralls commented Feb 4, 2020

Coverage Status

Coverage increased (+0.2%) to 91.855% when pulling 8dd36c1 on feature/geotiff-export into 2d0a5a9 on develop.

@mpu-creare mpu-creare added the enhancement New feature or request label Feb 4, 2020
@mpu-creare
Copy link
Contributor Author

Okay. Tests are passing. Let me know if you have any comments @jmilloy, I'd like to merge today.

@mpu-creare mpu-creare mentioned this pull request Feb 5, 2020
Copy link
Collaborator

@jmilloy jmilloy left a comment

Choose a reason for hiding this comment

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

Looks great. I made a few optional suggestions for simplification/readability, and if you like those changes but don't have time, let me know and I'll do it real quick.

I do want to deal with the easy exception handling better, if possible.

podpac/core/coordinates/coordinates.py Show resolved Hide resolved
podpac/core/coordinates/coordinates.py Outdated Show resolved Hide resolved
podpac/core/coordinates/coordinates.py Outdated Show resolved Hide resolved
podpac/core/coordinates/coordinates.py Outdated Show resolved Hide resolved
podpac/core/coordinates/coordinates.py Outdated Show resolved Hide resolved
@jmilloy jmilloy self-requested a review February 5, 2020 19:37
@mpu-creare
Copy link
Contributor Author

@jmilloy Looks like the tests are passing. Please merge if you're happy. Otherwise I'll merge it when I have a moment.

@jmilloy jmilloy merged commit 254d979 into develop Feb 5, 2020
@jmilloy jmilloy deleted the feature/geotiff-export branch February 5, 2020 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants