Recipe: Retrieve (global) data from HTTPS server: Difference between revisions
Move from http to https |
|||
Line 3: | Line 3: | ||
== Problem == | == Problem == | ||
We want to access G5NR data by downloading files from the <code> | We want to access G5NR data by downloading files from the <code>https</code> server using either a web browser or the command line tool <code>wget</code>. | ||
== Solution == | == Solution == | ||
The base url for G5NR data is | The base url for G5NR data is | ||
https://g5nr.nccs.nasa.gov/data/ | |||
At this location, the data is organized by resolution (0.5000_deg/0.0625_deg), type (const/inst/tavg/tdav), collection name, year, month and day as follows: | At this location, the data is organized by resolution (0.5000_deg/0.0625_deg), type (const/inst/tavg/tdav), collection name, year, month and day as follows: | ||
Line 25: | Line 25: | ||
A web browser can be used to browse directories, read and retrieve files. To retrieve the collection <code>inst01hr_3d_T_Cv</code> for the day 2006-09-18, one needs to point to | A web browser can be used to browse directories, read and retrieve files. To retrieve the collection <code>inst01hr_3d_T_Cv</code> for the day 2006-09-18, one needs to point to | ||
https://g5nr.nccs.nasa.gov/data/DATA/0.5000_deg/inst/inst01hr_3d_T_Cv/Y2006/M09/D18. | |||
At this location, a file may be downloaded by simply clicking on the file name. | At this location, a file may be downloaded by simply clicking on the file name. | ||
Line 32: | Line 32: | ||
The command line tool <code>wget</code> can be used to retrieve the same files. To download a file for a specific time, say 0900z, we can use | The command line tool <code>wget</code> can be used to retrieve the same files. To download a file for a specific time, say 0900z, we can use | ||
wget | wget https://g5nr.nccs.nasa.gov/data/DATA/0.5000_deg/inst/inst01hr_3d_T_Cv/Y2006/M09/D18/c1440_NR.inst01hr_3d_T_Cv.20060918_0900z.nc4 | ||
== Discussion == | == Discussion == |