USF-IMARS / python-tech-workgroup

IMaRS python technical working group
2 stars 0 forks source link

Project idea - access and download VIIRS L2 AERDT using py #25

Open dotis opened 2 years ago

dotis commented 2 years ago

The folks at LAADS DAAC (atmosphere) provide sample py code to access and direct download data, which is used for the PR Air Quality project. I would like to streamline our process for this and use py, similar to the approach for L2 OC data. This will be particularly important if the new AQ project is funded (we should know soon).

Examples here (py example at bottom): https://ladsweb.modaps.eosdis.nasa.gov/tools-and-services/data-download-scripts/#samples

One goal is to find which files we want (box over central Atlantic, Caribbean, and GoM), then grab those with wget or other.

dotis commented 2 years ago

Update: There is an API for this that is new. See below: https://ladsweb.modaps.eosdis.nasa.gov/tools-and-services/api-v2/quick-start/

dotis commented 2 years ago

The links in the "content" section require a change to your browser's request header. ---> set the "X-Requested-With" header to "XMLHttpRequest" in your browser. Example: https://ladsweb.modaps.eosdis.nasa.gov/api/v2/measurements/products

Product info: name: AERDT_L2_VIIRS_SNPP collection: viirs-c1a collection link: /api/v2/measurements/collections/viirs-c1a