Skip to content

USFEMA_NationalRiskIndex_download_url_fix#2064

Open
kartik-s21 wants to merge 18 commits into
datacommonsorg:masterfrom
kartik-s21:update-fema-nri-v120
Open

USFEMA_NationalRiskIndex_download_url_fix#2064
kartik-s21 wants to merge 18 commits into
datacommonsorg:masterfrom
kartik-s21:update-fema-nri-v120

Conversation

@kartik-s21
Copy link
Copy Markdown
Contributor

@kartik-s21 kartik-s21 commented Jun 5, 2026

This PR updates the National Risk Index (NRI) data download script and cleans up tracked CSV data files in accordance with the latest FEMA v1.20 data release.

What was done:

  • Updated download links: Modified sh/download_data.sh to fetch the county-level and tract-level NRI datasets from the official FEMA v1.20 endpoints instead of the
    obsolete hazards.fema.gov links.
  • Expanded Data Dictionary: Replaced the Git LFS pointer for NRIDataDictionary.csv with the raw CSV text contents for version 1.20.0 (December 2025) to make the field
    descriptions directly readable and accessible.
  • Removed large tracked file: Deleted the hardcoded NRI_Table_Counties.csv (which was previously tracked under LFS) to save repository space, as this data is dynamically
    retrieved during the download step.

Why this is needed:
The old download links are no longer functional, causing local data download scripts to fail. Updating them to the OpenFEMA v1.20 archive URLs ensures reliability, and
removing the heavy county-level CSV keeps the repository lightweight.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the FEMA National Risk Index download URLs to version 1.20 on fema.gov and replaces the Git LFS pointer for the NRIDataDictionary.csv file with its actual CSV content. The feedback recommends adding the -f or --fail flag to the curl commands in the download script to ensure it fails immediately on HTTP errors instead of silently writing error pages to the output files.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread scripts/us_fema/national_risk_index/sh/download_data.sh Outdated
Comment thread scripts/us_fema/national_risk_index/sh/download_data.sh Outdated
@kartik-s21 kartik-s21 changed the title Update fema nri v120 USFEMA_NationalRiskIndex_download_url_fix Jun 5, 2026
kartik-s21 and others added 3 commits June 5, 2026 05:19
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants