Skip to content

Implications of using absolute cellsize after conversion from latlng to meters? #124

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

Closed
chase-dwelle opened this issue Aug 31, 2020 · 1 comment

Comments

@chase-dwelle
Copy link
Contributor

I'm using focal statistics with GeoTIFFs in EPSG:4326, I used the lnglat_to_meters to convert the coordinates to meters. However, when doing this I get a negative cellsize_y, which causes downstream issues.

Is there any issue with using return cellsize_x, np.abs(cellsize_y) to address this, or will their be ramifications I'm not accounting for?

chase-dwelle added a commit to chase-dwelle/xarray-spatial that referenced this issue Aug 31, 2020
brendancol pushed a commit that referenced this issue Sep 3, 2020
* Adding annulus kernel

* Allow outputting of z-scores

* Return absolute cell size. Relates to #124

* Change type check to np.floating

* Remove focal point from annulus kernel.

* Remove z-score from hotspots

* Refactored kernels for focal statistics.

* Adding tests for refactored focal statistics.

* Simplify annulus kernel function by referencing circular kernel
@chase-dwelle
Copy link
Contributor Author

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

No branches or pull requests

1 participant