mirror of
https://github.com/dataforcanada/d4c-datapkg-statistical.git
synced 2026-06-13 14:10:55 +02:00
Initial commit
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
# TODO
|
||||
- Get download links for 2001 and 2006 Census
|
||||
- For `process_2021.ipynb`
|
||||
- Finish processing CMA
|
||||
- Finish processing HR and Local health integration networks
|
||||
@@ -0,0 +1,4 @@
|
||||
### 2001 ###
|
||||
|
||||
# https://www12.statcan.gc.ca/english/census01/products/standard/popdwell/Tables.cfm
|
||||
# This one does not have all geographic levels as CSV: https://www12.statcan.gc.ca/census-recensement/2011/dp-pd/prof/details/download-telecharger/comprehensive/comp-csv-tab-dwnld-tlchrgr.cfm?Lang=E#tabs2011
|
||||
@@ -0,0 +1,4 @@
|
||||
### 2006 ###
|
||||
|
||||
# https://www12.statcan.gc.ca/census-recensement/2006/dp-pd/prof/rel/index-eng.cfm
|
||||
# This one does not have all geographic levels as CSV: https://www12.statcan.gc.ca/census-recensement/2011/dp-pd/prof/details/download-telecharger/comprehensive/comp-csv-tab-dwnld-tlchrgr.cfm?Lang=E#tabs2011
|
||||
@@ -0,0 +1,45 @@
|
||||
### 2011 ###
|
||||
|
||||
# https://www12.statcan.gc.ca/census-recensement/2011/dp-pd/prof/details/download-telecharger/comprehensive/comp-csv-tab-dwnld-tlchrgr.cfm?Lang=E#tabs2011
|
||||
|
||||
# Canada, provinces, territories (PRs) (98-316-XWE2011001-101_CSV.zip)
|
||||
https://archive.org/download/canadas-2011-census-of-population/98-316-XWE2011001-101_CSV.zip https://zenodo.org/records/15344413/files/98-316-XWE2011001-101_CSV.zip?download=1 https://data.dataforcanada.org/archive/statistics_canada/census_of_population/2011/98-316-XWE2011001-101_CSV.zip
|
||||
|
||||
# Census divisions (CDs) (98-316-XWE2011001-701_CSV.zip)
|
||||
https://archive.org/download/canadas-2011-census-of-population/98-316-XWE2011001-701_CSV.zip https://zenodo.org/records/15344413/files/98-316-XWE2011001-701_CSV.zip?download=1 https://data.dataforcanada.org/archive/statistics_canada/census_of_population/2011/98-316-XWE2011001-701_CSV.zip
|
||||
|
||||
# Census subdivisions (CSDs) (98-316-XWE2011001-301_CSV.zip)
|
||||
https://archive.org/download/canadas-2011-census-of-population/98-316-XWE2011001-301_CSV.zip https://zenodo.org/records/15344413/files/98-316-XWE2011001-301_CSV.zip?download=1 https://data.dataforcanada.org/archive/statistics_canada/census_of_population/2011/98-316-XWE2011001-301_CSV.zip
|
||||
|
||||
# Census metropolitan areas (CMAs), tracted census agglomerations (CAs) (98-316-XWE2011001-201_CSV.zip)
|
||||
https://archive.org/download/canadas-2011-census-of-population/98-316-XWE2011001-201_CSV.zip https://zenodo.org/records/15344413/files/98-316-XWE2011001-201_CSV.zip?download=1 https://data.dataforcanada.org/archive/statistics_canada/census_of_population/2011/98-316-XWE2011001-201_CSV.zip
|
||||
|
||||
# Census tracts (CTs) (98-316-XWE2011001-401_CSV.zip)
|
||||
https://archive.org/download/canadas-2011-census-of-population/98-316-XWE2011001-401_CSV.zip https://zenodo.org/records/15344413/files/98-316-XWE2011001-401_CSV.zip?download=1 https://data.dataforcanada.org/archive/statistics_canada/census_of_population/2011/98-316-XWE2011001-401_CSV.zip
|
||||
|
||||
# Federal electoral districts (FEDs) (2003 representation order) (98-316-XWE2011001-501_CSV.zip)
|
||||
https://archive.org/download/canadas-2011-census-of-population/98-316-XWE2011001-501_CSV.zip https://zenodo.org/records/15344413/files/98-316-XWE2011001-501_CSV.zip?download=1 https://data.dataforcanada.org/archive/statistics_canada/census_of_population/2011/98-316-XWE2011001-501_CSV.zip
|
||||
|
||||
# Federal electoral districts (FEDs) (2013 representation order) (98-316-XWE2011001-511_CSV.zip)
|
||||
https://archive.org/download/canadas-2011-census-of-population/98-316-XWE2011001-511_CSV.zip https://zenodo.org/records/15344413/files/98-316-XWE2011001-511_CSV.zip?download=1 https://data.dataforcanada.org/archive/statistics_canada/census_of_population/2011/98-316-XWE2011001-511_CSV.zip
|
||||
|
||||
# Economic regions (ERs) (98-316-XWE2011001-901_CSV.zip)
|
||||
https://archive.org/download/canadas-2011-census-of-population/98-316-XWE2011001-901_CSV.zip https://zenodo.org/records/15344413/files/98-316-XWE2011001-901_CSV.zip?download=1 https://data.dataforcanada.org/archive/statistics_canada/census_of_population/2011/98-316-XWE2011001-901_CSV.zip
|
||||
|
||||
# Designated places (DPLs) (98-316-XWE2011001-1301_CSV.zip)
|
||||
https://archive.org/download/canadas-2011-census-of-population/98-316-XWE2011001-1301_CSV.zip https://zenodo.org/records/15344413/files/98-316-XWE2011001-1301_CSV.zip?download=1 https://data.dataforcanada.org/archive/statistics_canada/census_of_population/2011/98-316-XWE2011001-1301_CSV.zip
|
||||
|
||||
# Population centres (POPCTRs) (98-316-XWE2011001-801_CSV.zip)
|
||||
https://archive.org/download/canadas-2011-census-of-population/98-316-XWE2011001-801_CSV.zip https://zenodo.org/records/15344413/files/98-316-XWE2011001-801_CSV.zip?download=1 https://data.dataforcanada.org/archive/statistics_canada/census_of_population/2011/98-316-XWE2011001-801_CSV.zip
|
||||
|
||||
# Dissemination areas (DAs) (98-316-XWE2011001-1501_CSV.zip)
|
||||
https://archive.org/download/canadas-2011-census-of-population/98-316-XWE2011001-1501_CSV.zip https://zenodo.org/records/15344413/files/98-316-XWE2011001-1501_CSV.zip?download=1 https://data.dataforcanada.org/archive/statistics_canada/census_of_population/2011/98-316-XWE2011001-1501_CSV.zip
|
||||
|
||||
# Dissolved census subdivisions (Dissolved CSDs) (98-316-XWE2011001-1401_CSV.zip)
|
||||
https://archive.org/download/canadas-2011-census-of-population/98-316-XWE2011001-1401_CSV.zip https://zenodo.org/records/15344413/files/98-316-XWE2011001-1401_CSV.zip?download=1 https://data.dataforcanada.org/archive/statistics_canada/census_of_population/2011/98-316-XWE2011001-1401_CSV.zip
|
||||
|
||||
# Forward sortation areas (FSAs) (98-316-XWE2011001-1601_CSV.zip)
|
||||
https://archive.org/download/canadas-2011-census-of-population/98-316-XWE2011001-1601_CSV.zip https://zenodo.org/records/15344413/files/98-316-XWE2011001-1601_CSV.zip?download=1 https://data.dataforcanada.org/archive/statistics_canada/census_of_population/2011/98-316-XWE2011001-1601_CSV.zip
|
||||
|
||||
# Health regions (HRs) (December 2013) (98-316-XWE2011001-1701_CSV.zip)
|
||||
https://archive.org/download/canadas-2011-census-of-population/98-316-XWE2011001-1701_CSV.zip https://zenodo.org/records/15344413/files/98-316-XWE2011001-1701_CSV.zip?download=1 https://data.dataforcanada.org/archive/statistics_canada/census_of_population/2011/98-316-XWE2011001-1701_CSV.zip
|
||||
@@ -0,0 +1,31 @@
|
||||
### 2016 ###
|
||||
|
||||
# Canada, provinces, territories (PRs), census divisions (CDs), census subdivisions (CSDs) and dissemination areas (DAs) (98-401-X2016044_eng_CSV.zip)
|
||||
https://archive.org/download/canadas-2016-census-of-population/98-401-X2016044_eng_CSV.zip https://zenodo.org/records/15343658/files/98-401-X2016044_eng_CSV.zip?download=1 https://data.dataforcanada.org/archive/statistics_canada/census_of_population/2016/98-401-X2016044_eng_CSV.zip
|
||||
|
||||
# Census metropolitan areas (CMAs), tracted census agglomerations (CAs) and census tracts (CTs) (98-401-X2016043_eng_CSV.zip)
|
||||
https://archive.org/download/canadas-2016-census-of-population/98-401-X2016043_eng_CSV.zip https://zenodo.org/records/15343658/files/98-401-X2016043_eng_CSV.zip?download=1 https://data.dataforcanada.org/archive/statistics_canada/census_of_population/2016/98-401-X2016043_eng_CSV.zip
|
||||
|
||||
# Economic regions (ERs) (98-401-X2016049_eng_CSV.zip)
|
||||
https://archive.org/download/canadas-2016-census-of-population/98-401-X2016049_eng_CSV.zip https://zenodo.org/records/15343658/files/98-401-X2016049_eng_CSV.zip?download=1 https://data.dataforcanada.org/archive/statistics_canada/census_of_population/2016/98-401-X2016049_eng_CSV.zip
|
||||
|
||||
# Population centres (POPCTRs) (98-401-X2016048_eng_CSV.zip)
|
||||
https://archive.org/download/canadas-2016-census-of-population/98-401-X2016048_eng_CSV.zip https://zenodo.org/records/15343658/files/98-401-X2016048_eng_CSV.zip?download=1 https://data.dataforcanada.org/archive/statistics_canada/census_of_population/2016/98-401-X2016048_eng_CSV.zip
|
||||
|
||||
# Canada, provinces, territories and federal electoral districts (FEDs) (2013 Representation Order) (98-401-X2016045_eng_CSV.zip)
|
||||
https://archive.org/download/canadas-2016-census-of-population/98-401-X2016045_eng_CSV.zip https://zenodo.org/records/15343658/files/98-401-X2016045_eng_CSV.zip?download=1 https://data.dataforcanada.org/archive/statistics_canada/census_of_population/2016/98-401-X2016045_eng_CSV.zip
|
||||
|
||||
# Designated places (DPLs) (98-401-X2016047_eng_CSV.zip)
|
||||
https://archive.org/download/canadas-2016-census-of-population/98-401-X2016047_eng_CSV.zip https://zenodo.org/records/15343658/files/98-401-X2016047_eng_CSV.zip?download=1 https://data.dataforcanada.org/archive/statistics_canada/census_of_population/2016/98-401-X2016047_eng_CSV.zip
|
||||
|
||||
# Aggregate dissemination areas (ADAs) (98-401-X2016050_eng_CSV.zip)
|
||||
https://archive.org/download/canadas-2016-census-of-population/98-401-X2016050_eng_CSV.zip https://zenodo.org/records/15343658/files/98-401-X2016050_eng_CSV.zip?download=1 https://data.dataforcanada.org/archive/statistics_canada/census_of_population/2016/98-401-X2016050_eng_CSV.zip
|
||||
|
||||
# Forward Sortation Areas (FSAs) (98-401-X2016046_eng_CSV.zip)
|
||||
https://archive.org/download/canadas-2016-census-of-population/98-401-X2016046_eng_CSV.zip https://zenodo.org/records/15343658/files/98-401-X2016046_eng_CSV.zip?download=1 https://data.dataforcanada.org/archive/statistics_canada/census_of_population/2016/98-401-X2016046_eng_CSV.zip
|
||||
|
||||
# Dissolved Census subdivisions (CSDs) (98-401-X2016057_eng_CSV.zip)
|
||||
https://archive.org/download/canadas-2016-census-of-population/98-401-X2016057_eng_CSV.zip https://zenodo.org/records/15343658/files/98-401-X2016057_eng_CSV.zip?download=1 https://data.dataforcanada.org/archive/statistics_canada/census_of_population/2016/98-401-X2016057_eng_CSV.zip
|
||||
|
||||
# Health Regions (HRs) (98-401-X2016058_eng_CSV.zip)
|
||||
https://archive.org/download/canadas-2016-census-of-population/98-401-X2016058_eng_CSV.zip https://zenodo.org/records/15343658/files/98-401-X2016058_eng_CSV.zip?download=1 https://data.dataforcanada.org/archive/statistics_canada/census_of_population/2016/98-401-X2016058_eng_CSV.zip
|
||||
@@ -0,0 +1,36 @@
|
||||
### 2021 ###
|
||||
|
||||
# https://www12.statcan.gc.ca/census-recensement/2021/dp-pd/prof/details/download-telecharger.cfm?Lang=E
|
||||
|
||||
# Canada, provinces, territories (PRs), census divisions (CDs), census subdivisions (CSDs) and dissemination areas (DAs) (98-401-X2021006_eng_CSV.zip)
|
||||
https://archive.org/download/canadas-2021-census-of-population/98-401-X2021006_eng_CSV.zip https://zenodo.org/records/15333781/files/98-401-X2021006_eng_CSV.zip?download=1 https://data.dataforcanada.org/archive/statistics_canada/census_of_population/2021/98-401-X2021006_eng_CSV.zip
|
||||
|
||||
# Census metropolitan areas (CMAs), tracted census agglomerations (CAs) and census tracts (CTs) (98-401-X2021007_eng_CSV.zip)
|
||||
https://archive.org/download/canadas-2021-census-of-population/98-401-X2021007_eng_CSV.zip https://zenodo.org/records/15333781/files/98-401-X2021007_eng_CSV.zip?download=1 https://data.dataforcanada.org/archive/statistics_canada/census_of_population/2021/98-401-X2021007_eng_CSV.zip
|
||||
|
||||
# Economic regions (ERs) (98-401-X2021008_eng_CSV.zip)
|
||||
https://archive.org/download/canadas-2021-census-of-population/98-401-X2021008_eng_CSV.zip https://zenodo.org/records/15333781/files/98-401-X2021008_eng_CSV.zip?download=1 https://data.dataforcanada.org/archive/statistics_canada/census_of_population/2021/98-401-X2021008_eng_CSV.zip
|
||||
|
||||
# Population centres (POPCTRs) (98-401-X2021009_eng_CSV.zip)
|
||||
https://archive.org/download/canadas-2021-census-of-population/98-401-X2021009_eng_CSV.zip https://zenodo.org/records/15333781/files/98-401-X2021009_eng_CSV.zip?download=1 https://data.dataforcanada.org/archive/statistics_canada/census_of_population/2021/98-401-X2021009_eng_CSV.zip
|
||||
|
||||
# Federal electoral districts, 2013 representation order (98-401-X2021010_eng_CSV.zip)
|
||||
https://archive.org/download/canadas-2021-census-of-population/98-401-X2021010_eng_CSV.zip https://zenodo.org/records/15333781/files/98-401-X2021010_eng_CSV.zip?download=1 https://data.dataforcanada.org/archive/statistics_canada/census_of_population/2021/98-401-X2021010_eng_CSV.zip
|
||||
|
||||
# Federal electoral districts, 2023 representation order (98-401-X2021029_eng_CSV.zip)
|
||||
https://archive.org/download/canadas-2021-census-of-population/98-401-X2021029_eng_CSV.zip https://zenodo.org/records/15333781/files/98-401-X2021029_eng_CSV.zip?download=1 https://data.dataforcanada.org/archive/statistics_canada/census_of_population/2021/98-401-X2021029_eng_CSV.zip
|
||||
|
||||
# Designated places (DPLs) (98-401-X2021011_eng_CSV.zip)
|
||||
https://archive.org/download/canadas-2021-census-of-population/98-401-X2021011_eng_CSV.zip https://zenodo.org/records/15333781/files/98-401-X2021011_eng_CSV.zip?download=1 https://data.dataforcanada.org/archive/statistics_canada/census_of_population/2021/98-401-X2021011_eng_CSV.zip
|
||||
|
||||
# Aggregate dissemination areas (ADAs) (98-401-X2021012_eng_CSV.zip)
|
||||
https://archive.org/download/canadas-2021-census-of-population/98-401-X2021012_eng_CSV.zip https://zenodo.org/records/15333781/files/98-401-X2021012_eng_CSV.zip?download=1 https://data.dataforcanada.org/archive/statistics_canada/census_of_population/2021/98-401-X2021012_eng_CSV.zip
|
||||
|
||||
# Forward Sortation Areas (FSAs) (98-401-X2021013_eng_CSV.zip)
|
||||
https://archive.org/download/canadas-2021-census-of-population/98-401-X2021013_eng_CSV.zip https://zenodo.org/records/15333781/files/98-401-X2021013_eng_CSV.zip?download=1 https://data.dataforcanada.org/archive/statistics_canada/census_of_population/2021/98-401-X2021013_eng_CSV.zip
|
||||
|
||||
# Dissolved census subdivisions (Dissolved CSDs) (98-401-X2021014_eng_CSV.zip)
|
||||
https://archive.org/download/canadas-2021-census-of-population/98-401-X2021014_eng_CSV.zip https://zenodo.org/records/15334624/files/98-401-X2021014_eng_CSV.zip?download=1 https://data.dataforcanada.org/archive/statistics_canada/census_of_population/2021/98-401-X2021014_eng_CSV.zip
|
||||
|
||||
# Health Regions (HRs) and Home and Community Care Support Services (HCCCSS) 2022 (98-401-X2021015_eng_CSV.zip)
|
||||
https://archive.org/download/canadas-2021-census-of-population/98-401-X2021015_eng_CSV.zip https://zenodo.org/records/15333781/files/98-401-X2021015_eng_CSV.zip?download=1 https://data.dataforcanada.org/archive/statistics_canada/census_of_population/2021/98-401-X2021015_eng_CSV.zip
|
||||
Executable
+24
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
if [ ! -d "${DATA_FOLDER}/census_of_population" ]
|
||||
then
|
||||
echo "Making directory ${DATA_FOLDER}/census_of_population/"
|
||||
mkdir -p ${DATA_FOLDER}/census_of_population/{input,extracted,output}/{2021,2016,2011,2001}
|
||||
mkdir -p ${DATA_FOLDER}/census_of_population/output/{2021,2016,2011,2001}/{tabular,spatial}
|
||||
fi
|
||||
|
||||
INPUT_FOLDER="${DATA_FOLDER}/census_of_population/input"
|
||||
|
||||
echo "Downloading 2021 Census of Population"
|
||||
aria2c -x16 -i "${SCRIPT_DIR}/census_of_population/census_of_population_files_2021.txt" --dir=${INPUT_FOLDER}/2021 --auto-file-renaming=false
|
||||
|
||||
echo "Downloading 2016 Census of Population"
|
||||
aria2c -x16 -i "${SCRIPT_DIR}/census_of_population/census_of_population_files_2016.txt" --dir=${INPUT_FOLDER}/2016 --auto-file-renaming=false
|
||||
|
||||
echo "Downloading 2011 Census of Population"
|
||||
aria2c -x16 -i "${SCRIPT_DIR}/census_of_population/census_of_population_files_2011.txt" --dir=${INPUT_FOLDER}/2011 --auto-file-renaming=false
|
||||
|
||||
#echo "Downloading 2006 Census of Population"
|
||||
#aria2c -x16 -i "${SCRIPT_DIR}/census_of_population/census_of_population_files_2006.txt" --dir=${INPUT_FOLDER}/2006 --auto-file-renaming=false
|
||||
#
|
||||
#echo "Downloading 2001 Census of Population"
|
||||
#aria2c -x16 -i "${SCRIPT_DIR}/census_of_population/census_of_population_files_2001.txt" --dir=${INPUT_FOLDER}/2001 --auto-file-renaming=false
|
||||
Executable
+155
@@ -0,0 +1,155 @@
|
||||
#!/bin/bash
|
||||
|
||||
INPUT_FOLDER="${DATA_FOLDER}/census_of_population/input"
|
||||
EXTRACTED_FOLDER="${DATA_FOLDER}/census_of_population/extracted"
|
||||
|
||||
process_2021() {
|
||||
echo "Processing 2021 Census of Population"
|
||||
jupyter execute census_of_population/process_2021.ipynb
|
||||
}
|
||||
|
||||
extract_2021() {
|
||||
local INPUT_FOLDER="${INPUT_FOLDER}/2021"
|
||||
local EXTRACTED_FOLDER="${EXTRACTED_FOLDER}/2021"
|
||||
echo "Extracting Canada, provinces, territories (PRs), census divisions (CDs), census subdivisions (CSDs) and dissemination areas (DAs) (${INPUT_FOLDER}/98-401-X2021006_eng_CSV.zip). Extracting to ${EXTRACTED_FOLDER}/98-401-X2021006_eng_CSV"
|
||||
mkdir -p "${EXTRACTED_FOLDER}/98-401-X2021006_eng_CSV"
|
||||
unzip -q -n ${INPUT_FOLDER}/98-401-X2021006_eng_CSV.zip -d ${EXTRACTED_FOLDER}/98-401-X2021006_eng_CSV
|
||||
|
||||
echo "Extracting Census metropolitan areas (CMAs), tracted census agglomerations (CAs) and census tracts (CTs) (${INPUT_FOLDER}/98-401-X2021007_eng_CSV.zip). Extracting to ${EXTRACTED_FOLDER}/98-401-X2021007_eng_CSV"
|
||||
mkdir -p "${EXTRACTED_FOLDER}/98-401-X2021007_eng_CSV"
|
||||
unzip -q -n ${INPUT_FOLDER}/98-401-X2021007_eng_CSV.zip -d ${EXTRACTED_FOLDER}/98-401-X2021007_eng_CSV
|
||||
|
||||
echo "Extracting Economic regions (ERs) (${INPUT_FOLDER}/98-401-X2021008_eng_CSV.zip). Extracting to ${EXTRACTED_FOLDER}/98-401-X2021008_eng_CSV"
|
||||
mkdir -p "${EXTRACTED_FOLDER}/98-401-X2021008_eng_CSV"
|
||||
unzip -q -n ${INPUT_FOLDER}/98-401-X2021008_eng_CSV.zip -d ${EXTRACTED_FOLDER}/98-401-X2021008_eng_CSV
|
||||
|
||||
echo "Extracting Population centres (POPCTRs) (${INPUT_FOLDER}/98-401-X2021009_eng_CSV.zip). Extracting to ${EXTRACTED_FOLDER}/98-401-X2021009_eng_CSV"
|
||||
mkdir -p "${EXTRACTED_FOLDER}/98-401-X2021009_eng_CSV"
|
||||
unzip -q -n ${INPUT_FOLDER}/98-401-X2021009_eng_CSV.zip -d ${EXTRACTED_FOLDER}/98-401-X2021009_eng_CSV
|
||||
|
||||
echo "Extracting Federal electoral districts, 2013 representation order (${INPUT_FOLDER}/98-401-X2021010_eng_CSV.zip). Extracting to ${EXTRACTED_FOLDER}/98-401-X2021010_eng_CSV"
|
||||
mkdir -p "${EXTRACTED_FOLDER}/98-401-X2021010_eng_CSV"
|
||||
unzip -q -n ${INPUT_FOLDER}/98-401-X2021010_eng_CSV.zip -d ${EXTRACTED_FOLDER}/98-401-X2021010_eng_CSV
|
||||
|
||||
echo "Extracting Federal electoral districts, 2023 representation order (${INPUT_FOLDER}/98-401-X2021029_eng_CSV.zip). Extracting to ${EXTRACTED_FOLDER}/98-401-X2021029_eng_CSV"
|
||||
mkdir -p "${EXTRACTED_FOLDER}/98-401-X2021029_eng_CSV"
|
||||
unzip -q -n ${INPUT_FOLDER}/98-401-X2021029_eng_CSV.zip -d ${EXTRACTED_FOLDER}/98-401-X2021029_eng_CSV
|
||||
|
||||
echo "Extracting Designated places (DPLs) (${INPUT_FOLDER}/98-401-X2021011_eng_CSV.zip). Extracting to ${EXTRACTED_FOLDER}/98-401-X2021011_eng_CSV"
|
||||
mkdir -p "${EXTRACTED_FOLDER}/98-401-X2021011_eng_CSV"
|
||||
unzip -q -n ${INPUT_FOLDER}/98-401-X2021011_eng_CSV.zip -d ${EXTRACTED_FOLDER}/98-401-X2021011_eng_CSV
|
||||
|
||||
echo "Extracting Aggregate dissemination areas (ADAs) (${INPUT_FOLDER}/98-401-X2021012_eng_CSV.zip). Extracting to ${EXTRACTED_FOLDER}/98-401-X2021012_eng_CSV"
|
||||
mkdir -p "${EXTRACTED_FOLDER}/98-401-X2021012_eng_CSV"
|
||||
unzip -q -n ${INPUT_FOLDER}/98-401-X2021012_eng_CSV.zip -d ${EXTRACTED_FOLDER}/98-401-X2021012_eng_CSV
|
||||
|
||||
echo "Extracting Forward Sortation Areas (FSAs) (${INPUT_FOLDER}/98-401-X2021013_eng_CSV.zip). Extracting to ${EXTRACTED_FOLDER}/98-401-X2021013_eng_CSV"
|
||||
mkdir -p "${EXTRACTED_FOLDER}/98-401-X2021013_eng_CSV"
|
||||
unzip -q -n ${INPUT_FOLDER}/98-401-X2021013_eng_CSV.zip -d ${EXTRACTED_FOLDER}/98-401-X2021013_eng_CSV
|
||||
|
||||
echo "Extracting Dissolved census subdivisions (Dissolved CSDs) (98-401-X2021014_eng_CSV.zip)"
|
||||
mkdir -p "${EXTRACTED_FOLDER}/98-401-X2021014_eng_CSV"
|
||||
unzip -q -n ${INPUT_FOLDER}/98-401-X2021014_eng_CSV.zip -d ${EXTRACTED_FOLDER}/98-401-X2021014_eng_CSV
|
||||
|
||||
echo "Extracting Health Regions (HRs) and Home and Community Care Support Services (HCCCSS) 2022 (${INPUT_FOLDER}/98-401-X2021015_eng_CSV.zip). Extracting to ${EXTRACTED_FOLDER}/98-401-X2021009_eng_CSV"
|
||||
mkdir -p "${EXTRACTED_FOLDER}/98-401-X2021015_eng_CSV"
|
||||
unzip -q -n ${INPUT_FOLDER}/98-401-X2021015_eng_CSV.zip -d ${EXTRACTED_FOLDER}/98-401-X2021015_eng_CSV
|
||||
}
|
||||
|
||||
extract_2016() {
|
||||
local INPUT_FOLDER="${INPUT_FOLDER}/2016"
|
||||
local EXTRACTED_FOLDER="${EXTRACTED_FOLDER}/2016"
|
||||
echo "Extracting Canada, provinces, territories (PRs), census divisions (CDs), census subdivisions (CSDs) and dissemination areas (DAs) (${INPUT_FOLDER}/98-401-X2016044_eng_CSV.zip). Extracting to ${EXTRACTED_FOLDER}/98-401-X2016044_eng_CSV"
|
||||
mkdir -p "${EXTRACTED_FOLDER}/98-401-X2016044_eng_CSV"
|
||||
unzip -q -n ${INPUT_FOLDER}/98-401-X2016044_eng_CSV.zip -d ${EXTRACTED_FOLDER}/98-401-X2016044_eng_CSV
|
||||
|
||||
echo "Extracting Census metropolitan areas (CMAs), tracted census agglomerations (CAs) and census tracts (CTs) (${INPUT_FOLDER}/98-401-X2016044_eng_CSV.zip). Extracting to ${EXTRACTED_FOLDER}/98-401-X2016044_eng_CSV"
|
||||
mkdir -p "${EXTRACTED_FOLDER}/98-401-X2016044_eng_CSV"
|
||||
unzip -q -n ${INPUT_FOLDER}/98-401-X2016044_eng_CSV.zip -d ${EXTRACTED_FOLDER}/98-401-X2016044_eng_CSV
|
||||
|
||||
echo "Extracting Economic regions (ERs) (${INPUT_FOLDER}/98-401-X2016049_eng_CSV.zip). Extracting to ${EXTRACTED_FOLDER}/98-401-X2016049_eng_CSV"
|
||||
mkdir -p "${EXTRACTED_FOLDER}/98-401-X2016049_eng_CSV"
|
||||
unzip -q -n ${INPUT_FOLDER}/98-401-X2016049_eng_CSV.zip -d ${EXTRACTED_FOLDER}/98-401-X2016049_eng_CSV
|
||||
|
||||
echo "Extracting Population centres (POPCTRs) (${INPUT_FOLDER}/98-401-X2016048_eng_CSV.zip). Extracting to ${EXTRACTED_FOLDER}/98-401-X2016048_eng_CSV"
|
||||
mkdir -p "${EXTRACTED_FOLDER}/98-401-X2016048_eng_CSV"
|
||||
unzip -q -n ${INPUT_FOLDER}/98-401-X2016048_eng_CSV.zip -d ${EXTRACTED_FOLDER}/98-401-X2016048_eng_CSV
|
||||
|
||||
echo "Extracting Canada, provinces, territories and federal electoral districts (FEDs) (2013 Representation Order) (${INPUT_FOLDER}/98-401-X2016045_eng_CSV.zip). Extracting to ${EXTRACTED_FOLDER}/98-401-X2016045_eng_CSV"
|
||||
mkdir -p "${EXTRACTED_FOLDER}/98-401-X2016045_eng_CSV"
|
||||
unzip -q -n ${INPUT_FOLDER}/98-401-X2016045_eng_CSV.zip -d ${EXTRACTED_FOLDER}/98-401-X2016045_eng_CSV
|
||||
|
||||
echo "Extracting Designated places (DPLs) (${INPUT_FOLDER}/98-401-X2016047_eng_CSV.zip). Extracting to ${EXTRACTED_FOLDER}/98-401-X2016047_eng_CSV"
|
||||
mkdir -p "${EXTRACTED_FOLDER}/98-401-X2016047_eng_CSV"
|
||||
unzip -q -n ${INPUT_FOLDER}/98-401-X2016047_eng_CSV.zip -d ${EXTRACTED_FOLDER}/98-401-X2016047_eng_CSV
|
||||
|
||||
echo "Extracting Aggregate dissemination areas (ADAs) (${INPUT_FOLDER}/98-401-X2016050_eng_CSV.zip). Extracting to ${EXTRACTED_FOLDER}/98-401-X2016050_eng_CSV"
|
||||
mkdir -p "${EXTRACTED_FOLDER}/98-401-X2016050_eng_CSV"
|
||||
unzip -q -n ${INPUT_FOLDER}/98-401-X2016050_eng_CSV.zip -d ${EXTRACTED_FOLDER}/98-401-X2016050_eng_CSV
|
||||
|
||||
echo "Extracting Forward Sortation Areas (FSAs) (${INPUT_FOLDER}/98-401-X2016046_eng_CSV.zip). Extracting to ${EXTRACTED_FOLDER}/98-401-X2016046_eng_CSV"
|
||||
mkdir -p "${EXTRACTED_FOLDER}/98-401-X2016046_eng_CSV"
|
||||
unzip -q -n ${INPUT_FOLDER}/98-401-X2016046_eng_CSV.zip -d ${EXTRACTED_FOLDER}/98-401-X2016046_eng_CSV
|
||||
|
||||
echo "Extracting Health Regions (HRs) (${INPUT_FOLDER}/98-401-X2016058_eng_CSV.zip). Extracting to ${EXTRACTED_FOLDER}/98-401-X2016058_eng_CSV"
|
||||
mkdir -p "${EXTRACTED_FOLDER}/98-401-X2016058_eng_CSV"
|
||||
unzip -q -n ${INPUT_FOLDER}/98-401-X2016058_eng_CSV.zip -d ${EXTRACTED_FOLDER}/98-401-X2016058_eng_CSV
|
||||
}
|
||||
|
||||
extract_2011() {
|
||||
local INPUT_FOLDER="${INPUT_FOLDER}/2011"
|
||||
local EXTRACTED_FOLDER="${EXTRACTED_FOLDER}/2011"
|
||||
|
||||
echo "Extracting Canada, provinces, territories (PRs) (98-316-XWE2011001-101_CSV.zip)"
|
||||
mkdir -p "${EXTRACTED_FOLDER}/98-316-XWE2011001-101_CSV"
|
||||
unzip -q -n ${INPUT_FOLDER}/98-316-XWE2011001-101_CSV.zip -d ${EXTRACTED_FOLDER}/98-316-XWE2011001-101_CSV
|
||||
|
||||
echo "Extracting Census divisions (CDs) (98-316-XWE2011001-701_CSV.zip)"
|
||||
mkdir -p "${EXTRACTED_FOLDER}/98-316-XWE2011001-701_CSV"
|
||||
unzip -q -n ${INPUT_FOLDER}/98-316-XWE2011001-701_CSV.zip -d ${EXTRACTED_FOLDER}/98-316-XWE2011001-701_CSV
|
||||
|
||||
echo "Extracting Census metropolitan areas (CMAs), tracted census agglomerations (CAs) (98-316-XWE2011001-201_CSV.zip)"
|
||||
mkdir -p "${EXTRACTED_FOLDER}/98-316-XWE2011001-201_CSV"
|
||||
unzip -q -n ${INPUT_FOLDER}/98-316-XWE2011001-201_CSV.zip -d ${EXTRACTED_FOLDER}/98-316-XWE2011001-201_CSV
|
||||
|
||||
echo "Extracting Census tracts (CTs) (98-316-XWE2011001-401_CSV.zip)"
|
||||
mkdir -p "${EXTRACTED_FOLDER}/98-316-XWE2011001-401_CSV"
|
||||
unzip -q -n ${INPUT_FOLDER}/98-316-XWE2011001-401_CSV.zip -d ${EXTRACTED_FOLDER}/98-316-XWE2011001-401_CSV
|
||||
|
||||
echo "Extracting Federal electoral districts (2003 representation order) (98-316-XWE2011001-501_CSV.zip)"
|
||||
mkdir -p "${EXTRACTED_FOLDER}/98-316-XWE2011001-501_CSV.zip"
|
||||
unzip -q -n ${INPUT_FOLDER}/98-316-XWE2011001-501_CSV.zip -d ${EXTRACTED_FOLDER}/98-316-XWE2011001-501_CSV.zip
|
||||
|
||||
echo "Extracting Federal electoral districts (2013 representation order) (98-316-XWE2011001-511_CSV.zip)"
|
||||
mkdir -p "${EXTRACTED_FOLDER}/98-316-XWE2011001-511_CSV"
|
||||
unzip -q -n ${INPUT_FOLDER}/98-316-XWE2011001-511_CSV.zip -d ${EXTRACTED_FOLDER}/98-316-XWE2011001-511_CSV
|
||||
|
||||
echo "Extracting Economic regions (ERs) (98-316-XWE2011001-901_CSV.zip)"
|
||||
mkdir -p "${EXTRACTED_FOLDER}/98-316-XWE2011001-901_CSV"
|
||||
unzip -q -n ${INPUT_FOLDER}/98-316-XWE2011001-901_CSV.zip -d ${EXTRACTED_FOLDER}/98-316-XWE2011001-901_CSV
|
||||
|
||||
echo "Extracting Designated places (98-316-XWE2011001-1301_CSV.zip)"
|
||||
mkdir -p "${EXTRACTED_FOLDER}/98-316-XWE2011001-1301_CSV"
|
||||
unzip -q -n ${INPUT_FOLDER}/98-316-XWE2011001-1301_CSV.zip -d ${EXTRACTED_FOLDER}/98-316-XWE2011001-1301_CSV
|
||||
|
||||
echo "Extracting Population centres (POPCTRs) (98-316-XWE2011001-801_CSV.zip)"
|
||||
mkdir -p "${EXTRACTED_FOLDER}/98-316-XWE2011001-801_CSV"
|
||||
unzip -q -n ${INPUT_FOLDER}/98-316-XWE2011001-801_CSV.zip -d ${EXTRACTED_FOLDER}/98-316-XWE2011001-801_CSV
|
||||
}
|
||||
|
||||
extract_2006() {
|
||||
local INPUT_FOLDER="${INPUT_FOLDER}/2006"
|
||||
local EXTRACTED_FOLDER="${EXTRACTED_FOLDER}/2006"
|
||||
}
|
||||
|
||||
extract_2001() {
|
||||
local INPUT_FOLDER="${INPUT_FOLDER}/2001"
|
||||
local EXTRACTED_FOLDER="${EXTRACTED_FOLDER}/2001"
|
||||
}
|
||||
|
||||
extract_2021
|
||||
extract_2016
|
||||
extract_2011
|
||||
extract_2006
|
||||
|
||||
process_2021
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user