Skip to content

Instantly share code, notes, and snippets.

@dobrych
Created March 16, 2018 22:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dobrych/2cf416d05608c30851f9f7d325d3de19 to your computer and use it in GitHub Desktop.
Save dobrych/2cf416d05608c30851f9f7d325d3de19 to your computer and use it in GitHub Desktop.
The available endpoint is:
http://localhost:7645/data.csv
Dataset: NEX-GDDP
Models: CNRM-CM5, CCSM4, MPI-ESM-LR, MRI-CGCM3, MPI-ESM-MR, CESM1-BGC, MIROC5
Scenarios: rcp45, rcp85, historical
Variables: pr, tasmax, tasmin
Dates: 1950-01-01 to 2100-12-31
Region 1: (-87.2314, 18.6957), (-87.7588, 17.7356), (-88.1543, 16.2226),
(-86.9238, 16.3491), (-84.3311, 16.3913), (-82.7930, 14.9103),
(-83.1006, 13.1196), (-83.1885, 10.7551), (-81.3428, 9.2838),
(-79.8486, 10.2798), (-77.7832, 9.6305), (-76.6406, 8.1544),
(-78.0029, 6.5855), (-79.5410, 8.1544), (-80.2441, 6.9782),
(-81.6064, 7.3271), (-83.4521, 8.0239), (-86.1328, 9.6305),
(-86.3525, 10.9709), (-88.2422, 12.6055), (-91.4941, 13.5045),
(-92.9883, 14.6128), (-91.0547, 18.2789), (-87.2314, 18.6957)
CSV columns and values:
1 - Date
2 - Longitude
3 - Latitude
4 - Model
5 - Scenario
6 - Variable
7 - Value
@dobrych
Copy link
Author

dobrych commented Mar 16, 2018

Now it's possible to use curl http://localhost:7645/data.csv which outputs CSV as a stream while fetching chunks from S3.
Or curl http://localhost:7645/data.nc which fetches all the chunks first and unlike CSV output requires all chunks to get fetched before NetCDF could be created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment