Hey everyone,
I have been trying to download data from the asf data search engine. I'm trying to do some processing with python and I would like to download only the quicklook of a product.
Is there any way to download only the quicklook ?
With https://docs.asf.alaska.edu/asf_search/basics/ the procedure describes how to download the complete product, but for my use I only need the quick look which takes less storage.
Download only quicklook from ASF
Download only quicklook from ASF
Howdy!
While there's no built in way to do this yet, there is a way to download part of a product while using asf-search using the remotezip python package. (I've attached a pdf containing a working example with a Jupyter Notebook Python snippet)
Right now this method only works by passing the cookies and headers of ASFSessions authenticated with "auth_with_creds()" and "auth_with_cookiejar()" to a remotezip object, but we just added a pull request to the remotezip package repo that would allow remotezip to support an ASFSession object directly, (including ones authorized with "auth_with_token()" as well).
We're also adding more to asf-search's backlog for better built-in support!
For more info on remotezip, I'd recommend checking out the project's README at https://github.com/gtsystem/python-remotezip
Go to full postWhile there's no built in way to do this yet, there is a way to download part of a product while using asf-search using the remotezip python package. (I've attached a pdf containing a working example with a Jupyter Notebook Python snippet)
Right now this method only works by passing the cookies and headers of ASFSessions authenticated with "auth_with_creds()" and "auth_with_cookiejar()" to a remotezip object, but we just added a pull request to the remotezip package repo that would allow remotezip to support an ASFSession object directly, (including ones authorized with "auth_with_token()" as well).
We're also adding more to asf-search's backlog for better built-in support!
For more info on remotezip, I'd recommend checking out the project's README at https://github.com/gtsystem/python-remotezip
Filters:
-
- Posts: 5
- Joined: Thu Oct 06, 2022 8:29 pm America/New_York
Re: Download only quicklook from ASF
Howdy!
While there's no built in way to do this yet, there is a way to download part of a product while using asf-search using the remotezip python package. (I've attached a pdf containing a working example with a Jupyter Notebook Python snippet)
Right now this method only works by passing the cookies and headers of ASFSessions authenticated with "auth_with_creds()" and "auth_with_cookiejar()" to a remotezip object, but we just added a pull request to the remotezip package repo that would allow remotezip to support an ASFSession object directly, (including ones authorized with "auth_with_token()" as well).
We're also adding more to asf-search's backlog for better built-in support!
For more info on remotezip, I'd recommend checking out the project's README at https://github.com/gtsystem/python-remotezip
While there's no built in way to do this yet, there is a way to download part of a product while using asf-search using the remotezip python package. (I've attached a pdf containing a working example with a Jupyter Notebook Python snippet)
Right now this method only works by passing the cookies and headers of ASFSessions authenticated with "auth_with_creds()" and "auth_with_cookiejar()" to a remotezip object, but we just added a pull request to the remotezip package repo that would allow remotezip to support an ASFSession object directly, (including ones authorized with "auth_with_token()" as well).
We're also adding more to asf-search's backlog for better built-in support!
For more info on remotezip, I'd recommend checking out the project's README at https://github.com/gtsystem/python-remotezip
- Attachments
-
- asf_search_remotezip_example.pdf
- PDF containing example snippet of using asf-search with remotezip to download quick-look.png from a product
- (23.6 KiB) Downloaded 1616 times