Skip to content
Open
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions scripts/us_epa/ejscreen/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@ which are a small subset of the available EJSCREEN variables.

To generate `ejscreen_airpollutants.csv` and `ejscreen.tmcf` run the following:

`python3 ejscreen.py`
#Downloading and Processing Data
To perform "download and process", run the below command: python3 ejscreen.py Running this command generates input_fles and csv, mcf, tmcf files

As of July, 2021 this includes data through the end of 2020.
If you want to perform "only process", run the below command: python3 ejscreen.py --mode=process

If you want to perform "only download", run the below command: python3 ejscreen.py --mode=download
Comment thread
Rohit231998 marked this conversation as resolved.
Comment thread
Rohit231998 marked this conversation as resolved.

### Unit Tests

Expand Down
99 changes: 99 additions & 0 deletions scripts/us_epa/ejscreen/config.json
Comment thread
Rohit231998 marked this conversation as resolved.
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
{
"YEARS": [ "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024"],
Comment thread
Rohit231998 marked this conversation as resolved.
"NORM_CSV_COLUMNS": ["ID", "DSLPM", "CANCER", "RESP", "OZONE", "PM25"],
"NORM_CSV_COLUMNS1": ["ID", "DSLPM", "OZONE", "PM25"],
"CSV_COLUMNS_BY_YEAR": {
Comment thread
Rohit231998 marked this conversation as resolved.
"2015": ["FIPS", "dpm", "cancer", "resp", "o3", "pm"],
"2016": ["ID", "DSLPM", "CANCER", "RESP", "OZONE", "PM25"],
"2017": ["ID", "DSLPM", "CANCER", "RESP", "OZONE", "PM25"],
"2018": ["ID", "DSLPM", "CANCER", "RESP", "OZONE", "PM25"],
"2019": ["ID", "DSLPM", "CANCER", "RESP", "OZONE", "PM25"],
"2020": ["ID", "DSLPM", "CANCER", "RESP", "OZONE", "PM25"],
"2021": ["ID", "DSLPM", "CANCER", "RESP", "OZONE", "PM25"],
"2022": ["ID", "DSLPM", "CANCER", "RESP", "OZONE", "PM25"],
"2023": ["ID", "DSLPM", "CANCER", "RESP", "OZONE", "PM25"],
"2024": ["ID", "DSLPM", "OZONE", "PM25"]
},
"ZIP_FILENAMES": {
"2015": "EJSCREEN_20150505.csv",
"2016": "EJSCREEN_V3_USPR_090216_CSV",
"2017": null,
"2018": "EJSCREEN_2018_USPR_csv",
"2019": "EJSCREEN_2019_USPR.csv",
"2020": "EJSCREEN_2020_USPR.csv",
"2021": "EJSCREEN_2021_USPR.csv",
"2022": "EJSCREEN_2022_with_AS_CNMI_GU_VI.csv",
"2023": "EJSCREEN_2023_BG_with_AS_CNMI_GU_VI.csv",
"2024": "EJScreen_2024_Tract_with_AS_CNMI_GU_VI.csv"
},
"FILENAMES": {
Comment thread
Rohit231998 marked this conversation as resolved.
"2015": "EJSCREEN_20150505",
"2016": "EJSCREEN_Full_V3_USPR_TSDFupdate",
"2017": "EJSCREEN_2017_USPR_Public",
"2018": "EJSCREEN_Full_USPR_2018",
"2019": "EJSCREEN_2019_USPR",
"2020": "EJSCREEN_2020_USPR",
"2021": "EJSCREEN_2021_USPR",
"2022": "EJSCREEN_2022_Full_with_AS_CNMI_GU_VI",
"2023": "EJSCREEN_2023_BG_with_AS_CNMI_GU_VI",
"2024": "EJScreen_2024_Tract_with_AS_CNMI_GU_VI"
},
"TEMPLATE_MCF": [
{
"Node": "E:ejscreen_airpollutants->E0",
"typeOf": "dcs:StatVarObservation",
"variableMeasured": "dcs:Mean_Concentration_AirPollutant_DieselPM",
"observationDate": "C:ejscreen_airpollutants->year",
"observationAbout": "C:ejscreen_airpollutants->FIPS",
"observationPeriod": "dcs:P1Y",
"value": "C:ejscreen_airpollutants->DSLPM",
"unit": "dcs:MicrogramsPerCubicMeter"
},
{
"Node": "E:ejscreen_airpollutants->E1",
"typeOf": "dcs:StatVarObservation",
"variableMeasured": "dcs:AirPollutant_Cancer_Risk",
"observationDate": "C:ejscreen_airpollutants->year",
"observationAbout": "C:ejscreen_airpollutants->FIPS",
"observationPeriod": "dcs:P1Y",
"value": "C:ejscreen_airpollutants->CANCER",
"unit": "dcs:PerMillionPerson"
},
{
"Node": "E:ejscreen_airpollutants->E2",
"typeOf": "dcs:StatVarObservation",
"variableMeasured": "dcs:AirPollutant_Respiratory_Hazard",
"observationDate": "C:ejscreen_airpollutants->year",
"observationAbout": "C:ejscreen_airpollutants->FIPS",
"observationPeriod": "dcs:P1Y",
"value": "C:ejscreen_airpollutants->RESP"
},
{
"Node": "E:ejscreen_airpollutants->E3",
"typeOf": "dcs:StatVarObservation",
"variableMeasured": "dcs:Mean_Concentration_AirPollutant_Ozone",
"observationDate": "C:ejscreen_airpollutants->year",
"observationAbout": "C:ejscreen_airpollutants->FIPS",
"observationPeriod": "dcs:P1Y",
"value": "C:ejscreen_airpollutants->OZONE",
"unit": "dcs:PartsPerBillion"
},
{
"Node": "E:ejscreen_airpollutants->E4",
"typeOf": "dcs:StatVarObservation",
"variableMeasured": "dcs:Mean_Concentration_AirPollutant_PM2.5",
"observationDate": "C:ejscreen_airpollutants->year",
"observationAbout": "C:ejscreen_airpollutants->FIPS",
"observationPeriod": "dcs:P1Y",
"value": "C:ejscreen_airpollutants->PM25",
"unit": "dcs:MicrogramsPerCubicMeter"
}
]
,
Comment thread
Rohit231998 marked this conversation as resolved.
Outdated
"BASE_URL": "https://gaftp.epa.gov/EJSCREEN",
"URL_SUFFIX": {
"2023": "2.22_September_UseMe",
"2024": "2.32_August_UseMe"
},
"RENAME_COLUMNS_YEARS": ["2024"]
}
Loading