GFDRR / rdl-standard

The Risk Data Library Standard (RDLS) is an open data standard to make it easier to work with disaster and climate risk data. It provides a common description of the data used and produced in risk assessments, including hazard, exposure, vulnerability, and modelled loss, or impact, data.
https://docs.riskdatalibrary.org/
Creative Commons Attribution Share Alike 4.0 International
13 stars 1 forks source link

135 examples #196

Closed duncandewhurst closed 11 months ago

duncandewhurst commented 1 year ago

Related issues

Description

This PR:

Merge checklist

If you added or removed a field:

Having trouble?

See how to resolve check failures.

duncandewhurst commented 1 year ago

Preview (below schema reference table): https://rdl-standard.readthedocs.io/en/135-examples/reference/schema/#hazard

odscjen commented 1 year ago

@duncandewhurst Mat's done a new version of the Fathom hazard data example, can I delete the example.json that's currently in the examples/hazard/fathom folder and rename the new version to example.json?

odscjen commented 1 year ago

@duncandewhurst I ran manage.py but examples/hazard/aqueduct/dataset.csv is coming back as empty?

I get the warning

/home/jen/rdl-standard/.ve/bin/flatten-tool:4: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html import('pkg_resources').require('flattentool==0.22.0')

but I don't think that's causing the issue?

duncandewhurst commented 1 year ago

@duncandewhurst Mat's done a new version of the Fathom hazard data example, can I delete the example.json that's currently in the examples/hazard/fathom folder and rename the new version to example.json?

Yep, that's right. If the new example results in a different set of CSV files, you'll also need to update docs/reference/schema.md.

@duncandewhurst I ran manage.py but examples/hazard/aqueduct/dataset.csv is coming back as empty?

Ah, I forgot to mention that the example RDLS metadata in the JSON file needs to be wrapped in an outer datasets array. I've added some instructions to https://github.com/GFDRR/rdl-standard/blob/135-examples/developer_docs.md#add-an-rdls-metadata-example

I get the warning...

Looks like this is a bug in the version of pip that you're using. Try upgrading pip and see if that removes the warning: pip install --upgrade pip

duncandewhurst commented 11 months ago

@odscjen let me know once the example JSON and CSV files are ready and I'll have a think about how best to present them in the docs.

odscjen commented 11 months ago

@duncandewhurst I realised that we do need the new spreadsheet version to finish updating the remaining examples, particularly the exposure one. If you could generate that (I wasn't sure how to) I can update the examples if you don't have time. Ping me in Signal if you need me to do that and I'll get it done tomorrow.

duncandewhurst commented 11 months ago

@matamadio @stufraser1 this PR is ready for your review. Jen doesn't work Wednesdays so, with an eye on the workshop on Thursday, once you've reviewed we can merge it, if you're happy with it. I don't think there'll be time to add any more examples before Thursday, but we can make further changes and add more examples in future PRs.

Edit: Preview link for convenience: https://rdl-standard.readthedocs.io/en/135-examples/reference/schema/