Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Hazard Events [HC API] #11

Closed
p-a-s-c-a-l opened this issue Jul 1, 2019 · 15 comments
Closed

Support for Hazard Events [HC API] #11

p-a-s-c-a-l opened this issue Jul 1, 2019 · 15 comments
Assignees
Labels
BB: Catalogue of ER & AO Catalogue of Elements at Risk and Adaptation Options Building Block enhancement New feature or request SHOWSTOPPER Feature or bug, that, if not addressed, renders the CSIS essentially useless
Milestone

Comments

@p-a-s-c-a-l
Copy link
Member

p-a-s-c-a-l commented Jul 1, 2019

This is related to the production of Heat Wave Hazard Events for Europe.

While hazard indexes are currently stored on METEOROID Geoserver and accessed by the Map Component for informative purposes, we need another API that is accessed by the HC Events Table and the Scenario Selection UI.

The API would expect a parameter '$studyArea' or, if the study is already initialised, the '$studyId' (EMIKAT internal id) and additional a parameter $hazardEventType (name/id from the CSIS Hazards Taxonomy).

It's currently unclear, if it would make sense to show HC Events Layers in the HC Map. Therefore there is currently no need for an additional WMS Endpoint.

The respective HC Data Package Resource has to be updated accordingly and example request / response URLs have to be added to the Wiki.

@p-a-s-c-a-l p-a-s-c-a-l added enhancement New feature or request SHOWSTOPPER Feature or bug, that, if not addressed, renders the CSIS essentially useless labels Jul 1, 2019
@p-a-s-c-a-l p-a-s-c-a-l added this to the D1.4 CLARITY CSIS v2 milestone Jul 1, 2019
@p-a-s-c-a-l
Copy link
Member Author

@bernhardsk
Copy link
Collaborator

The available requests are documented via Swagger:
https://service.emikat.at/EmiKatTst/swagger/index.html

Some of the relevant functionalities:
grafik

1) For Europe wide Hazard Layers (currently: heat wave only):
Table in AIT EMIKAT:
grafik

Requests:
grafik

JSON:
https://service.emikat.at/EmiKatTst/api/scenarios/2846/feature/tab.CLY_HAZARD_EVENTS_EUROPE.2036/table/data?rownum=1000

2846 = internal studyID (in emikat: scenarioID).
"tab.CLY_HAZARD_EVENTS_EUROPE.2036" = emikat featureName
For the first 1000 datasets. Total number of datasets in this table: 1210950

CSV:
https://service.emikat.at/EmiKatTst/api/scenarios/2846/feature/tab.CLY_HAZARD_EVENTS_EUROPE.2036/table/csv?rownum=1000

2) For regional Hazard Event datasets:
Table in AIT EMIKAT:
grafik

JSON:
https://service.emikat.at/EmiKatTst/api/scenarios/2846/feature/tab.CLY_HAZARD_EVENTS_STUDY.2036/table/data?rownum=1000

CSV:
https://service.emikat.at/EmiKatTst/api/scenarios/2846/feature/tab.CLY_HAZARD_EVENTS_STUDY.2036/table/csv?rownum=1000

Also available (in general): GEOJSON and GEOTIFF. ...."/table/geojson?rownum=1000" or: ....."/table/geotiff"

Please let me know, if additional info is required.

@p-a-s-c-a-l
Copy link
Member Author

p-a-s-c-a-l commented Jul 16, 2019

Thanks @bernhardsk

Two more questions:

  1. "The API would expect a parameter $studyArea or $studyId"
    This is currently not supported? We need the events relevant for the selected study area (bounding box). This bounding box is IMHO stored in EMIKAT when EMIKAT is notified about a new study. So an additional parameter $studyId (the EMIKAT internal id of the study) should be sufficient. However, the scenario id is already part of the URI (.../scenarios/2846/...), right? So the filtering by study area is not yet implemented?
  2. The table layout will change when the new Hazard Events are available. So the new table structure would look like this, right?:
latitude longitude urban area country RCP Period Tx95p Frequent(1.0) Occasional(0.2) Rare(0.05)
30.055091 -8.120772 baseline 19710101-20001231 39C 36C 38C 40C

@p-a-s-c-a-l
Copy link
Member Author

FYI: Here are the heat wave events for the baseline climate for all of Europe.

@humerh
Copy link

humerh commented Aug 4, 2019

The call

https://service.emikat.at/EmiKatTst/api/scenarios/2846/feature/tab.CLY_HAZARD_EVENTS_STUDY.2036/table/data?rownum=1000

returns now all "relevant" events inside of study area.

The id "2846" has to be replaced by the $emikat_id .

@p-a-s-c-a-l
Copy link
Member Author

ATM the API events for RCP45 only. Did you import all files from clarity-h2020/csis#57 (comment) ?

@humerh
Copy link

humerh commented Aug 20, 2019

All events are now imported.

@humerh humerh closed this as completed Aug 20, 2019
@p-a-s-c-a-l p-a-s-c-a-l pinned this issue Sep 5, 2019
@DenoBeno DenoBeno unpinned this issue Sep 24, 2019
@p-a-s-c-a-l
Copy link
Member Author

@p-a-s-c-a-l
Copy link
Member Author

@DenoBeno
Copy link
Contributor

DenoBeno commented Sep 25, 2019 via email

@p-a-s-c-a-l
Copy link
Member Author

p-a-s-c-a-l commented Sep 25, 2019

Then this would just affect HC-LE and not HC.

@humerh
Copy link

humerh commented Sep 25, 2019

There are no "LAND_USE" date (Urban atlas data) available, so Emikat can not calculate.

@humerh
Copy link

humerh commented Sep 25, 2019

If you want a support to calculate each location in Europe we have to define for all cities also the location specific parameters.

As an example:
image

@p-a-s-c-a-l
Copy link
Member Author

There are no "LAND_USE" date (Urban atlas data) available, so Emikat can not calculate.

Cannot calculate what? HC or HC-LE. I thought HC (events) is independent of the HC-LE Urban Atlas input layers. So at least the EE and HC data should be available for whole Europe.

@negroscuro Can you please check if HC-LE input data is available for the following study areas: Alba Iulia and Athens. I could select both cities from the cities taxonomy, so I assume that a complete set of HC-LE input layers is available for those? Maybe they haven't been generated by your script yet?

@humerh
Copy link

humerh commented Sep 26, 2019

Sorry, now I understand.
Yes, I had a simlified implementation of the script for searching the "relevant events" for the study area.
I filtered the table for the city names, which was placticable for NAPOLI and STOCKHOLM.
But the table of Robert had not filled all cities.
So I implemented yesterday an imporved script, which looks for the EVENTS, which are NEAREST the middlepoint of the study area, ignoring the given city names (urban area).
This is now the functionality we decided in Frankfurt.

@p-a-s-c-a-l p-a-s-c-a-l added the BB: Catalogue of ER & AO Catalogue of Elements at Risk and Adaptation Options Building Block label Oct 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BB: Catalogue of ER & AO Catalogue of Elements at Risk and Adaptation Options Building Block enhancement New feature or request SHOWSTOPPER Feature or bug, that, if not addressed, renders the CSIS essentially useless
Projects
None yet
Development

No branches or pull requests

4 participants