AppEEARS API

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
mchl.mccrthy
Posts: 7
Joined: Thu Oct 28, 2021 4:33 am America/New_York
Answers: 0

AppEEARS API

by mchl.mccrthy » Thu Dec 09, 2021 9:42 am America/New_York

Hi all,

I'm using Python to download some MODIS data through the AppEEARS API. In my task request, I submit a tupled list of the layer and product I want to download, in this case: NDSI_Snow_Cover, MOD10A1.006. Everything works fine, except that as well as the NDSI_Snow_Cover layer, I also get the NDSI_Snow_Cover_Algorithm_Flags_QA and NDSI_Snow_Cover_Basic_QA layers. I'm guessing this happens because these layer names also contain 'NDSI_Snow_Cover', because I don't get e.g. the orbit_pnt or Snow_Albedo_Daily_Tile layers that are also associated with MOD10A1.006. I don't need the QA layers, and they take a long time to process and download, so I'd rather not get them if possible.

Any ideas as to how to solve this issue?

Thanks a lot!

Tags:

LP DAAC - jwilson
User Services
User Services
Posts: 267
Joined: Mon Sep 30, 2019 12:39 pm America/New_York
Answers: 1
Has thanked: 9 times

Re: AppEEARS API

by LP DAAC - jwilson » Thu Jan 20, 2022 12:19 pm America/New_York

We apologize for the delayed response. We have sent this to our Subject Matter Expert for further guidance.

LP DAAC - afriesz
Subject Matter Expert
Subject Matter Expert
Posts: 59
Joined: Tue Nov 12, 2019 4:02 pm America/New_York
Answers: 2
Been thanked: 2 times

Re: AppEEARS API

by LP DAAC - afriesz » Thu Jan 20, 2022 3:16 pm America/New_York

@mchl.mccrthy ,

We strongly encourage anyone working with data from any NASA DAAC to consult the associated quality data layers or metadata. The automatic return of associated quality data is a foundational component of the AppEEARS system and is something we cannot turn off. However, data files produced by AppEEARS can be downloaded individually from either the web application or from the AppEEARS API. If you’re using the tutorial Getting Started with the AρρEEARS API: Submitting and Downloading an Area Request, you can filter the files bundle to only download the file you want. To exclude any QA files from your download, you could try the following on the ‘files’ object in section 4b cell 34 of the tutorial:

Code: Select all

files_noQC = {f:files[f] for f in files.keys() if 'QC' not in files[f]}
There are probably better ways to do this, but the line of code will return all files except files with ‘QC’ in their name. You could also add a bit more to only include only ‘.tif’ files without ‘QC’ in their name:

Code: Select all

files_noQC_tif = {f:files[f] for f in files.keys() if 'QC' not in files[f] and '.tif' in files[f]}
I hope this helps.

mchl.mccrthy
Posts: 7
Joined: Thu Oct 28, 2021 4:33 am America/New_York
Answers: 0

Re: AppEEARS API

by mchl.mccrthy » Mon May 09, 2022 11:00 am America/New_York

Thanks very much @afriesz, this is helpful and I completely agree the QC is important. Here I wanted a rough estimate relatively quickly, and I suppose I was surprised I couldn't choose. I agree though, this functionality makes sense. All the best

Post Reply