Skip to content

Commit 521c506

Browse files
author
reda
committed
#update common data to support counties :
- add counties data and scripts - remove census tracts scripts and data
1 parent cd18b08 commit 521c506

21 files changed

Lines changed: 152 additions & 474 deletions

.gitattributes

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
census/*.zip filter=lfs diff=lfs merge=lfs -text
2-
census-2017/*.zip filter=lfs diff=lfs merge=lfs -text
1+
counties/*.zip filter=lfs diff=lfs merge=lfs -text

README.md

Lines changed: 29 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,16 @@ To actually unzip the ned and nlcd tiles, you can use the provided script
7272

7373
This will extract all the ned and nlcd zip files in place.
7474

75-
### Extracting the census tract zip file
75+
### Extracting the county zip file
7676

77-
To actually unzip the census tract json files from the zip file, you can use the
78-
provided script `data/extract_census.py`:
77+
To only unzip the county json files from the zip file, you can use the
78+
provided script `script/extract_counties_json.py`:
7979

8080
```
81-
python extract_census.py
81+
python extract_counties_json.py --extract
8282
```
8383

84-
This will extract all the census tract json files from the zip file in place.
84+
This will extract all counties json files from the zip file in place.
8585

8686

8787
### Population data
@@ -114,10 +114,10 @@ This also means a specific process for plugging the geo data for use by these SA
114114
main SAS repository:
115115
- `data/geo/ned/` pointing to `Common-Data/data/ned/`
116116
- `data/geo/nlcd/` pointing to `Common-Data/data/nlcd/`
117-
- `data/census_tracts/` pointing to `Common-Data/data/census/`
117+
- `data/counties/` pointing to `Common-Data/data/counties/`
118118

119119
+ The last option is to copy (or move) the extracted files into a folder `data/geo/ned/`,
120-
`data/geo/nlcd` and `data/census_tracts` of the SAS repository (which are the default
120+
`data/geo/nlcd` and `data/counties` of the SAS repository (which are the default
121121
target of the CONFIG.py file).
122122

123123

@@ -130,15 +130,15 @@ It is best to use the provided drivers found in the [`winnf`](src/README.md) mod
130130
import winnf
131131
from winnf.geo import terrain
132132
from winnf.geo import nlcd
133-
from winnf.pop import census
133+
from winnf.pop import county
134134

135135
# Initialize the module data location.
136136
winnf.SetGeoBaseDir('/winnforum/Common-Data/data')
137137

138138
# Create drivers towards the geo data
139139
terrain_driver = terrain.TerrainDriver()
140140
nlcd_driver = nlcd.NlcdDriver()
141-
census_driver = census.CensusTractDriver()
141+
county_driver = county.CountyDriver()
142142

143143
# Read the data.
144144
ned_data = terrain_driver.GetTerrainElevation(lats, lons)
@@ -201,19 +201,19 @@ The extraction generation script have been updated accordingly.
201201
Note: The data source is from 2001 with a reprocess in 2008.
202202

203203

204-
### USGS Census Tract Data
204+
### County Data
205205

206-
The [data/census/](data/census) folder contains the data for the 2010 USGS Census tract data
207-
in geojson format. The 2010 census tract data is required as per the FCC rule part.96 requirements.
206+
The [data/counties/] folder contains the data for the 2017 FCC county data
207+
in geojson format. The 2017 county is required as per the FCC rule part.96 requirements.
208208

209-
All the USGS census tract data are stored in one census tract per file in geojson format with
210-
the file name being the fips code (aka. GEOID in the census tract data term) of the
211-
corresponding census tract. For example, for a census tract with "STATEFP"="12",
209+
All the county data are stored in one county per file in geojson format with
210+
the file name being the fips code (aka. GEOID in the coutny term) of the
211+
corresponding county. For example, for a county with "STATEFP"="12",
212212
"COUNTYFP"="057","TRACTCE"="013312","GEOID"="12057013312", the file name is `12057013312.json`.
213213

214214
They can be displayed in any web site with geojson display capability.
215215

216-
Census tract data is used for calculations in, for example, PPA reference model.
216+
County data is used for calculations in, for example, PPA reference model.
217217

218218
## Adding new geo files
219219

@@ -235,3 +235,16 @@ and generate the data that are provided by the `Common-Data` repository.
235235
You **DO NOT need** to run those scripts unless you want to verify the process.
236236

237237
See the [scripts/README.md](scripts/README.md) file.
238+
239+
## Counties
240+
The [data/counties/] folder contains the data for the 2017 defined using the United States Census Bureau’s 2017 counties
241+
in geojson format. The 2017 county data is required as per the FCC rule part.96 requirements.
242+
243+
All the county data are stored in one county per file in geojson format with
244+
the file name being the fips code (aka. GEOID in the county data term) of the
245+
corresponding county. For example, for a county with "STATEFP"="12",
246+
"COUNTYFP"="057","TRACTCE"="013312","GEOID"="12057013312", the file name is `12057013312.json`.
247+
248+
They can be displayed in any web site with geojson display capability.
249+
250+
county data is used for calculations in, for example, PPA reference model.

data/census/.gitignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

data/census/census0.zip

Lines changed: 0 additions & 3 deletions
This file was deleted.

data/census/census1.zip

Lines changed: 0 additions & 3 deletions
This file was deleted.

data/census/census2.zip

Lines changed: 0 additions & 3 deletions
This file was deleted.

data/census/census3.zip

Lines changed: 0 additions & 3 deletions
This file was deleted.

data/census/census4.zip

Lines changed: 0 additions & 3 deletions
This file was deleted.

data/census/census5.zip

Lines changed: 0 additions & 3 deletions
This file was deleted.

data/census/census6.zip

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)