fraymio / modis-tools

Tools for working with the MODIS API and MODIS data.
Apache License 2.0
22 stars 11 forks source link

What products do this tools work with? #18

Closed vrx- closed 2 years ago

vrx- commented 2 years ago

Hi, I was wondering if there are some MODIS products where this implementation doesn't work. Specifically, I was trying to use this to get level 1b Aqua data, but I get an empty collection. I do not know what the version attribute means, so that might be the issue.

username = "*****"  # Update this line
password = "****"  # Update this line
​
session = ModisSession(username=username, password=password)

collection_client = CollectionApi(session=session)
collections = collection_client.query(short_name="MYD021KM")
collections
[]
jamie-sgro commented 2 years ago

Hi @vrx- thanks for bringing this to our attention. Try adding version="006" as a parameter to collection_client.query.

I've just ran the same and it looks like it's a difference between the release version on PyPi and our current main branch. Since the decision to make version an optional parameter was made only just recently. I'll create a new issue to push a new release to PyPi given this.

image