Skip to content

CFF-Stack/IMT-542-I3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Generate the README.md file as requested

readme_content = """

πŸ—ΊοΈ I2Py Disaster Declarations and Population Visualizer

This application integrates FEMA disaster declaration data with U.S. Census population data to generate paired, timestamped CSV and visual outputs.


πŸš€ Features

βœ… Data Integration

  • Reads FEMA Disaster Declarations (FemaWebDisasterDeclarations.csv)
  • Reads U.S. Census Data (DECENNIALCD1182020.P1-2025-06-08T162550.csv)
  • Combines them into an integrated dataset, aligned by state.

βœ… Data Visualization

  • Produces bar + line charts visualizing population and disaster counts.
  • Saves visuals in Sample Outputs/, named with a unique timestamp.

βœ… Data Export

  • Saves integrated summary data to a CSV file, using the same timestamp as the image.

βœ… Consistent Naming Convention

  • Paired outputs are named like:
    • Population_and_Disaster_Declarations_YYYYMMDD_HHMMSS.png
    • Population_and_Disaster_Declarations_YYYYMMDD_HHMMSS.csv

πŸ“¦ File Structure

β”œβ”€β”€ I2Py.py # Main script for data integration and visualization β”œβ”€β”€ DECENNIALCD1182020.P1-2025-06-08T162550.csv (My Sample data, you can get yours from https://data.census.gov/all?g=010XX00US$0400000 ) β”œβ”€β”€ FemaWebDisasterDeclarations.csv (My Sample data, you can get yours from https://www.fema.gov/openfema-data-page/fema-web-disaster-declarations-v1 ) β”œβ”€β”€ Sample Outputs/ β”‚ β”œβ”€β”€ Population_and_Disaster_Declarations_YYYYMMDD_HHMMSS.png β”‚ └── Population_and_Disaster_Declarations_YYYYMMDD_HHMMSS.csv └── README.md # This readme file


πŸ› οΈ Requirements

  • Python 3.13 (or compatible Python 3.7+)
  • Libraries:
    • pandas
    • matplotlib

Install dependencies via pip:

"""pip install pandas matplotlib"""

βš™οΈ How to Run
Run the script from the project directory:

bash
Copy
Edit
python I2Py.py
The script will:

Load the census and FEMA data

Integrate them by state

Print sample outputs to console

Generate and save:

A PNG image of the visualization

A CSV file summarizing the data

Both files will be saved in the Sample Outputs directory with a timestamp in the name.

πŸ’‘ Notes
The script uses a timestamp to avoid overwriting previous outputs.

If no data is present for some states, they will be excluded from the visualization and CSV export.

πŸ“ˆ Future Enhancements? (TBD)
Support for additional data sources (e.g., hazard severity, economic impact).

Enhanced interactive visualizations.

Automated updates for new disaster data.

Happy data exploration! πŸš€ *Generated with the Assistance of ChatGPT, edited for consistency, content and cohesion.

About

This is a demonstration repository for IMT 542 (SPR 24)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published