Skip to content

Commit

Permalink
CDC_Environmental_Health_Toxicology_Refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
SudhishaK committed Jan 2, 2025
1 parent 39aa35c commit 27721f0
Show file tree
Hide file tree
Showing 2 changed files with 104 additions and 1 deletion.
104 changes: 104 additions & 0 deletions scripts/us_cdc/environmental_health_toxicology/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
{
"import_specifications": [
{
"import_name": "CDC_PM25CensusTract",
"curator_emails": [
"[email protected]"
],
"provenance_url": "https://data.cdc.gov/browse?category=Environmental+Health+%26+Toxicology",
"provenance_description": "Environmental Health Toxicology",
"scripts": [
"parse_air_quality.py CDC_PM25CensusTract"
],
"import_inputs": [
{
"template_mcf": "PM25CensusTractPollution.tmcf",
"cleaned_csv": "output/PM2.5CensusTract_0.csv"
},
{
"template_mcf": "PM25CensusTractPollution.tmcf",
"cleaned_csv": "output/PM2.5CensusTract_1.csv"
},
{
"template_mcf": "PM25CensusTractPollution.tmcf",
"cleaned_csv": "output/PM2.5CensusTract_2.csv"
},
{
"template_mcf": "PM25CensusTractPollution.tmcf",
"cleaned_csv": "output/PM2.5CensusTract_3.csv"
}

],
"cron_schedule": "0 1 2 * *"
},
{
"import_name": "CDC_OzoneCensusTract",
"curator_emails": [
"[email protected]"
],
"provenance_url": "https://data.cdc.gov/browse?category=Environmental+Health+%26+Toxicology",
"provenance_description": "Environmental Health Toxicology",
"scripts": [
"parse_air_quality.py CDC_OzoneCensusTract"
],
"import_inputs": [
{
"template_mcf": "OzoneCensusTractPollution.tmcf",
"cleaned_csv": "output/Census_Tract_Level_Ozone_Concentrations_0.csv"
},
{
"template_mcf": "OzoneCensusTractPollution.tmcf",
"cleaned_csv": "output/PM2.Census_Tract_Level_Ozone_Concentrations_1.csv"
},
{
"template_mcf": "OzoneCensusTractPollution.tmcf",
"cleaned_csv": "output/Census_Tract_Level_Ozone_Concentrations_2.csv"
},
{
"template_mcf": "OzoneCensusTractPollution.tmcf",
"cleaned_csv": "output/Census_Tract_Level_Ozone_Concentrations_3.csv"
}

],
"cron_schedule": "0 1 3 * *"
},
{
"import_name": "CDC_PM25County",
"curator_emails": [
"[email protected]"
],
"provenance_url": "https://data.cdc.gov/browse?category=Environmental+Health+%26+Toxicology",
"provenance_description": "Environmental Health Toxicology",
"scripts": [
"parse_air_quality.py CDC_PM25County"
],
"import_inputs": [
{
"template_mcf": "PM25CountyPollution.tmcf",
"cleaned_csv": "output/PM25county.csv"
}

],
"cron_schedule": "0 1 4 * *"
},
{
"import_name": "CDC_OzoneCounty",
"curator_emails": [
"[email protected]"
],
"provenance_url": "https://data.cdc.gov/browse?category=Environmental+Health+%26+Toxicology",
"provenance_description": "Environmental Health Toxicology",
"scripts": [
"parse_air_quality.py CDC_OzoneCounty"
],
"import_inputs": [
{
"template_mcf": "OzoneCountyPollution.tmcf",
"cleaned_csv": "output/OzoneCounty.csv"
}

],
"cron_schedule": "0 1 5 * *"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@ def clean_air_quality_data(file_path, output_file, importname):
elif "County" in file and "Ozone" in file:
data["statefips"] = data["statefips"].astype(
str).str.zfill(2)
print("checkingggg")
data["countyfips"] = data["countyfips"].astype(
str).str.zfill(3)
data["dcid"] = "geoId/" + data["statefips"] + data[
Expand Down

0 comments on commit 27721f0

Please sign in to comment.