Download only quicklook from ASF

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
jtravert
Posts: 1
Joined: Mon Oct 03, 2022 9:09 am America/New_York
Answers: 0

Download only quicklook from ASF

by jtravert » Mon Oct 03, 2022 9:13 am America/New_York

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

Tags:

kimfairbanks
Posts: 1
Joined: Thu Oct 06, 2022 8:29 pm America/New_York
Answers: 1

Re: Download only quicklook from ASF

by kimfairbanks » Fri Oct 07, 2022 1:00 pm America/New_York

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
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 17 times

Post Reply