clarity-h2020 / emikat

http://www.emikat.at/?lang=en
1 stars 0 forks source link

Support Hazards with Local Effects [HC-LE API] #12

Closed p-a-s-c-a-l closed 5 years ago

p-a-s-c-a-l commented 5 years ago

This is related to the calculation of tmrt.

Hazards with local effects /currently (tmrt based on Heat Wave Events) are (re-)calculated in EMIKAT and will be shown on the HC-LE Map and eventually in the HC-LE Table.

The API would probably expect just two parameters:

That means, in contrast to previous ideas, we don't need parameters for RCP and time period because we force the user in the Scenario Selection UI (probably better called Event Selection UI) to chose one event from the baseline and one corresponding event of the same type (frequent, occasional, rare) from the future.

In principle, the API then returns the two HC-LE layers (tmrt) related to the two events chosen by the user. Atm, the implementation of the HC-LE Table is on hold, so we are currently just in need of a WMS Endpoint for the map.

The respective HC-LE 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 commented 5 years ago

Now the result of Local effect calculation is also available as WMS-Maps:

https://service.emikat.at/geoserver/clarity/wms?service=WMS&version=1.1.0&request=GetMap&layers=clarity%3Aview.2974&bbox=4672000.0%2C1979500.0%2C4687500.0%2C1988000.0&width=768&height=421&srs=EPSG%3A3035&format=image%2Fgif&CQL_FILTER=PROJECT%3DBASELINE%20and%20PERIOD=%27Baseline%27%20AND%20RCP=%27Baseline%27%20AND%20FREQUENCE=%27Rare%27%20AND%20SZ_ID=2846&styles=T_A

In this link you can adapt the follwing parameters:

PROJECT=BASELINE ... (for future selection of an alternative 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')

@p-a-s-c-a-l , @therter please test and give me feedback, if this approach is ok.

SZ_ID=2846 has to be set to the current $emikatID

styles=T_A for Apparent temparature styles=T_TMRT for Mean Radiant Temperature styles=T_UTCI for UTCI Temperature

The color schemas (STYLE colors) are currently fixed but not optimized !!!!

p-a-s-c-a-l commented 5 years ago

Thanks. And what about the the JSON API needed for the Table Component?

humerh commented 5 years ago

Do you mean the grid results as "JSON API"? or the content of the "Summary table"? If you mean the "Summary table" I need to understand, how this numbers are calculated. I need more information!

p-a-s-c-a-l commented 5 years ago

any kind of tabular data would be fine atm.

humerh commented 5 years ago

Ok, you can also get the HW Local effect results direct by emikat Rest interface:

As JSON: https://service.emikat.at/EmiKatTst/api/scenarios/2846/feature/view.2974/table/data?rownum=10000&filter=PROJECT%3DBASELINE&filter=PERIOD%3D'Baseline'&filter=RCP%3D'Baseline'&filter=FREQUENCE%3D'Rare'&filter=SZ_ID%3D2846

As CSV: https://service.emikat.at/EmiKatTst/api/scenarios/2846/feature/view.2974/table/csv?rownum=10000&filter=PROJECT%3DBASELINE&filter=PERIOD%3D'Baseline'&filter=RCP%3D'Baseline'&filter=FREQUENCE%3D'Rare'&filter=SZ_ID%3D2846

or as GeoJSON https://service.emikat.at/EmiKatTst/api/scenarios/2846/feature/view.2974/table/geojson?rownum=10000&filter=PROJECT%3DBASELINE&filter=PERIOD%3D'Baseline'&filter=RCP%3D'Baseline'&filter=FREQUENCE%3D'Rare'&filter=SZ_ID%3D2846

DenoBeno commented 5 years ago

I presume this has been resolved now?

p-a-s-c-a-l commented 5 years ago

No HC_LE Data seems to be available for this study (AgiosDimitrios): https://service.emikat.at/EmiKatTst/api/scenarios/3189/feature/view.2974/table/data?rownum=1000&filter=STUDY_VARIANT%3D%27BASELINE%27&filter=TIME_PERIOD%3D%27Baseline%27&filter=EMISSIONS_SCENARIO%3D%27Baseline%27&filter=EVENT_FREQUENCY%3D%27Rare%27&filter=SZ_ID%3D3189

p-a-s-c-a-l commented 5 years ago

Same for this study: https://service.emikat.at/EmiKatTst/api/scenarios/3209/feature/view.2974/table/data?rownum=1000&filter=STUDY_VARIANT%3D%27variant:baseline%27&filter=TIME_PERIOD%3D%27period:baseline%27&filter=EMISSIONS_SCENARIO%3D%27Baseline%27&filter=EVENT_FREQUENCY%3D%27frequency:frequent%27&filter=SZ_ID%3D3209

DenoBeno commented 5 years ago

As discussed earlier today, we have a workaround for the missing insolation data, so this should soon work for all locations. Technically it's already working for a few locations...

p-a-s-c-a-l commented 5 years ago

I assume this is working now and the issue can be closed?

humerh commented 5 years ago

Yes!