os-climate / physrisk

Physical climate risk calculation engine
Apache License 2.0
29 stars 39 forks source link

Access to the hazard indicator data #168

Closed Carina-vd-Merwe closed 2 months ago

Carina-vd-Merwe commented 10 months ago

@joemoorhouse Describe the bug I am trying to run code using the following reference:

The URL of the endpoint to make the POST request to

url = "https://physrisk-api2-sandbox.apps.odh-cl1.apps.os-climate.org/api/get_hazard_data"

Expected behavior Would expect it to run without errors

Screenshots I am getting the following error message when running the code requests.exceptions.JSONDecodeError: [Errno Expecting value] <!doctype html>

400 Bad Request

Bad Request

The browser (or proxy) sent a request that this server could not understand.

: 0 **Additional context** I am not sure if I need access to the hazard indicator data in order to be able to run this. I read on the Physrisk Github that we are able to use the library on our local but that we would need access to the hazard indicator data. Would this be something that you will be able to give me access to. I am also not able to access the following link: https://oauth-openshift.apps.odh-cl2.apps.os-climate.org/oauth/authorize?response_type=code&redirect_uri=https%3A%2F%2Fjupyterhub-odh-jupyterhub.apps.odh-cl2.apps.os-climate.org%2Fhub%2Foauth_callback&client_id=system%3Aserviceaccount%3Aodh-jupyterhub%3Ajupyterhub-hub&state=eyJzdGF0ZV9pZCI6ICI1M2IyNTdlMjJiNzM0NGQ2OWEwMzZiNzc1NzhkNzJmNCIsICJuZXh0X3VybCI6ICIvaHViLyJ9&scope=user%3Ainfo Which may be linked to the access to the hazard data if I am correct. Your assistance with this would be appreciated. Kind regards, Carina
joemoorhouse commented 10 months ago

Hi @Carina-vd-Merwe, We discussed during the office hours, but to (belatedly!) put in the issue also. For getting example requests, the sandbox https://physrisk-ui-sandbox.apps.odh-cl1.apps.os-climate.org/ and developer tools can be useful to get examples of the JSON to post (we need to publish the API also, a TODO).
e.g. {"items":[{"request_item_id":"29fab225-cd8a-4b9d-ac73-1bd460861c0c","event_type":"ChronicHeat","longitudes":[10.47351095515998],"latitudes":[44.998215886074576],"year":2005,"scenario":"historical","indicator_id":"days_tas/above/25c","path":"chronic_heat/osc/v2/days_tas_above_25cCNRM-CM6-1{scenario}_{year}"}]}

I'm not sure if you were able to get access yet to the bucket credentials to run locally?

Thanks, Joe

Carina-vd-Merwe commented 10 months ago

Good morning Joe,

I hope you are doing well.

Thank you for sending this through!

I haven’t received access to the bucket credentials yet to run it locally. They did send me a follow-up mail on Friday, confirming the repositories I would want to be added to. But I haven’t heard back from them since then. Unless I would not get a notification once I have received access, but earlier in the week when I checked, I did not have access yet.

Kind regards, Carina Quant Analyst – Quantitative Solutions Mobile: +44 (0)79 7776 1196 @.**@.> Visit our Climate Risk page: Climate risk - Mazarshttps://www.mazars.co.uk/Home/Industries/Financial-Services/Banking-Capital-Markets/Climate-risk

@.***

From: Joe Moorhouse @.> Sent: Tuesday, December 5, 2023 10:29 PM To: os-climate/physrisk @.> Cc: Carina Van Der Merwe @.>; Mention @.> Subject: Re: [os-climate/physrisk] Access to the hazard indicator data (Issue #168)

Alert: This email was sent by an external party


Hi @Carina-vd-Merwehttps://github.com/Carina-vd-Merwe, We discussed during the office hours, but to (belatedly!) put in the issue also. For getting example requests, the sandbox https://physrisk-ui-sandbox.apps.odh-cl1.apps.os-climate.org/https://physrisk-ui-sandbox.apps.odh-cl1.apps.os-climate.org/ and developer tools can be useful to get examples of the JSON to post (we need to publish the API also, a TODO). e.g. {"items":[{"request_item_id":"29fab225-cd8a-4b9d-ac73-1bd460861c0c","event_type":"ChronicHeat","longitudes":[10.47351095515998],"latitudes":[44.998215886074576],"year":2005,"scenario":"historical","indicator_id":"days_tas/above/25c","path":"chronic_heat/osc/v2/days_tas_above_25cCNRM-CM6-1{scenario}_{year}"}]}

I'm not sure if you were able to get access yet to the bucket credentials to run locally?

Thanks, Joe

— Reply to this email directly, view it on GitHubhttps://github.com/os-climate/physrisk/issues/168#issuecomment-1841729147, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BDNNI5XCPUSO6W6M5EKQQWLYH6N4JAVCNFSM6AAAAAA7WANT5KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBRG4ZDSMJUG4. You are receiving this because you were mentioned.Message ID: @.**@.>>

We’d love to hear your views on working with us here: https://www.mazars.co.uk/feedback

Mazars LLP is the UK firm of Mazars, an integrated international advisory and accountancy organisation. Mazars LLP is a limited liability partnership registered in England and Wales with registered number OC308299 and with its registered office at 30 Old Bailey, London, EC4M 7AU.

Details about our audit registration can be viewed on the Register of Statutory Auditors’ website, under reference number C001139861.

Mazars Financial Planning Limited and Mazars Corporate Finance Limited are both registered in England and Wales with Nos. 3172233 and 4252262 respectively. Both companies are wholly owned subsidiaries of Mazars LLP, are authorised and regulated by the Financial Conduct Authority and have their registered offices at: 30 Old Bailey, London, EC4M 7AU.

This email and any attachments are confidential and may also be subject to legal privilege. If you are not the intended recipient, please notify the sender immediately, and do not disclose the contents to another person, use it for any purpose, store or copy the information in any medium. Please also destroy and delete the message from your computer.

If you currently receive marketing communications from us and no longer wish to do so, please email @.*** confirming your choice to unsubscribe.

HeatherAck commented 10 months ago

Hi Carina,

Sorry for the delay on this. I sent you an invite to join the phys-risk github project team and added access info to the ticket here: https://github.com/os-climate/OS-Climate-Community-Hub/issues/132

@Evan @.> and @Jenn @.> please review her ticket to see where the delay occurred, and let me know if you have any questions.

Best, Heather

Heather Ackenhusen Principal Technical Program Manager

Learn morehttps://github.com/os-climate/OS-Climate-Community-Hub/tree/main#start-here about OS-Climate.

Join OS-Climate's slack channelhttps://join.slack.com/t/os-climate/shared_invite/zt-14d7z1q78-gf68YdWxcaDcB2gKnVJDvg.

+1 847-687-6023 OS-Climate (Linux Foundation Contractor)

From: Carina-vd-Merwe @.> Sent: Wednesday, December 6, 2023 3:01 AM To: os-climate/physrisk @.> Cc: Subscribed @.***> Subject: Re: [os-climate/physrisk] Access to the hazard indicator data (Issue #168)

Good morning Joe,

I hope you are doing well.

Thank you for sending this through!

I haven’t received access to the bucket credentials yet to run it locally. They did send me a follow-up mail on Friday, confirming the repositories I would want to be added to. But I haven’t heard back from them since then. Unless I would not get a notification once I have received access, but earlier in the week when I checked, I did not have access yet.

Kind regards, Carina Quant Analyst – Quantitative Solutions Mobile: +44 (0)79 7776 1196 @.**@.mailto:***@***.******@***.***> Visit our Climate Risk page: Climate risk - Mazarshttps://www.mazars.co.uk/Home/Industries/Financial-Services/Banking-Capital-Markets/Climate-risk

@.<mailto:@.>

From: Joe Moorhouse @.<mailto:@.>> Sent: Tuesday, December 5, 2023 10:29 PM To: os-climate/physrisk @.<mailto:@.>> Cc: Carina Van Der Merwe @.<mailto:@.>>; Mention @.<mailto:@.>> Subject: Re: [os-climate/physrisk] Access to the hazard indicator data (Issue #168)

Alert: This email was sent by an external party


Hi @Carina-vd-Merwehttps://github.com/Carina-vd-Merwe, We discussed during the office hours, but to (belatedly!) put in the issue also. For getting example requests, the sandbox https://physrisk-ui-sandbox.apps.odh-cl1.apps.os-climate.org/https://physrisk-ui-sandbox.apps.odh-cl1.apps.os-climate.org/<https://physrisk-ui-sandbox.apps.odh-cl1.apps.os-climate.org/%3chttps:/physrisk-ui-sandbox.apps.odh-cl1.apps.os-climate.org/> and developer tools can be useful to get examples of the JSON to post (we need to publish the API also, a TODO). e.g. {"items":[{"request_item_id":"29fab225-cd8a-4b9d-ac73-1bd460861c0c","event_type":"ChronicHeat","longitudes":[10.47351095515998],"latitudes":[44.998215886074576],"year":2005,"scenario":"historical","indicator_id":"days_tas/above/25c","path":"chronic_heat/osc/v2/days_tas_above_25cCNRM-CM6-1{scenario}_{year}"}]}

I'm not sure if you were able to get access yet to the bucket credentials to run locally?

Thanks, Joe

— Reply to this email directly, view it on GitHubhttps://github.com/os-climate/physrisk/issues/168#issuecomment-1841729147, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BDNNI5XCPUSO6W6M5EKQQWLYH6N4JAVCNFSM6AAAAAA7WANT5KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBRG4ZDSMJUG4. You are receiving this because you were mentioned.Message ID: @.**@.mailto:***@***.******@***.***>>

We’d love to hear your views on working with us here: https://www.mazars.co.uk/feedback

Mazars LLP is the UK firm of Mazars, an integrated international advisory and accountancy organisation. Mazars LLP is a limited liability partnership registered in England and Wales with registered number OC308299 and with its registered office at 30 Old Bailey, London, EC4M 7AU.

Details about our audit registration can be viewed on the Register of Statutory Auditors’ website, under reference number C001139861.

Mazars Financial Planning Limited and Mazars Corporate Finance Limited are both registered in England and Wales with Nos. 3172233 and 4252262 respectively. Both companies are wholly owned subsidiaries of Mazars LLP, are authorised and regulated by the Financial Conduct Authority and have their registered offices at: 30 Old Bailey, London, EC4M 7AU.

This email and any attachments are confidential and may also be subject to legal privilege. If you are not the intended recipient, please notify the sender immediately, and do not disclose the contents to another person, use it for any purpose, store or copy the information in any medium. Please also destroy and delete the message from your computer.

If you currently receive marketing communications from us and no longer wish to do so, please email @.<mailto:@.> confirming your choice to unsubscribe.

— Reply to this email directly, view it on GitHubhttps://url.emailprotection.link/?b3F5qeMmqxdwELYqKZCEpUjGd3bKHyVzzeqovYybNv4sv7UVcaquq0IzwMFpRYWWE6i5bHxJo2aVYaI08Cab1g-DBIfe4zO-Etqo2PG2jXueAnWtml69JRujUpOvo52SP, or unsubscribehttps://url.emailprotection.link/?bHbz1RVyHdnN07XWmhi7Dbwsi7od5aJY0EBY4Y7SG6o6ry4bXjOyDImH9vj82YhV9W9dtSllTX_rA-jIpLTVps4tYxgwGoaVUZ9-eJfvWmU4cgcbrOBHqOJD4Piiq01u1N__yd9luLLmAVI1EzD1sJ6l18yjyUAwILMcNR5K-sJ4YQlLCX9tJz5nEKyH-a7ZJoWDmstog5JrYzxFCYJntGLhLpNawMJ80DOKr9CMwaUZhOQ1XJOjs8hfOoHydTQd4. You are receiving this because you are subscribed to this thread.Message ID: @.**@.>>