-
Notifications
You must be signed in to change notification settings - Fork 120
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
Flood data for Colombia, Nigeria, Sudan and Venezuela has an array of float 1.0 for .date attribute #850
Comments
@IanHopkinson Thanks for reporting this. I can confirm that the As immediate solution, you can try casting the dates to ints, this way at least you should not run into value or data type errors. Of course, this will not give you more sensible data, but at least all Climada operations should run smoothly: flood.date = flood.date.astype("int") @emanuel-schmid Do you see a way of updating the datasets and adding the correct date information? |
@peanutfun - thanks! Currently I catch the exception, which is specific to my code, to allow operations to continue. For Venezuela I retrieve the data using the iso3alpha code:
To give you some idea of where these issues are coming from, I'm uploading data to the Humanitarian Data Exchange for the Humanitarian Response Plan countries listed here: https://github.com/OCHA-DAP/hdx-scraper-climada/blob/main/src/hdx_scraper_climada/metadata/countries.csv I'm working my way through exposures and hazards so far I've done litpop, crop_production, earthquakes, floods and I'm going to do River_flood, Tropical_cyclone, Relative_cropyield |
Sure, I'm gonna give it a try - but I can't right away tell until when it's done. |
@emanuel-schmid Great to hear, thank you! I was mostly wondering if the data is available at all. |
@IanHopkinson Please bear in mind that these datasets are provided on a best-effort basis and with no guarantees on correctness and completeness whatsoever. We see them as "demonstrator" datasets for a Climada application and recommend users to use their own data for specialized applications as much as possible. See the disclaimer on the website of the API service here: https://climada.ethz.ch/disclaimer/ In the data types section, you will also find more detailed information on the datasets. |
That is indeed a very good question. 🤔 |
@peanutfun - no problem - that is understood! |
@IanHopkinson
|
Thanks @Evelyn-M - that should fix my issue, also the link to the original source is very useful since I was checking the cloudstreet.ai website and it was re-directing to floodbase.com |
@Evelyn-M @emanuel-schmid Do you intend to update the dates in the dataset on the API according to the "metainfo" file you provided? If not, I will close this issue |
@peanutfun: yes, eventually. But it's note yet clear when. 🤷 |
No worries, will leave it open then ✌️ |
Flood hazard data for Colombia, Nigeria, Sudan and Venezuela have an array of float 1.0 for .date attribute which cannot be parsed as a date.
To replicate:
Produces the result:
By contrast the same code for Haiti produces the result:
The text was updated successfully, but these errors were encountered: