Skip to content

Commit

Permalink
updates on datasources
Browse files Browse the repository at this point in the history
  • Loading branch information
erazocar committed Oct 4, 2024
1 parent 4379756 commit 2c07360
Show file tree
Hide file tree
Showing 2 changed files with 103 additions and 0 deletions.
12 changes: 12 additions & 0 deletions hydrolang/modules/data/datasources/cuahsi.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,18 @@ const waterOneFlow = {
//http://hiscentral.cuahsi.org/pub_network.aspx?n=3534
val = "GlobalRiversObservatory";
break;

case "NLDAS Hourly Forcings":
//Additional info:
//http://hiscentral.cuahsi.org/pub_network.aspx?n=267
val = "NLDAS_FORA";
break;

case "NLDAS Hourly NOAH Data":
//Additional info:
//http://hiscentral.cuahsi.org/pub_network.aspx?n=274
val = "NLDAS_NOAH";
break;

default:
//Default value left to the most accessible Google Search for
Expand Down
91 changes: 91 additions & 0 deletions hydrolang/modules/data/datasources/drought.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
/**
* https://waterservices.usgs.gov/rest/IV-Service.html
* This API returns stream stages for US
* @type {Object}
* @name USGS
* @memberof datasources
*/

export default {
"instant-values": {
endpoint: "http://waterservices.usgs.gov/nwis/iv/",
params: {
// These are only written to aid users to know
// what parameters are available
format: null,
site: null,
stateCd: null,
huc: null,
countyCd: null,
startDT: null,
endDT: null,
// and more...
},
"data-fields": {
// "output-data-field-1": null,
// enter data field here
},
methods:{
type: "json",
method: "GET"
}
},

"daily-values": {
endpoint: "http://waterservices.usgs.gov/nwis/dv/",
params: {
// These are only written to aid users to know
// what parameters are available
format: null,
site: null,
stateCd: null,
huc: null,
countyCd: null,
startDT: null,
endDT: null,
// and more...
},
"data-fields": {
// "output-data-field-1": null,
// enter data field here
},
methods:{
type: "json",
method: "GET"
}
},

"groundwater": {
endpoint: "http://waterservices.usgs.gov/nwis/gwlevels/",
params: {
// These are only written to aid users to know
// what parameters are available
format: null,
site: null,
stateCd: null,
huc: null,
countyCd: null,
startDT: null,
endDT: null,
// and more...
},
"data-fields": {
// "output-data-field-1": null,
// enter data field here
},
methods:{
type: "json",
method: "GET"
}
},

requirements: {
needProxy: true,
requireskey: false,
},

/* DATA SOURCE 2 */

/* DATA SOURCE ... */
};

0 comments on commit 2c07360

Please sign in to comment.