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

fix reproject in virtual product #1073

Closed
wants to merge 2 commits into from
Closed

fix reproject in virtual product #1073

wants to merge 2 commits into from

Conversation

emmaai
Copy link
Contributor

@emmaai emmaai commented Apr 7, 2021

Reason for this pull request

Proposed changes

@emmaai emmaai requested review from Kirill888 and uchchwhash April 7, 2021 07:50
@codecov
Copy link

codecov bot commented Apr 7, 2021

Codecov Report

Merging #1073 (6b72a0b) into develop (6ee0462) will increase coverage by 0.21%.
The diff coverage is 25.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1073      +/-   ##
===========================================
+ Coverage    93.14%   93.36%   +0.21%     
===========================================
  Files          102      102              
  Lines         9949     9927      -22     
===========================================
+ Hits          9267     9268       +1     
+ Misses         682      659      -23     
Impacted Files Coverage Δ
datacube/virtual/impl.py 77.04% <25.00%> (+3.99%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6ee0462...6b72a0b. Read the comment docs.

@uchchwhash
Copy link
Member

Issue #1072 is a serious oversight that I am responsible for, but this solution is unacceptable to me as this package IMHO should not have odc-tools as a dependency. Let me see if I can fix it.

Copy link
Member

@uchchwhash uchchwhash left a comment

Choose a reason for hiding this comment

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

Please do not import odc.algo.

@Kirill888
Copy link
Member

Agree with @uchchwhash odc.algo itself depends on datacube, we don't want to create dependency loops like that. Probably best to move some of the odc.algo code into datacube core and add proper tests for it. Or just fix current code. If one assumes that one time-slice fits into RAM without problems then you CAN have much simpler reprojection logic for Dask arrays and maybe for this application it is best to stick with that approach. Implementation still needs to be correct though.

@emmaai
Copy link
Contributor Author

emmaai commented Apr 8, 2021

I'll close the pull request but stay on the branch for a while until #1072 fixed as everybody agrees on

@emmaai emmaai closed this Apr 8, 2021
@snowman2
Copy link
Contributor

snowman2 commented Apr 8, 2021

odc.algo itself depends on datacube, we don't want to create dependency loops like that. Probably best to move some of the odc.algo code into datacube core and add proper tests for it

Here is another alternative: opendatacube/odc-tools#58 😄

@uchchwhash uchchwhash deleted the virtual_reproject branch June 4, 2021 00:24
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

Successfully merging this pull request may close these issues.

Need the spatial coords to carry correct spatial_ref and crs
4 participants