水文demo示例
一、对接密钥
apiKey:57d4b114959f473da7ceb26800d2e7c3
secretKey:3MvVFz9AmZ8FsNyrbLV4CNNLtl2b5HGen32vpSICrBPi0MXV1Gm89N13xiFWXGVU
填入位置请参照对接demo示例
二、提交计算
获取雨量站ID
GET http://cloud.keepsoft.net:30100/api/mcc/v1/app/obj/type?objectType=107
返回结果
{
"data": [
{
"name": "施家桥",
"id": 349
}
]
}
提交雨量数据计算
POST http://cloud.keepsoft.net:30100/api/mcc/v1/app/sim
查看参数
{
"simulationConfig": {
"startTime": "2019-08-09 12:00:00",
"endTime": "2019-08-10 22:00:00",
"outputStep": "00:10:00"
},
"raingageStationParams": {
"params": [
{
"objectId": 349,
"timeseriesData": [
{
"date": "2019-08-09 12:00:00",
"value": 7.8
},
{
"date": "2019-08-09 13:00:00",
"value": 1.2
},
{
"date": "2019-08-09 14:00:00",
"value": 6.4
},
{
"date": "2019-08-09 15:00:00",
"value": 13.5
},
{
"date": "2019-08-09 16:00:00",
"value": 7.7
},
{
"date": "2019-08-09 17:00:00",
"value": 4.4
},
{
"date": "2019-08-09 18:00:00",
"value": 8.5
},
{
"date": "2019-08-09 19:00:00",
"value": 12.9
},
{
"date": "2019-08-09 20:00:00",
"value": 12.7
},
{
"date": "2019-08-09 21:00:00",
"value": 16.5
},
{
"date": "2019-08-09 22:00:00",
"value": 28
},
{
"date": "2019-08-09 23:00:00",
"value": 7.7
},
{
"date": "2019-08-10 00:00:00",
"value": 3.1
},
{
"date": "2019-08-10 01:00:00",
"value": 9.5
},
{
"date": "2019-08-10 02:00:00",
"value": 21.3
},
{
"date": "2019-08-10 03:00:00",
"value": 15.9
},
{
"date": "2019-08-10 04:00:00",
"value": 18.2
},
{
"date": "2019-08-10 05:00:00",
"value": 18.1
},
{
"date": "2019-08-10 06:00:00",
"value": 9
},
{
"date": "2019-08-10 07:00:00",
"value": 13.9
},
{
"date": "2019-08-10 08:00:00",
"value": 3
},
{
"date": "2019-08-10 09:00:00",
"value": 3
},
{
"date": "2019-08-10 10:00:00",
"value": 4.3
},
{
"date": "2019-08-10 11:00:00",
"value": 5.3
},
{
"date": "2019-08-10 12:00:00",
"value": 1.6
},
{
"date": "2019-08-10 13:00:00",
"value": 0.8
},
{
"date": "2019-08-10 14:00:00",
"value": 2.5
},
{
"date": "2019-08-10 15:00:00",
"value": 5.2
},
{
"date": "2019-08-10 16:00:00",
"value": 7
},
{
"date": "2019-08-10 17:00:00",
"value": 3.2
},
{
"date": "2019-08-10 18:00:00",
"value": 0.6
},
{
"date": "2019-08-10 19:00:00",
"value": 1.4
},
{
"date": "2019-08-10 20:00:00",
"value": 0.7
},
{
"date": "2019-08-10 21:00:00",
"value": 2.7
},
{
"date": "2019-08-10 22:00:00",
"value": 3.6
}
]
}
]
}
}
三、获取结果
1.获取水文模拟结果
精简格式
GET
http://cloud.keepsoft.net:30100/api/results/v1/hydrology/result?taskId=55467&properties=z&properties=qo&simpleFormat=true
返回结果
{
"datetimes": [
"2019-08-10 03:00:00",
"2019-08-10 04:00:00",
"2019-08-10 05:00:00",
"2019-08-10 06:00:00",
"2019-08-10 07:00:00",
"2019-08-10 08:00:00",
"2019-08-10 09:00:00",
"2019-08-10 10:00:00",
"2019-08-10 11:00:00",
"2019-08-10 12:00:00",
"2019-08-10 13:00:00",
"2019-08-10 14:00:00",
"2019-08-10 15:00:00",
"2019-08-10 16:00:00",
"2019-08-10 17:00:00",
"2019-08-10 18:00:00",
"2019-08-10 19:00:00",
"2019-08-10 20:00:00",
"2019-08-10 21:00:00",
"2019-08-10 22:00:00"
],
"ids": [
"BSN2",
"BSN3",
"BSN1",
"水库",
"水文站"
],
"propertyMap": {
"z": [
[
-9999.0,
-9999.0,
-9999.0,
23.649803,
-9999.0
],
[
-9999.0,
-9999.0,
-9999.0,
24.62369,
-9999.0
],
[
-9999.0,
-9999.0,
-9999.0,
25.738825,
-9999.0
],
[
-9999.0,
-9999.0,
-9999.0,
26.928806,
-9999.0
],
[
-9999.0,
-9999.0,
-9999.0,
27.831516,
-9999.0
],
[
-9999.0,
-9999.0,
-9999.0,
28.736837,
-9999.0
],
[
-9999.0,
-9999.0,
-9999.0,
29.273993,
-9999.0
],
[
-9999.0,
-9999.0,
-9999.0,
29.561766,
-9999.0
],
[
-9999.0,
-9999.0,
-9999.0,
29.757582,
-9999.0
],
[
-9999.0,
-9999.0,
-9999.0,
29.925558,
-9999.0
],
[
-9999.0,
-9999.0,
-9999.0,
29.987175,
-9999.0
],
[
-9999.0,
-9999.0,
-9999.0,
29.96653,
-9999.0
],
[
-9999.0,
-9999.0,
-9999.0,
29.934639,
-9999.0
],
[
-9999.0,
-9999.0,
-9999.0,
29.957693,
-9999.0
],
[
-9999.0,
-9999.0,
-9999.0,
30.160473,
-9999.0
],
[
-9999.0,
-9999.0,
-9999.0,
30.332354,
-9999.0
],
[
-9999.0,
-9999.0,
-9999.0,
30.407637,
-9999.0
],
[
-9999.0,
-9999.0,
-9999.0,
30.44386,
-9999.0
],
[
-9999.0,
-9999.0,
-9999.0,
30.443275,
-9999.0
],
[
-9999.0,
-9999.0,
-9999.0,
30.458687,
-9999.0
]
],
"qo": [
[
31.139803,
39.394547,
184.4076,
31.0,
70.39455
],
[
47.455513,
56.995464,
206.71764,
31.0,
87.99547
],
[
53.326546,
63.842064,
218.81598,
31.0,
94.842064
],
[
57.08346,
66.21186,
173.28952,
31.0,
97.21186
],
[
59.768787,
68.327896,
174.04411,
31.0,
99.327896
],
[
49.104046,
54.98547,
115.91252,
31.0,
85.985466
],
[
46.50256,
49.919514,
80.25427,
34.8,
84.71951
],
[
32.86732,
34.95179,
65.695145,
34.8,
69.75179
],
[
21.602654,
23.03037,
61.39451,
34.8,
57.83037
],
[
17.679834,
18.613815,
44.606945,
34.8,
53.413815
],
[
17.563818,
18.197878,
31.55973,
34.8,
52.99788
],
[
13.048255,
13.591172,
29.706758,
34.8,
48.39117
],
[
8.228914,
8.842923,
38.203796,
34.8,
43.64292
],
[
7.728375,
8.656031,
54.503593,
22.5,
31.15603
],
[
11.722213,
12.49858,
49.725437,
22.5,
34.99858
],
[
17.187716,
17.739222,
34.421566,
22.5,
40.239223
],
[
15.657798,
16.122063,
28.263609,
22.5,
38.622063
],
[
9.923462,
10.302908,
22.38465,
22.5,
32.80291
],
[
7.0475388,
7.474016,
24.854166,
22.5,
29.974016
],
[
5.0322676,
5.530135,
29.560776,
19.5,
25.030134
]
]
},
"types": [
"BASIN",
"BASIN",
"BASIN",
"RESERVOIR",
"STATION"
]
}
非精简格式
GET
http://cloud.keepsoft.net:30100/api/results/v1/hydrology/result?taskId=55467&type=BASIN&beginTime=2019-08-09 12:00:00&endTime=2019-08-10 22:00:00&properties=qi&properties=qo&simpleFormat=false
返回结果
[
{
"dateTime": "2019-08-10 03:00:00",
"id": "BSN2",
"qi": 0.0000,
"qo": 31.1398,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 03:00:00",
"id": "BSN3",
"qi": 31.1398,
"qo": 39.3945,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 03:00:00",
"id": "BSN1",
"qi": 0.0000,
"qo": 184.4076,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 04:00:00",
"id": "BSN2",
"qi": 0.0000,
"qo": 47.4555,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 04:00:00",
"id": "BSN3",
"qi": 47.4555,
"qo": 56.9955,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 04:00:00",
"id": "BSN1",
"qi": 0.0000,
"qo": 206.7176,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 05:00:00",
"id": "BSN2",
"qi": 0.0000,
"qo": 53.3265,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 05:00:00",
"id": "BSN3",
"qi": 53.3265,
"qo": 63.8421,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 05:00:00",
"id": "BSN1",
"qi": 0.0000,
"qo": 218.8160,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 06:00:00",
"id": "BSN2",
"qi": 0.0000,
"qo": 57.0835,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 06:00:00",
"id": "BSN3",
"qi": 57.0835,
"qo": 66.2119,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 06:00:00",
"id": "BSN1",
"qi": 0.0000,
"qo": 173.2895,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 07:00:00",
"id": "BSN2",
"qi": 0.0000,
"qo": 59.7688,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 07:00:00",
"id": "BSN3",
"qi": 59.7688,
"qo": 68.3279,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 07:00:00",
"id": "BSN1",
"qi": 0.0000,
"qo": 174.0441,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 08:00:00",
"id": "BSN2",
"qi": 0.0000,
"qo": 49.1040,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 08:00:00",
"id": "BSN3",
"qi": 49.1040,
"qo": 54.9855,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 08:00:00",
"id": "BSN1",
"qi": 0.0000,
"qo": 115.9125,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 09:00:00",
"id": "BSN2",
"qi": 0.0000,
"qo": 46.5026,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 09:00:00",
"id": "BSN3",
"qi": 46.5026,
"qo": 49.9195,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 09:00:00",
"id": "BSN1",
"qi": 0.0000,
"qo": 80.2543,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 10:00:00",
"id": "BSN2",
"qi": 0.0000,
"qo": 32.8673,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 10:00:00",
"id": "BSN3",
"qi": 32.8673,
"qo": 34.9518,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 10:00:00",
"id": "BSN1",
"qi": 0.0000,
"qo": 65.6951,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 11:00:00",
"id": "BSN2",
"qi": 0.0000,
"qo": 21.6027,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 11:00:00",
"id": "BSN3",
"qi": 21.6027,
"qo": 23.0304,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 11:00:00",
"id": "BSN1",
"qi": 0.0000,
"qo": 61.3945,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 12:00:00",
"id": "BSN2",
"qi": 0.0000,
"qo": 17.6798,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 12:00:00",
"id": "BSN3",
"qi": 17.6798,
"qo": 18.6138,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 12:00:00",
"id": "BSN1",
"qi": 0.0000,
"qo": 44.6069,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 13:00:00",
"id": "BSN2",
"qi": 0.0000,
"qo": 17.5638,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 13:00:00",
"id": "BSN3",
"qi": 17.5638,
"qo": 18.1979,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 13:00:00",
"id": "BSN1",
"qi": 0.0000,
"qo": 31.5597,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 14:00:00",
"id": "BSN2",
"qi": 0.0000,
"qo": 13.0483,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 14:00:00",
"id": "BSN3",
"qi": 13.0483,
"qo": 13.5912,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 14:00:00",
"id": "BSN1",
"qi": 0.0000,
"qo": 29.7068,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 15:00:00",
"id": "BSN2",
"qi": 0.0000,
"qo": 8.2289,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 15:00:00",
"id": "BSN3",
"qi": 8.2289,
"qo": 8.8429,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 15:00:00",
"id": "BSN1",
"qi": 0.0000,
"qo": 38.2038,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 16:00:00",
"id": "BSN2",
"qi": 0.0000,
"qo": 7.7284,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 16:00:00",
"id": "BSN3",
"qi": 7.7284,
"qo": 8.6560,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 16:00:00",
"id": "BSN1",
"qi": 0.0000,
"qo": 54.5036,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 17:00:00",
"id": "BSN2",
"qi": 0.0000,
"qo": 11.7222,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 17:00:00",
"id": "BSN3",
"qi": 11.7222,
"qo": 12.4986,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 17:00:00",
"id": "BSN1",
"qi": 0.0000,
"qo": 49.7254,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 18:00:00",
"id": "BSN2",
"qi": 0.0000,
"qo": 17.1877,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 18:00:00",
"id": "BSN3",
"qi": 17.1877,
"qo": 17.7392,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 18:00:00",
"id": "BSN1",
"qi": 0.0000,
"qo": 34.4216,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 19:00:00",
"id": "BSN2",
"qi": 0.0000,
"qo": 15.6578,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 19:00:00",
"id": "BSN3",
"qi": 15.6578,
"qo": 16.1221,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 19:00:00",
"id": "BSN1",
"qi": 0.0000,
"qo": 28.2636,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 20:00:00",
"id": "BSN2",
"qi": 0.0000,
"qo": 9.9235,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 20:00:00",
"id": "BSN3",
"qi": 9.9235,
"qo": 10.3029,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 20:00:00",
"id": "BSN1",
"qi": 0.0000,
"qo": 22.3847,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 21:00:00",
"id": "BSN2",
"qi": 0.0000,
"qo": 7.0475,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 21:00:00",
"id": "BSN3",
"qi": 7.0475,
"qo": 7.4740,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 21:00:00",
"id": "BSN1",
"qi": 0.0000,
"qo": 24.8542,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 22:00:00",
"id": "BSN2",
"qi": 0.0000,
"qo": 5.0323,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 22:00:00",
"id": "BSN3",
"qi": 5.0323,
"qo": 5.5301,
"type": "BASIN"
},
{
"dateTime": "2019-08-10 22:00:00",
"id": "BSN1",
"qi": 0.0000,
"qo": 29.5608,
"type": "BASIN"
}
]
最后修改时间: 5 个月前