Closed p-a-s-c-a-l closed 4 years ago
Example REST API URL
https://service.emikat.at/EmiKatTst/api/scenarios/2846/feature/view.2812/table/data
Questions:
2846
to be replaced with $emikat_id
, but what about view.2812? Is it always the same view id?Example WMS API URL
Questions:
$emikat_id
in WMS url?You need only replace the $emikat_id (for our example 2846). The term "view.2813" or "clarity:view.2813" is an anonomized notation of a specific report. (report_Id). This report_id does not change, if you change the study (or EmiKat-Scenario).
You need only replace the $emikat_id (for our example 2846).
Yes, but there's no $emikat_id
in the WMS url.
There willl be the need to include also the $emikat_id in the WMS url.
We will update the definition of WMS-Call for Impact Layers also as a consequence of the big changes in model calculation. Then I will provide a new link.
The new Impact model is now implemented:
As WMS-Layers:
In this link you can adapt the follwing parameters:
PROJECT_REF=1 ... (for future selection of an alternate ADAPTATION variants) PERIOD='Baseline' ... (Alternatives are: '20110101-20401231', '20410101-20701231' and '20710101-21001231') RCP='Baseline' ... (Alternatives are: 'rcp26', 'rcp45' and 'rcp85') FREQUENCE='Rare' ... (Alternatives are: 'Occassional' or 'Frequent')
SZ_ID=2846 has to be set to the current $emikatID
The color schemas (STYLE colors) are currently fixed but not optimized !!!!
@humerh Can you please check what's wrong with this request?
Either the server is extremely slow or there is another problem, e.g. with from query parameters.
In order to re-enable the Scenario Analysis Application, we need a new view with the sums for the whole study area. We need furtherore the possibility to omit some or all filters to be able to compare across events, scenarios and / or time periods.
To get the total number of affected people:
https://service.emikat.at/EmiKatTst/api/scenarios/2846/feature/view.2994/table/data
You can filter this query also by the usual filter flags:
Thanks! Could you also include the original damage probability? I know this can be calculated on client side, but I prefer to work with the original values calculated by the model.
How should I do this? I cannot sum up the propabilities, and they are different for each cell. You can only do it again after building the sum:
Propability_StudyArea = EXPOSEDQUANTITY_StudyArea / DAMAGEQUANTITY_StudyArea.
As discussed earlier today: is the per GRID_ID value of any use for the csis users?
In my opinion, the table view should sum over all grid cells and then show min/max/mean or mean/deviation values - for the whole project area.
Per grid data is only useful in combination with a map.
We had this already working.
Once the results have been validated and the data model has stabilised, we can update the table component. I propose to wait for the specification of the flood impact result, so we don't have to redo this again for floods.
RA/IA API available and working.
This is related to the implementation of Impact/Risk assessment model with EMIKAT. We need an API for triggering the calculation of a new impact scenario and for accessing the results. Adaptation Scenarios are addressed later!
Triggering can be done by the Scenario Selection UI as discussed here.
$scenarioId
CSIS will sent the internal EMIKAT id (not the Drupal UUID of the study).$studyArea
this is probably not needed if the study has already been made know to EMIKAT via the [https://github.com/clarity-h2020/emikat/issues/6](initial study trigger)$eventid[]
here CSIS probably just needs to send the ids of two events (baseline + future) selected by the user.Accessing the results is already possible as described in this issue. We currently use them in the Table Component, the Map Component and the MCDA Tool.
The respective RA/IA Data Package Resource has to be updated accordingly and example request / response URLs (including WMS URLs for RA/IA maps) have to be added to the Wiki.