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

i.sentinel.coverage: update module to be compatible with the i.sentinel.download EODAG migration #1192

Open
wants to merge 6 commits into
base: grass8
Choose a base branch
from

Conversation

HamedElgizery
Copy link
Contributor

As of the i.sentinel.download migration to the EODAG API, multiple changes are needed to make i.sentinel.coverage compatible. The main problem was because the key referring to the scenes' files names are changed from identifier to title

This PR will also fix the example of using the name option, by omitting the clouds option, and by removing the exclusivity relation between the names and the producttype options.

@HamedElgizery HamedElgizery force-pushed the sentinel_coverage_download_comp branch from d81fe50 to 838fd92 Compare August 27, 2024 23:29
quiet=True,
)
columns_dict = grass.parse_command("v.info", map=temp_overlay, flags="c")
drop_columns = [
col.split("|")[1]
for col in columns_dict
if col.split("|")[1] not in ["cat", "identifier"]
if col.split("|")[1]
not in ["cat", "title"] # What does cat refer to here?
Copy link
Contributor

Choose a reason for hiding this comment

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

cat is the geometry identifier in GRASS vector maps, so, like the id in other formats

@HamedElgizery HamedElgizery marked this pull request as ready for review October 12, 2024 14:50
@HamedElgizery
Copy link
Contributor Author

Hello @veroandreo, sorry for the late follow up here.
I have updated the manual page and the i.sentinel.coverage and it works fine as far as I have tested.

There have been a problem with EODAG < 3.0.0... The results of searching wasn't consistent, as if you were to do the same searching query twice, the resulting scenes could vary, and that was causing troubles with i.sentinel.coverage. But, it is fixed now with EODAG 3, and the module works fine now.

I will add a check to make sure that the version of EODAG installed is > 3.0.0 here. (and within i.sentinel.download in another PR)

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.

2 participants