-
Notifications
You must be signed in to change notification settings - Fork 0
DCSCHUS/python-subsetting-client
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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" }
About
Example python subset submission client for NCAR RDA
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published