-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
74 lines (57 loc) · 2.86 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
RDA APPS API function list:
Returns a summary of datasets and dataset groups that have subsetting available:
curl -u [RDAusername]:[RDApassword] -X GET https://rda.ucar.edu/apps/summary
Returns a summary of dataset groups that have subsetting available in 'dsnnn.n':
curl -u [RDAusername]:[RDApassword] -X GET https://rda.ucar.edu/apps/summary/<dsnnn.n>
Returns a list of all available parameters found in 'dsnnn.n' for subsetting:
curl -u [RDAusername]:[RDApassword] -X GET https://rda.ucar.edu/apps/metadata/<dsnnn.n>
Returns a list of all available parameters found in 'dsnnn.n' for subsetting in fixed sized columns:
curl -u [RDAusername]:[RDApassword] -X GET https://rda.ucar.edu/apps/metadata/<dsnnn.n>/-f
Returns a generic RDA Data subset request control file template:
This for use with the rdams-client.py tool (see http://rda.ucar.edu/#apps), but can be
easily mapped into a JSON structure.
curl -u [RDAusername]:[RDApassword] -X GET https://rda.ucar.edu/apps/template
Returns a RDA Data subset request control file template for RDA dataset 'dsnnn.n':
This for use with the rdams-client.py tool (see http://rda.ucar.edu/#apps), but can be
easily mapped into a JSON structure.
curl -u [RDAusername]:[RDApassword] -X GET https://rda.ucar.edu/apps/template/<dsnnn.n>
Submit a RDA Data subset request by sending a JSON data structure found in the file named 'dsnnn.n.json' to the RDA data server:
See the example below.
curl -u [RDAusername]:[RDApassword] -X POST -H "Content-Type: application/json" -d @dsnnn.n.json https://rda.ucar.edu/apps/request
Returns a summary and status of all current RDA Data Requests:
curl -u [RDAusername]:[RDApassword] -X GET https://rda.ucar.edu/apps/request
Returns a summary and status of RDA Data Request 'RequestId':
curl -u [RDAusername]:[RDApassword] -X GET https://rda.ucar.edu/apps/request/<RequestId>
Returns only a status of RDA Data Request 'RequestId':
curl -u [RDAusername]:[RDApassword] -X GET https://rda.ucar.edu/apps/request/<RequestId>/-proc_status
Returns a JSON of {"FileDownloadPath":"Filesize (Bytes)"} for RDA Data Request 'RequestId':
curl -u [RDAusername]:[RDApassword] -X GET https://rda.ucar.edu/apps/request/[RequestId]/download
Purge RDA Data Request 'RequestId' from RDA data server:
curl -u [RDAusername]:[RDApassword] -X DELETE https://rda.ucar.edu/apps/request/[RequestId]
Example RDA data subset request control file template for ds131.1:
dataset=ds131.1
date=197506150000/to/197506301200
param=TMP
level=HGTL
levelvalue=2
oformat=netCDF
nlat=60
slat=-25
wlon=-170
elon=-30
groupindex=2
Example JSON subset request structure mapped from the ds131.1 RDA data subset request control file template::
cat ds131.1.json
{
"dataset":"ds131.1",
"date":"197506150000/to/197506301200",
"param":"TMP",
"level":"HGTL",
"levelvalue":"2",
"oformat":"netCDF",
"nlat":"60",
"slat":"-25",
"wlon":"-170",
"elon":"-30",
"groupindex":"2"
}