Giter Club home page Giter Club logo

downloads's Introduction

(Français)

Parent repository for the Open Disaster Risk Reduction Platform

The OpenDRR platform is middleware between hazard or risk modeling environments like OpenQuake and end users who need to understand and evaluate risk to make economic and policy decisions. The end-user interface, launched as RiskProfiler, operates as a web application using standard web browsers in desktop, tablet or hand-held device environments.

Development and execution of hazard and risk assessment models is a separate concern, outside of the OpenDRR system. OpenDRR will receive output from these models as input, using one or more interfaces and interchange formats based on existing standards or on specifications developed by the implementation team if no standards meet requirements.

Download data

Key repositories

Progress tracking

Documentation

Contributing

  1. Fork a repository by following the GitHub guidelines here: https://docs.github.com/en/get-started/quickstart/fork-a-repo.
  2. Use the following steps to prepare a pull request:
    • git fetch upstream
    • git checkout upstream/master or git checkout upstream/main
    • git checkout -b my-contribution-description
    • test your additions
    • create a pull request

downloads's People

Contributors

anthonyfok avatar damonu2 avatar dependabot[bot] avatar jvanulde avatar tieganh avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

downloads's Issues

Data dictionary for indicators

We need to provide a data dictionary that describes the indicators.

  • Physical Exposure
  • Social Vulnerability
  • Multi-hazard Risk
  • PSRA
  • DSRA

Add PSRA datasets

Add Provincial/Territorial PSRA datasets to site. Note, metadata is in development so we should put some placeholders in for now.

Release tag missing from assets download URLs in GitHub Pages of forks

{{site.github.releases[0].tag_name}} returns an empty string on GitHub Pages of forks of OpenDRR/data

As first reported by @jvanulde in OpenDRR/data#54, the release tag (e.g.v1.2) is missing in the release assets download URLs on GitHub Pages of forks of OpenDRR/data, as can be seen on, for example:

The release tags do exist in the forks (see https://github.com/jvanulde/data/releases and https://github.com/anthonyfok/data/releases), but somehow {{site.github.releases[0].tag_name}} just isn't picking that up... Don't know why yet.

Fortunately, the assets download URLs are OK on https://opendrr.github.io/data/en/nhsl.html with the release tag intact.

Interestingly, the release tag is also intact on assets download URLs on e.g. http://127.0.0.1:4000/data/ served by bundle exec jekyll serve running locally on my computer.

See also PR OpenDRR/data#49 and commit 7bbfdf2ca7d465703912a89158840456d050bc96 where the Jekyll plugin jekyll-github-metadata which might offer some clue. Perhaps try other site.github.* variables(?) and see if they are picked up in GitHub Pages of forks?

Switch from site.github.releases[0] to site.github.latest_release in Q4 2021?

In PR OpenDRR/data#49, I wrote:

I ended up using {{ site.github.releases[0].tag_name }} instead of {{ site.github.latest_release.tag_name }} because the latter does not recognize pre-releases.

That said, in jekyll/github-metadata#80, which incidentally came up as the second Googld search result of "jekyll get latest github release tag"), the original poster wrote:

Sometimes a release is tagged for in the past for historical purposes. Grabbing all of the releases and hoping that the first one is the latest doesn't work. Instead, it could query /repos/:owner/:repo/releases/latest which will give the release marked latest.

So, perhaps it would indeed be good to switch to {{ site.github.latest_release.tag_name }} in pages/{en,fr}/nhsl.md when we start having official releases (i.e. not pre-releases) probably in Q4 2021 or Q1 2022.

Create statistics web page from download_count of our release assets

Turn the following:

curl -s https://api.github.com/repos/OpenDRR/data/releases \
    | egrep '"name"|"download_count"'

into a download statistics page somewhere in our GitHub Pages site. With tables? With barcharts? Try to collect data hourly/daily/weekly/monthly etc. to see trend? (but how to store the statistics? Using artifacts perhaps?

Could start with Hugo's download statistics:

curl -s https://api.github.com/repos/gohugoio/hugo/releases \
    | egrep '"name"|"download_count"'

for interesting results over a longer period of time.

Find out how to implement this with Jekyll, similar to how Hugo can get remote data with getJSON. Would the following Jekyll plugin work?

See also, probably for interests only:

Trigger GitHub Pages site build to point to latest tagged release assets.

As we tried out PR OpenDRR/data#49 after merging, we saw the release assets for v1.2 available, but the download links from e.g. https://opendrr.github.io/data/en/nhsl.html#physical_exposure still pointed to v1.1, i.e., the previous (pre-)release:

instead of the real:

We think it is due to GitHub Pages build does not get triggered by the mere creation of a release tag, i.e. without new commit push, it may be a good idea to follow https://stackoverflow.com/questions/24098792/how-to-force-github-pages-build

Notes:

Existing GitHub action to trigger rebuild for ALL GitHub Pages sites of a user (or organization too?):

Create legend files for indicators

Define thresholds and color guides for symbolizing risk metrics that require a standard symbology. Layer definitions to be documented using QGIS MXD layer file format.

  • Physical Exposure
  • Social Vulnerability
  • [ ] Multi-hazard Risk
  • PSRA
  • DSRA

Recompress *.zip files as *.7z or *.xz

As per discussions with Joost on Mon 2021-05-10 and Tue 2021-05-11, we would like to recompress the current ZIP archives which store the GeoPackage (*.gpkg) files with another compression tool (e.g. 7-Zip or xz) that offers higher compression rate.

Joost also suggested the use of GitHub Actions for automatic recompression

Notes:

There are only 9 ZIP files (out of 734) that are over 100MB, and fewer yet after recompression with 7z or xz (or even zpaq):

foka@debian-e431:OpenDRR/data$ find assets -size +100M -exec ls -lh '{}' \; | sed -e 's/.*users/*/'
* 174M May 11 11:17 assets/data/national_human_settlement_layers/nhsl_social_fabric_all_indicators_s.zip
* 110M May 11 11:17 assets/data/national_human_settlement_layers/nhsl_physical_exposure_all_indicators_b.zip
* 125M May 11 11:16 assets/data/national_human_settlement_layers/nhsl_hazard_threat_all_indicators_b.zip
* 191M May 11 11:16 assets/data/national_human_settlement_layers/nhsl_hazard_threat_all_indicators_s.zip
* 187M May 11 11:17 assets/data/national_human_settlement_layers/nhsl_physical_exposure_all_indicators_s.zip
* 234M May 11 11:17 assets/data/seismic_risk/on/psra_on_all_indicators_b_.zip
* 175M May 11 11:18 assets/data/seismic_risk/qc/psra_qc_all_indicators_b_.zip
* 244M May 11 11:18 assets/data/seismic_risk/psra_all_indicators_s.zip
* 404M May 11 11:18 assets/data/seismic_risk/psra_all_indicators_b.zip

So perhaps we will modify .gitattributes to match only these handful of files for Git LFS, and keep the other 700+ files inside the git repository.

Reference:

  • Git LFS: support tracking by file size? git-lfs/git-lfs#282 (some users come up with creative solutions)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.