USFEMA_NationalRiskIndex download_url_fix#2064
Conversation
Code fix unenergy
There was a problem hiding this comment.
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.
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>
saanikaaa
left a comment
There was a problem hiding this comment.
-
I see many data points coming as modified in differ. Can you pls check if we have selected the correct input file. Pls spot check points modification and document your findings.
-
Add PR checklist
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:
obsolete hazards.fema.gov links.
descriptions directly readable and accessible.
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.
After that, numerous source side deletions are observed in the differ validation report, for which a document is created addressing all the deletions properly
document link - https://docs.google.com/document/d/1esXHmisK2D9Yx9j_-6x0leRGlhAc18_77DMtzQnahB4/edit?resourcekey=0-h130g3obSJVd_zScRvBYmg&tab=t.0
differ link - https://storage.mtls.cloud.google.com/unresolved_mcf/scripts/us_fema/national_risk_index/national_risk_index/output/dc_generated/differ/obs_diff_log.csv?authuser=0