Recipe: Retrieve data subsets using download tool: Difference between revisions
No edit summary |
|||
Line 12: | Line 12: | ||
http://portal.nccs.nasa.gov/cgi-lats4d/opendap.cgi?&path=/OSSE/GEOS-5.12. | http://portal.nccs.nasa.gov/cgi-lats4d/opendap.cgi?&path=/OSSE/GEOS-5.12. | ||
To download a subset of the collection inst01hr_3d_T_Cv, from the above url, one can follow links [0.5000_deg → inst → Download (for the appropriate collection)] to the collection's download page at http://portal.nccs.nasa.gov/cgi-lats4d/webform.cgi?&i=OSSE/GEOS-5.12/0.5000_deg/inst01hr_3d_T_Cv. Here one can select variables, the begin and end times, vertical levels (for 3D data), spatial subset (by drawing a box or specifying the lats/lons) and download the resulting data in a format of choice (compressed NetCDF-4, little endian binary etc.). | To download a subset of the collection inst01hr_3d_T_Cv, from the above url, one can follow links [0.5000_deg → inst → Download (for the appropriate collection)] to the collection's download page at http://portal.nccs.nasa.gov/cgi-lats4d/webform.cgi?&i=OSSE/GEOS-5.12/0.5000_deg/inst01hr_3d_T_Cv. Here one can select variables, the begin and end times, vertical levels (for 3D data), spatial subset (by drawing a box or specifying the lats/lons) and download the resulting data in a format of choice (compressed NetCDF-4, little endian binary etc.). | ||
<!-- | <!-- | ||
==== Command line interface ==== | ==== Command line interface ==== | ||
* Command line/Python script - There has to be a way to construct the POST request and then potentially use the Python requests module??? | * Command line/Python script - There has to be a way to construct the POST request and then potentially use the Python requests module??? | ||
--> | --> | ||
Revision as of 08:07, 29 October 2014
Problem
We want to download data (global or subsetted) using the download tool.
Solution
The download tool can be used for server-side subsetting of collections. This can be done either via the tool's web interface or the command line.
Web interface
The base url for the download tool for G5NR data is http://portal.nccs.nasa.gov/cgi-lats4d/opendap.cgi?&path=/OSSE/GEOS-5.12. To download a subset of the collection inst01hr_3d_T_Cv, from the above url, one can follow links [0.5000_deg → inst → Download (for the appropriate collection)] to the collection's download page at http://portal.nccs.nasa.gov/cgi-lats4d/webform.cgi?&i=OSSE/GEOS-5.12/0.5000_deg/inst01hr_3d_T_Cv. Here one can select variables, the begin and end times, vertical levels (for 3D data), spatial subset (by drawing a box or specifying the lats/lons) and download the resulting data in a format of choice (compressed NetCDF-4, little endian binary etc.).