Page 1 of 1

Download only quicklook from ASF

Posted: Mon Oct 03, 2022 9:13 am America/New_York
by jtravert
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.

Re: Download only quicklook from ASF

Posted: Fri Oct 07, 2022 1:00 pm America/New_York
by kimfairbanks
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