mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-23 01:54:18 -08:00
Revert "Comparative Analysis for Score L and CRHB (#1094)"
This reverts commit 452109e8d1
.
This commit is contained in:
parent
452109e8d1
commit
60ae705944
31 changed files with 157 additions and 64506 deletions
|
@ -643,7 +643,7 @@
|
||||||
],
|
],
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"kernelspec": {
|
"kernelspec": {
|
||||||
"display_name": "Python 3",
|
"display_name": "Python 3 (ipykernel)",
|
||||||
"language": "python",
|
"language": "python",
|
||||||
"name": "python3"
|
"name": "python3"
|
||||||
},
|
},
|
||||||
|
@ -657,7 +657,7 @@
|
||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython3",
|
"pygments_lexer": "ipython3",
|
||||||
"version": "3.6.2"
|
"version": "3.7.4"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nbformat": 4,
|
"nbformat": 4,
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,511 +0,0 @@
|
||||||
{
|
|
||||||
"cells": [
|
|
||||||
{
|
|
||||||
"cell_type": "markdown",
|
|
||||||
"metadata": {},
|
|
||||||
"source": [
|
|
||||||
"# Download census tract data from API\n",
|
|
||||||
"\n",
|
|
||||||
" - Available data: https://api.census.gov/data.html\n",
|
|
||||||
" - Variables (aka, fields) you can query for: https://api.census.gov/data/2017/acs/acs5/profile/variables.html\n",
|
|
||||||
" - Browse variables for a place here: https://www.census.gov/acs/www/data/data-tables-and-tools/data-profiles/2014/\n",
|
|
||||||
" - Sample query: https://api.census.gov/data/2017/acs/acs5/profile?get=DP05_0001E&for=tract:400100&in=state:06+county:001\n",
|
|
||||||
" - County FIPS codes: https://www.nrcs.usda.gov/wps/portal/nrcs/detail/?cid=nrcs143_013697\n",
|
|
||||||
" \n",
|
|
||||||
"#### Variables name format\n",
|
|
||||||
"\n",
|
|
||||||
"More info: https://www.census.gov/data/developers/data-sets/acs-5year/data-notes.html\n",
|
|
||||||
"\n",
|
|
||||||
"variable name format: [TableID]_[RowNumber][VariableType]\n",
|
|
||||||
"\n",
|
|
||||||
"Example: Variable DP02_0002PE, \"Family households (families)\", represents the percent estimate for table DP02 row number 2.\n",
|
|
||||||
"\n",
|
|
||||||
"DP (Data Profile): Table type containing broad social, economic, housing, and demographic information in a total of four profiles.\n",
|
|
||||||
"\n",
|
|
||||||
" - DP02: Social Characteristics — includes Education, Marital Status, Relationships, Fertility, Grandparents... \n",
|
|
||||||
" - DP03: Economic Characteristics — includes Income, Employment, Occupation, Commuting to Work... \n",
|
|
||||||
" - DP04: Housing Characteristics — includes Occupancy and Structure, Housing Value and Costs, Utilities... \n",
|
|
||||||
" - DP05: Demographic Characteristics — includes Sex and Age, Race, Hispanic Origin, Housing Units... \n",
|
|
||||||
"\n",
|
|
||||||
"Variable suffixes:\n",
|
|
||||||
"\n",
|
|
||||||
" - E = estimate\n",
|
|
||||||
" - M = margin of error\n",
|
|
||||||
" - PE = percent estimate (of total)\n",
|
|
||||||
" - PM = margin of error for corresponding PE\n",
|
|
||||||
" - A = annotation"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"cell_type": "code",
|
|
||||||
"execution_count": 2,
|
|
||||||
"metadata": {},
|
|
||||||
"outputs": [],
|
|
||||||
"source": [
|
|
||||||
"import geopandas as gpd\n",
|
|
||||||
"import getcensus as gc\n",
|
|
||||||
"import os\n",
|
|
||||||
"import pandas as pd\n",
|
|
||||||
"from shapely import geometry\n",
|
|
||||||
"# from keys import census_api_key"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"cell_type": "code",
|
|
||||||
"execution_count": 3,
|
|
||||||
"metadata": {},
|
|
||||||
"outputs": [],
|
|
||||||
"source": [
|
|
||||||
"# which census dataset\n",
|
|
||||||
"dataset = 'acs/acs5'\n",
|
|
||||||
"census_api_key = '7679cb7920268e39c115f3c753fa2885aa9fb0cf'\n",
|
|
||||||
"# which vintage year\n",
|
|
||||||
"year = 2017\n",
|
|
||||||
"\n",
|
|
||||||
"# which census variables to retrieve for each tract\n",
|
|
||||||
"variables = {'DP05_0001E':'total_pop', #total pop\n",
|
|
||||||
" 'DP05_0018E':'median_age', #median age\n",
|
|
||||||
" 'DP05_0071PE':'pct_hispanic', #pct pop hispanic or latino\n",
|
|
||||||
" 'DP05_0077PE':'pct_white', #pct pop non-hispanic white alone\n",
|
|
||||||
" 'DP05_0078PE':'pct_black', #pct pop non-hispanic black\n",
|
|
||||||
" 'DP05_0080E':'pct_asian', #pct pop non-hispanic asian\n",
|
|
||||||
" 'DP05_0002PE':'pct_male', #pct pop male\n",
|
|
||||||
" 'DP04_0007PE':'pct_single_family_home', #pct single family detached homes\n",
|
|
||||||
" 'DP04_0089E':'med_home_value', #median value of owner occupied units (dollars)\n",
|
|
||||||
" 'DP04_0037E':'med_rooms_per_home', #median number of rooms in house\n",
|
|
||||||
" 'DP04_0026PE':'pct_built_before_1940', #pct structure built 1939 or earlier\n",
|
|
||||||
" 'DP04_0047PE':'pct_renting', #pct renter-occupied housing units\n",
|
|
||||||
" 'DP04_0005E':'rental_vacancy_rate', #rental vacancy rate\n",
|
|
||||||
" 'DP04_0049E':'avg_renter_household_size', #average household size of renter-occupied housing units\n",
|
|
||||||
" 'DP04_0134E':'med_gross_rent', #median gross rent (dollars)\n",
|
|
||||||
" 'DP03_0062E':'med_household_income', #median household income\n",
|
|
||||||
" 'DP03_0025E':'mean_commute_time', #mean travel time to work\n",
|
|
||||||
" 'DP03_0019PE':'pct_commute_drive_alone', #pct commute drove alone\n",
|
|
||||||
" 'DP03_0128PE':'pct_below_poverty', #pct people with income below povery level\n",
|
|
||||||
" 'DP02_0057PE':'pct_college_grad_student', #pct who are students currently enrolled in college or grad school\n",
|
|
||||||
" 'DP02_0079PE':'pct_same_residence_year_ago', #pct residence 1 year ago was same house\n",
|
|
||||||
" 'DP02_0067PE':'pct_bachelors_degree', #pct bachelor's degree or higher\n",
|
|
||||||
" 'DP02_0111PE':'pct_english_only', #pct with english only language spoken at home\n",
|
|
||||||
" 'DP02_0092PE':'pct_foreign_born'} #pct of population foreign born\n",
|
|
||||||
"\n",
|
|
||||||
"# data directories\n",
|
|
||||||
"tracts_path = 'tl_2018_25_tract'\n",
|
|
||||||
"output_path = 'census_tracts_data.geojson'"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"cell_type": "code",
|
|
||||||
"execution_count": 4,
|
|
||||||
"metadata": {},
|
|
||||||
"outputs": [
|
|
||||||
{
|
|
||||||
"name": "stdout",
|
|
||||||
"output_type": "stream",
|
|
||||||
"text": [
|
|
||||||
"total_pop\tEstimate!!SEX AND AGE!!Total population\n",
|
|
||||||
"median_age\tEstimate!!SEX AND AGE!!Total population!!Median age (years)\n",
|
|
||||||
"pct_hispanic\tPercent Estimate!!HISPANIC OR LATINO AND RACE!!Total population!!Hispanic or Latino (of any race)\n",
|
|
||||||
"pct_white\tPercent Estimate!!HISPANIC OR LATINO AND RACE!!Total population!!Not Hispanic or Latino!!White alone\n",
|
|
||||||
"pct_black\tPercent Estimate!!HISPANIC OR LATINO AND RACE!!Total population!!Not Hispanic or Latino!!Black or African American alone\n",
|
|
||||||
"pct_asian\tEstimate!!HISPANIC OR LATINO AND RACE!!Total population!!Not Hispanic or Latino!!Asian alone\n",
|
|
||||||
"pct_male\tPercent Estimate!!SEX AND AGE!!Total population!!Male\n",
|
|
||||||
"pct_single_family_home\tPercent Estimate!!UNITS IN STRUCTURE!!Total housing units!!1-unit, detached\n",
|
|
||||||
"med_home_value\tEstimate!!VALUE!!Owner-occupied units!!Median (dollars)\n",
|
|
||||||
"med_rooms_per_home\tEstimate!!ROOMS!!Total housing units!!Median rooms\n",
|
|
||||||
"pct_built_before_1940\tPercent Estimate!!YEAR STRUCTURE BUILT!!Total housing units!!Built 1939 or earlier\n",
|
|
||||||
"pct_renting\tPercent Estimate!!HOUSING TENURE!!Occupied housing units!!Renter-occupied\n",
|
|
||||||
"rental_vacancy_rate\tEstimate!!HOUSING OCCUPANCY!!Total housing units!!Rental vacancy rate\n",
|
|
||||||
"avg_renter_household_size\tEstimate!!HOUSING TENURE!!Occupied housing units!!Average household size of renter-occupied unit\n",
|
|
||||||
"med_gross_rent\tEstimate!!GROSS RENT!!Occupied units paying rent!!Median (dollars)\n",
|
|
||||||
"med_household_income\tEstimate!!INCOME AND BENEFITS (IN 2017 INFLATION-ADJUSTED DOLLARS)!!Total households!!Median household income (dollars)\n",
|
|
||||||
"mean_commute_time\tEstimate!!COMMUTING TO WORK!!Workers 16 years and over!!Mean travel time to work (minutes)\n",
|
|
||||||
"pct_commute_drive_alone\tPercent Estimate!!COMMUTING TO WORK!!Workers 16 years and over!!Car, truck, or van -- drove alone\n",
|
|
||||||
"pct_below_poverty\tPercent Estimate!!PERCENTAGE OF FAMILIES AND PEOPLE WHOSE INCOME IN THE PAST 12 MONTHS IS BELOW THE POVERTY LEVEL!!All people\n",
|
|
||||||
"pct_college_grad_student\tPercent Estimate!!SCHOOL ENROLLMENT!!Population 3 years and over enrolled in school!!College or graduate school\n",
|
|
||||||
"pct_same_residence_year_ago\tPercent Estimate!!RESIDENCE 1 YEAR AGO!!Population 1 year and over!!Same house\n",
|
|
||||||
"pct_bachelors_degree\tPercent Estimate!!EDUCATIONAL ATTAINMENT!!Population 25 years and over!!Percent bachelor's degree or higher\n",
|
|
||||||
"pct_english_only\tPercent Estimate!!LANGUAGE SPOKEN AT HOME!!Population 5 years and over!!English only\n",
|
|
||||||
"pct_foreign_born\tPercent Estimate!!PLACE OF BIRTH!!Total population!!Foreign born\n"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"source": [
|
|
||||||
"# download and display census descriptions of each variable\n",
|
|
||||||
"variable_descriptions = gc.get_census_variable_descriptions(dataset=dataset, \n",
|
|
||||||
" year=year, \n",
|
|
||||||
" variables=variables)\n",
|
|
||||||
"for v, d in variable_descriptions.items():\n",
|
|
||||||
" print('{}\\t{}'.format(variables[v], d['label']))"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"cell_type": "markdown",
|
|
||||||
"metadata": {},
|
|
||||||
"source": [
|
|
||||||
"## Get vars from ACS DP"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"cell_type": "code",
|
|
||||||
"execution_count": 4,
|
|
||||||
"metadata": {},
|
|
||||||
"outputs": [
|
|
||||||
{
|
|
||||||
"data": {
|
|
||||||
"text/plain": [
|
|
||||||
"1478"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"execution_count": 4,
|
|
||||||
"metadata": {},
|
|
||||||
"output_type": "execute_result"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"source": [
|
|
||||||
"# load the tracts in our study area\n",
|
|
||||||
"gdf = gpd.read_file(tracts_path).sort_values(by='GEOID')\n",
|
|
||||||
"len(gdf)"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"cell_type": "code",
|
|
||||||
"execution_count": 5,
|
|
||||||
"metadata": {},
|
|
||||||
"outputs": [
|
|
||||||
{
|
|
||||||
"name": "stdout",
|
|
||||||
"output_type": "stream",
|
|
||||||
"text": [
|
|
||||||
"Downloading 24 census vars in 25001 for 57 tracts.\n",
|
|
||||||
"Downloading 24 census vars in 25003 for 39 tracts.\n",
|
|
||||||
"Downloading 24 census vars in 25005 for 126 tracts.\n",
|
|
||||||
"Downloading 24 census vars in 25007 for 5 tracts.\n",
|
|
||||||
"Downloading 24 census vars in 25009 for 163 tracts.\n",
|
|
||||||
"Downloading 24 census vars in 25011 for 18 tracts.\n",
|
|
||||||
"Downloading 24 census vars in 25013 for 103 tracts.\n",
|
|
||||||
"Downloading 24 census vars in 25015 for 36 tracts.\n",
|
|
||||||
"Downloading 24 census vars in 25017 for 318 tracts.\n",
|
|
||||||
"Downloading 24 census vars in 25019 for 6 tracts.\n",
|
|
||||||
"Downloading 24 census vars in 25021 for 130 tracts.\n",
|
|
||||||
"Downloading 24 census vars in 25023 for 101 tracts.\n",
|
|
||||||
"Downloading 24 census vars in 25025 for 204 tracts.\n",
|
|
||||||
"Downloading 24 census vars in 25027 for 172 tracts.\n",
|
|
||||||
"Wall time: 25.4 s\n"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"source": [
|
|
||||||
"%%time\n",
|
|
||||||
"df = gc.get_census_tracts_data(tract_fips=gdf['GEOID'], api_key=census_api_key, dataset=dataset,\n",
|
|
||||||
" year=year, variables=variables, clean=True)"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"cell_type": "code",
|
|
||||||
"execution_count": 6,
|
|
||||||
"metadata": {},
|
|
||||||
"outputs": [],
|
|
||||||
"source": [
|
|
||||||
"# merge the tracts with the acs variables, rename columns, then make sure everything we merged is the same length\n",
|
|
||||||
"merged = pd.merge(left=gdf.set_index('GEOID'), right=df, how='inner', left_index=True, right_index=True)\n",
|
|
||||||
"merged = merged.rename(columns=variables)\n",
|
|
||||||
"assert len(gdf) == len(df) == len(merged)"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"cell_type": "code",
|
|
||||||
"execution_count": 7,
|
|
||||||
"metadata": {},
|
|
||||||
"outputs": [
|
|
||||||
{
|
|
||||||
"data": {
|
|
||||||
"text/html": [
|
|
||||||
"<div>\n",
|
|
||||||
"<style scoped>\n",
|
|
||||||
" .dataframe tbody tr th:only-of-type {\n",
|
|
||||||
" vertical-align: middle;\n",
|
|
||||||
" }\n",
|
|
||||||
"\n",
|
|
||||||
" .dataframe tbody tr th {\n",
|
|
||||||
" vertical-align: top;\n",
|
|
||||||
" }\n",
|
|
||||||
"\n",
|
|
||||||
" .dataframe thead th {\n",
|
|
||||||
" text-align: right;\n",
|
|
||||||
" }\n",
|
|
||||||
"</style>\n",
|
|
||||||
"<table border=\"1\" class=\"dataframe\">\n",
|
|
||||||
" <thead>\n",
|
|
||||||
" <tr style=\"text-align: right;\">\n",
|
|
||||||
" <th></th>\n",
|
|
||||||
" <th>STATEFP</th>\n",
|
|
||||||
" <th>COUNTYFP</th>\n",
|
|
||||||
" <th>TRACTCE</th>\n",
|
|
||||||
" <th>NAME</th>\n",
|
|
||||||
" <th>NAMELSAD</th>\n",
|
|
||||||
" <th>MTFCC</th>\n",
|
|
||||||
" <th>FUNCSTAT</th>\n",
|
|
||||||
" <th>ALAND</th>\n",
|
|
||||||
" <th>AWATER</th>\n",
|
|
||||||
" <th>INTPTLAT</th>\n",
|
|
||||||
" <th>...</th>\n",
|
|
||||||
" <th>mean_commute_time</th>\n",
|
|
||||||
" <th>pct_commute_drive_alone</th>\n",
|
|
||||||
" <th>pct_below_poverty</th>\n",
|
|
||||||
" <th>pct_college_grad_student</th>\n",
|
|
||||||
" <th>pct_same_residence_year_ago</th>\n",
|
|
||||||
" <th>pct_bachelors_degree</th>\n",
|
|
||||||
" <th>pct_english_only</th>\n",
|
|
||||||
" <th>pct_foreign_born</th>\n",
|
|
||||||
" <th>state</th>\n",
|
|
||||||
" <th>county</th>\n",
|
|
||||||
" </tr>\n",
|
|
||||||
" </thead>\n",
|
|
||||||
" <tbody>\n",
|
|
||||||
" <tr>\n",
|
|
||||||
" <th>25001010100</th>\n",
|
|
||||||
" <td>25</td>\n",
|
|
||||||
" <td>001</td>\n",
|
|
||||||
" <td>010100</td>\n",
|
|
||||||
" <td>101</td>\n",
|
|
||||||
" <td>Census Tract 101</td>\n",
|
|
||||||
" <td>G5020</td>\n",
|
|
||||||
" <td>S</td>\n",
|
|
||||||
" <td>25046218</td>\n",
|
|
||||||
" <td>12765873</td>\n",
|
|
||||||
" <td>+42.0598291</td>\n",
|
|
||||||
" <td>...</td>\n",
|
|
||||||
" <td>13.9</td>\n",
|
|
||||||
" <td>39.7</td>\n",
|
|
||||||
" <td>10.7</td>\n",
|
|
||||||
" <td>47.4</td>\n",
|
|
||||||
" <td>91.8</td>\n",
|
|
||||||
" <td>48.8</td>\n",
|
|
||||||
" <td>88.5</td>\n",
|
|
||||||
" <td>9.2</td>\n",
|
|
||||||
" <td>25</td>\n",
|
|
||||||
" <td>001</td>\n",
|
|
||||||
" </tr>\n",
|
|
||||||
" <tr>\n",
|
|
||||||
" <th>25001010206</th>\n",
|
|
||||||
" <td>25</td>\n",
|
|
||||||
" <td>001</td>\n",
|
|
||||||
" <td>010206</td>\n",
|
|
||||||
" <td>102.06</td>\n",
|
|
||||||
" <td>Census Tract 102.06</td>\n",
|
|
||||||
" <td>G5020</td>\n",
|
|
||||||
" <td>S</td>\n",
|
|
||||||
" <td>51240917</td>\n",
|
|
||||||
" <td>18830100</td>\n",
|
|
||||||
" <td>+41.9226356</td>\n",
|
|
||||||
" <td>...</td>\n",
|
|
||||||
" <td>22.6</td>\n",
|
|
||||||
" <td>68.0</td>\n",
|
|
||||||
" <td>11.3</td>\n",
|
|
||||||
" <td>27.5</td>\n",
|
|
||||||
" <td>85.4</td>\n",
|
|
||||||
" <td>52.6</td>\n",
|
|
||||||
" <td>95.3</td>\n",
|
|
||||||
" <td>7.8</td>\n",
|
|
||||||
" <td>25</td>\n",
|
|
||||||
" <td>001</td>\n",
|
|
||||||
" </tr>\n",
|
|
||||||
" <tr>\n",
|
|
||||||
" <th>25001010208</th>\n",
|
|
||||||
" <td>25</td>\n",
|
|
||||||
" <td>001</td>\n",
|
|
||||||
" <td>010208</td>\n",
|
|
||||||
" <td>102.08</td>\n",
|
|
||||||
" <td>Census Tract 102.08</td>\n",
|
|
||||||
" <td>G5020</td>\n",
|
|
||||||
" <td>S</td>\n",
|
|
||||||
" <td>54268861</td>\n",
|
|
||||||
" <td>11461462</td>\n",
|
|
||||||
" <td>+42.0135566</td>\n",
|
|
||||||
" <td>...</td>\n",
|
|
||||||
" <td>16.8</td>\n",
|
|
||||||
" <td>69.5</td>\n",
|
|
||||||
" <td>11.2</td>\n",
|
|
||||||
" <td>9.5</td>\n",
|
|
||||||
" <td>99.6</td>\n",
|
|
||||||
" <td>45.9</td>\n",
|
|
||||||
" <td>93.6</td>\n",
|
|
||||||
" <td>9.6</td>\n",
|
|
||||||
" <td>25</td>\n",
|
|
||||||
" <td>001</td>\n",
|
|
||||||
" </tr>\n",
|
|
||||||
" <tr>\n",
|
|
||||||
" <th>25001010304</th>\n",
|
|
||||||
" <td>25</td>\n",
|
|
||||||
" <td>001</td>\n",
|
|
||||||
" <td>010304</td>\n",
|
|
||||||
" <td>103.04</td>\n",
|
|
||||||
" <td>Census Tract 103.04</td>\n",
|
|
||||||
" <td>G5020</td>\n",
|
|
||||||
" <td>S</td>\n",
|
|
||||||
" <td>18347659</td>\n",
|
|
||||||
" <td>7830612</td>\n",
|
|
||||||
" <td>+41.8251080</td>\n",
|
|
||||||
" <td>...</td>\n",
|
|
||||||
" <td>23.5</td>\n",
|
|
||||||
" <td>79.5</td>\n",
|
|
||||||
" <td>4.8</td>\n",
|
|
||||||
" <td>30.2</td>\n",
|
|
||||||
" <td>93.4</td>\n",
|
|
||||||
" <td>51.2</td>\n",
|
|
||||||
" <td>93.7</td>\n",
|
|
||||||
" <td>7.0</td>\n",
|
|
||||||
" <td>25</td>\n",
|
|
||||||
" <td>001</td>\n",
|
|
||||||
" </tr>\n",
|
|
||||||
" <tr>\n",
|
|
||||||
" <th>25001010306</th>\n",
|
|
||||||
" <td>25</td>\n",
|
|
||||||
" <td>001</td>\n",
|
|
||||||
" <td>010306</td>\n",
|
|
||||||
" <td>103.06</td>\n",
|
|
||||||
" <td>Census Tract 103.06</td>\n",
|
|
||||||
" <td>G5020</td>\n",
|
|
||||||
" <td>S</td>\n",
|
|
||||||
" <td>17828556</td>\n",
|
|
||||||
" <td>1730602</td>\n",
|
|
||||||
" <td>+41.8593758</td>\n",
|
|
||||||
" <td>...</td>\n",
|
|
||||||
" <td>17.8</td>\n",
|
|
||||||
" <td>72.8</td>\n",
|
|
||||||
" <td>8.2</td>\n",
|
|
||||||
" <td>10.2</td>\n",
|
|
||||||
" <td>88.1</td>\n",
|
|
||||||
" <td>45.1</td>\n",
|
|
||||||
" <td>96.9</td>\n",
|
|
||||||
" <td>5.0</td>\n",
|
|
||||||
" <td>25</td>\n",
|
|
||||||
" <td>001</td>\n",
|
|
||||||
" </tr>\n",
|
|
||||||
" </tbody>\n",
|
|
||||||
"</table>\n",
|
|
||||||
"<p>5 rows × 38 columns</p>\n",
|
|
||||||
"</div>"
|
|
||||||
],
|
|
||||||
"text/plain": [
|
|
||||||
" STATEFP COUNTYFP TRACTCE NAME NAMELSAD MTFCC \\\n",
|
|
||||||
"25001010100 25 001 010100 101 Census Tract 101 G5020 \n",
|
|
||||||
"25001010206 25 001 010206 102.06 Census Tract 102.06 G5020 \n",
|
|
||||||
"25001010208 25 001 010208 102.08 Census Tract 102.08 G5020 \n",
|
|
||||||
"25001010304 25 001 010304 103.04 Census Tract 103.04 G5020 \n",
|
|
||||||
"25001010306 25 001 010306 103.06 Census Tract 103.06 G5020 \n",
|
|
||||||
"\n",
|
|
||||||
" FUNCSTAT ALAND AWATER INTPTLAT ... mean_commute_time \\\n",
|
|
||||||
"25001010100 S 25046218 12765873 +42.0598291 ... 13.9 \n",
|
|
||||||
"25001010206 S 51240917 18830100 +41.9226356 ... 22.6 \n",
|
|
||||||
"25001010208 S 54268861 11461462 +42.0135566 ... 16.8 \n",
|
|
||||||
"25001010304 S 18347659 7830612 +41.8251080 ... 23.5 \n",
|
|
||||||
"25001010306 S 17828556 1730602 +41.8593758 ... 17.8 \n",
|
|
||||||
"\n",
|
|
||||||
" pct_commute_drive_alone pct_below_poverty \\\n",
|
|
||||||
"25001010100 39.7 10.7 \n",
|
|
||||||
"25001010206 68.0 11.3 \n",
|
|
||||||
"25001010208 69.5 11.2 \n",
|
|
||||||
"25001010304 79.5 4.8 \n",
|
|
||||||
"25001010306 72.8 8.2 \n",
|
|
||||||
"\n",
|
|
||||||
" pct_college_grad_student pct_same_residence_year_ago \\\n",
|
|
||||||
"25001010100 47.4 91.8 \n",
|
|
||||||
"25001010206 27.5 85.4 \n",
|
|
||||||
"25001010208 9.5 99.6 \n",
|
|
||||||
"25001010304 30.2 93.4 \n",
|
|
||||||
"25001010306 10.2 88.1 \n",
|
|
||||||
"\n",
|
|
||||||
" pct_bachelors_degree pct_english_only pct_foreign_born state \\\n",
|
|
||||||
"25001010100 48.8 88.5 9.2 25 \n",
|
|
||||||
"25001010206 52.6 95.3 7.8 25 \n",
|
|
||||||
"25001010208 45.9 93.6 9.6 25 \n",
|
|
||||||
"25001010304 51.2 93.7 7.0 25 \n",
|
|
||||||
"25001010306 45.1 96.9 5.0 25 \n",
|
|
||||||
"\n",
|
|
||||||
" county \n",
|
|
||||||
"25001010100 001 \n",
|
|
||||||
"25001010206 001 \n",
|
|
||||||
"25001010208 001 \n",
|
|
||||||
"25001010304 001 \n",
|
|
||||||
"25001010306 001 \n",
|
|
||||||
"\n",
|
|
||||||
"[5 rows x 38 columns]"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"execution_count": 7,
|
|
||||||
"metadata": {},
|
|
||||||
"output_type": "execute_result"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"source": [
|
|
||||||
"merged.head()"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"cell_type": "markdown",
|
|
||||||
"metadata": {},
|
|
||||||
"source": [
|
|
||||||
"## Save to disk"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"cell_type": "code",
|
|
||||||
"execution_count": 8,
|
|
||||||
"metadata": {},
|
|
||||||
"outputs": [],
|
|
||||||
"source": [
|
|
||||||
"upcast_dispatch = {geometry.Point: geometry.MultiPoint, \n",
|
|
||||||
" geometry.LineString: geometry.MultiLineString, \n",
|
|
||||||
" geometry.Polygon: geometry.MultiPolygon}\n",
|
|
||||||
"\n",
|
|
||||||
"def maybe_cast_to_multigeometry(geom):\n",
|
|
||||||
" caster = upcast_dispatch.get(type(geom), lambda x: x[0])\n",
|
|
||||||
" return caster([geom])\n",
|
|
||||||
"\n",
|
|
||||||
"merged['geometry'] = merged['geometry'].apply(maybe_cast_to_multigeometry)"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"cell_type": "code",
|
|
||||||
"execution_count": 9,
|
|
||||||
"metadata": {},
|
|
||||||
"outputs": [
|
|
||||||
{
|
|
||||||
"name": "stdout",
|
|
||||||
"output_type": "stream",
|
|
||||||
"text": [
|
|
||||||
"census_tracts_data.geojson\n",
|
|
||||||
"Wall time: 4.88 s\n"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"source": [
|
|
||||||
"%%time\n",
|
|
||||||
"merged.reset_index().to_file(output_path, driver='GeoJSON')\n",
|
|
||||||
"print(output_path)"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"metadata": {
|
|
||||||
"kernelspec": {
|
|
||||||
"display_name": "Python 3",
|
|
||||||
"language": "python",
|
|
||||||
"name": "python3"
|
|
||||||
},
|
|
||||||
"language_info": {
|
|
||||||
"codemirror_mode": {
|
|
||||||
"name": "ipython",
|
|
||||||
"version": 3
|
|
||||||
},
|
|
||||||
"file_extension": ".py",
|
|
||||||
"mimetype": "text/x-python",
|
|
||||||
"name": "python",
|
|
||||||
"nbconvert_exporter": "python",
|
|
||||||
"pygments_lexer": "ipython3",
|
|
||||||
"version": "3.6.2"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nbformat": 4,
|
|
||||||
"nbformat_minor": 2
|
|
||||||
}
|
|
|
@ -1,227 +0,0 @@
|
||||||
# Description: Download tract-level census variables from the API
|
|
||||||
import requests
|
|
||||||
import numpy as np
|
|
||||||
import pandas as pd
|
|
||||||
|
|
||||||
|
|
||||||
def get_census_variable_descriptions(dataset, year, variables):
|
|
||||||
"""
|
|
||||||
Download descriptions of census variables from the API
|
|
||||||
"""
|
|
||||||
url_template = "https://api.census.gov/data/{year}/{dataset}/profile/variables/{variable}.json"
|
|
||||||
variable_descriptions = {}
|
|
||||||
|
|
||||||
for variable in variables:
|
|
||||||
url = url_template.format(year=year, dataset=dataset, variable=variable)
|
|
||||||
response = requests.get(url)
|
|
||||||
data = response.json()
|
|
||||||
variable_descriptions[variable] = {
|
|
||||||
"concept": data["concept"],
|
|
||||||
"label": data["label"],
|
|
||||||
}
|
|
||||||
|
|
||||||
return variable_descriptions
|
|
||||||
|
|
||||||
|
|
||||||
def get_census_tracts_data(
|
|
||||||
tract_fips, api_key, dataset, year, variables, max_tracts=1000, clean=False
|
|
||||||
):
|
|
||||||
"""
|
|
||||||
Download census variables (given some year and dataset) for a series of tracts
|
|
||||||
|
|
||||||
limit the max number tracts to download data for in a single api request
|
|
||||||
"""
|
|
||||||
|
|
||||||
# convert vars to string to send to api
|
|
||||||
variables_str = ",".join(variables)
|
|
||||||
|
|
||||||
# census dataframe called cd
|
|
||||||
cd = pd.DataFrame()
|
|
||||||
|
|
||||||
states_counties_tracts = get_states_counties_tracts(tract_fips=tract_fips)
|
|
||||||
for state in states_counties_tracts:
|
|
||||||
for county in states_counties_tracts[state]:
|
|
||||||
|
|
||||||
tracts = states_counties_tracts[state][county]
|
|
||||||
|
|
||||||
# if we pass it too many tracts at once, the census api chokes, so
|
|
||||||
# break up counties with > max_tracts number of tracts into chunks
|
|
||||||
for tracts_chunk in chunks(tracts, max_tracts):
|
|
||||||
|
|
||||||
# convert tracts to string to send to api
|
|
||||||
tracts_str = ",".join(tracts_chunk)
|
|
||||||
print(
|
|
||||||
"Downloading {} census vars in {}{} for {} tracts.".format(
|
|
||||||
len(variables), state, county, len(tracts_chunk)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
# get census vars for these tracts and append them to df
|
|
||||||
df_tmp = get_tracts_census_vars(
|
|
||||||
api_key=api_key,
|
|
||||||
dataset=dataset,
|
|
||||||
variables=variables_str,
|
|
||||||
state=state,
|
|
||||||
county=county,
|
|
||||||
tracts=tracts_str,
|
|
||||||
year=year,
|
|
||||||
clean=clean,
|
|
||||||
)
|
|
||||||
|
|
||||||
df_tmp["state"] = state
|
|
||||||
df_tmp["county"] = county
|
|
||||||
cd = cd.append(df_tmp)
|
|
||||||
return cd
|
|
||||||
|
|
||||||
|
|
||||||
def get_states_counties_tracts(tract_fips):
|
|
||||||
"""
|
|
||||||
turn a list of tract fips codes into a nested dict keyed by state,
|
|
||||||
then keyed by county, finally with tract as the value
|
|
||||||
"""
|
|
||||||
|
|
||||||
if not isinstance(tract_fips, pd.Series):
|
|
||||||
raise TypeError("tract_fips must be a pandas series")
|
|
||||||
|
|
||||||
df = pd.DataFrame()
|
|
||||||
df["state"] = tract_fips.str.slice(0, 2)
|
|
||||||
df["county"] = tract_fips.str.slice(2, 5)
|
|
||||||
df["tract"] = tract_fips.str.slice(5)
|
|
||||||
grouped = df[["state", "county", "tract"]].groupby(["state", "county"])
|
|
||||||
|
|
||||||
states_counties_tracts = {}
|
|
||||||
for (state, county), group in grouped:
|
|
||||||
if state not in states_counties_tracts:
|
|
||||||
states_counties_tracts[state] = {}
|
|
||||||
states_counties_tracts[state][county] = group["tract"].tolist()
|
|
||||||
|
|
||||||
return states_counties_tracts
|
|
||||||
|
|
||||||
|
|
||||||
def parse_tract_fips(tract_fips):
|
|
||||||
"""
|
|
||||||
turn a full tract fips code into a tuple of state, county, tract
|
|
||||||
"""
|
|
||||||
|
|
||||||
return tract_fips[:2], tract_fips[2:5], tract_fips[5:]
|
|
||||||
|
|
||||||
|
|
||||||
def get_tract_ids(fips_codes):
|
|
||||||
"""
|
|
||||||
convert a list of full tract fips codes into just tract fips only
|
|
||||||
"""
|
|
||||||
|
|
||||||
tracts = []
|
|
||||||
for fips_code in fips_codes:
|
|
||||||
_, _, tract_fips = parse_tract_fips(fips_code)
|
|
||||||
tracts.append(tract_fips)
|
|
||||||
return tracts
|
|
||||||
|
|
||||||
|
|
||||||
def get_tracts_census_vars(
|
|
||||||
api_key, dataset, variables, state, county, tracts, year, clean
|
|
||||||
):
|
|
||||||
"""
|
|
||||||
download a set of census variables for a state + county + tracts
|
|
||||||
"""
|
|
||||||
|
|
||||||
url_template = (
|
|
||||||
"https://api.census.gov/data/{year}/{dataset}/profile?"
|
|
||||||
"get={variables}&for=tract:{tracts}&key={api_key}&in=state:{state}+county:{county}"
|
|
||||||
)
|
|
||||||
|
|
||||||
url = url_template.format(
|
|
||||||
api_key=api_key,
|
|
||||||
dataset=dataset,
|
|
||||||
variables=variables,
|
|
||||||
state=state,
|
|
||||||
county=county,
|
|
||||||
tracts=tracts,
|
|
||||||
year=year,
|
|
||||||
)
|
|
||||||
|
|
||||||
try:
|
|
||||||
response = requests.get(url, timeout=30)
|
|
||||||
json_data = response.json()
|
|
||||||
except Exception as e:
|
|
||||||
print(e, response.status_code, response.text, response.url)
|
|
||||||
|
|
||||||
# load as dataframe and index by geoid (state+county+tract)
|
|
||||||
df = pd.DataFrame(json_data)
|
|
||||||
df = df.rename(columns=df.iloc[0]).drop(df.index[0])
|
|
||||||
df["GEOID10"] = df.apply(
|
|
||||||
lambda row: "{}{}{}".format(row["state"], row["county"], row["tract"]),
|
|
||||||
axis="columns",
|
|
||||||
)
|
|
||||||
df = df.set_index("GEOID10").drop(
|
|
||||||
["state", "county", "tract"], axis="columns"
|
|
||||||
)
|
|
||||||
|
|
||||||
if clean:
|
|
||||||
df = clean_census_data(df)
|
|
||||||
|
|
||||||
return df
|
|
||||||
|
|
||||||
|
|
||||||
def clean_census_data(df):
|
|
||||||
"""
|
|
||||||
Clean up the census data results from the API. By default, the census data often
|
|
||||||
includes non-numeric characters as annotations or missing values.
|
|
||||||
|
|
||||||
# see https://www.census.gov/data/developers/data-sets/acs-5year/data-notes.html
|
|
||||||
# for estimate and annotation values
|
|
||||||
|
|
||||||
# A '+' following a median estimate means the median falls in the upper interval
|
|
||||||
# of an open-ended distribution.
|
|
||||||
|
|
||||||
# A '-' entry in the estimate column indicates that either no sample observations
|
|
||||||
# or too few sample observations were available to compute an estimate, or a ratio
|
|
||||||
# of medians cannot be calculated because one or both of the median estimates falls
|
|
||||||
# in the lowest interval or upper interval of an open-ended distribution.
|
|
||||||
|
|
||||||
# An 'N' entry in the estimate and margin of error columns indicates that data for
|
|
||||||
# this geographic area cannot be displayed because the number of sample cases is too
|
|
||||||
# small.
|
|
||||||
|
|
||||||
# An '(X)' means that the estimate is not applicable or not available.
|
|
||||||
"""
|
|
||||||
|
|
||||||
# clean up any non-numeric strings, column by column
|
|
||||||
df = df.astype(str)
|
|
||||||
bad_strings = ["-", "N", "(X)", "*"]
|
|
||||||
for col in df.columns:
|
|
||||||
|
|
||||||
# replace any cell with '-' or 'N' or '(X)' or '*' in this column with NaN
|
|
||||||
df[col] = df[col].map(
|
|
||||||
lambda value: np.nan
|
|
||||||
if any(s in value for s in bad_strings)
|
|
||||||
else value
|
|
||||||
)
|
|
||||||
|
|
||||||
# if every result in this col was replaced by nans, then col is now of type
|
|
||||||
# float and we can skip the following cleaning step
|
|
||||||
if not df[col].dtype == np.float64:
|
|
||||||
# strip out any '+' or ',' or '*'
|
|
||||||
df[col] = df[col].str.replace("+", "").str.replace(",", "")
|
|
||||||
|
|
||||||
# convert data to floats, assert uniqueness, and return
|
|
||||||
def convert_float(value):
|
|
||||||
try:
|
|
||||||
return float(value)
|
|
||||||
except:
|
|
||||||
print("error", value, "\n", df)
|
|
||||||
return np.nan
|
|
||||||
|
|
||||||
df = df.applymap(convert_float)
|
|
||||||
|
|
||||||
assert df.index.is_unique
|
|
||||||
|
|
||||||
return df
|
|
||||||
|
|
||||||
|
|
||||||
def chunks(l, n):
|
|
||||||
"""
|
|
||||||
yield successive n-sized chunks from list l
|
|
||||||
"""
|
|
||||||
for i in range(0, len(l), n):
|
|
||||||
yield l[i : i + n]
|
|
|
@ -1 +0,0 @@
|
||||||
UTF-8
|
|
Binary file not shown.
|
@ -1 +0,0 @@
|
||||||
GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137,298.257222101]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
|
|
Binary file not shown.
|
@ -1,377 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!--This file contains all the Entity and Attribute Information--><gfc:FC_FeatureCatalogue xmlns:gmx="http://www.isotc211.org/2005/gmx"
|
|
||||||
xmlns:gco="http://www.isotc211.org/2005/gco"
|
|
||||||
xmlns:gmd="http://www.isotc211.org/2005/gmd"
|
|
||||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
||||||
xmlns:gml="http://www.opengis.net/gml/3.2"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xmlns:gfc="http://www.isotc211.org/2005/gfc"
|
|
||||||
xsi:schemaLocation="https://www.ngdc.noaa.gov/metadata/published/xsd/schema/gfc/featureCataloging.xsd http://www.isotc211.org/2005/gfc">
|
|
||||||
<gmx:name>
|
|
||||||
<gco:CharacterString>Feature Catalog for the Current Census Tract State-based</gco:CharacterString>
|
|
||||||
</gmx:name>
|
|
||||||
<gmx:scope>
|
|
||||||
<gco:CharacterString>The Current Census Tract State-based shapefile contains attributes for Census tracts. These are small, relatively permanent statistical subdivisions of a county or equivalent entity.</gco:CharacterString>
|
|
||||||
</gmx:scope>
|
|
||||||
<gmx:versionNumber>
|
|
||||||
<gco:CharacterString>2018</gco:CharacterString>
|
|
||||||
</gmx:versionNumber>
|
|
||||||
<gmx:versionDate>
|
|
||||||
<gco:Date>2017-06-01</gco:Date>
|
|
||||||
</gmx:versionDate>
|
|
||||||
<gmx:language>
|
|
||||||
<gco:CharacterString>eng</gco:CharacterString>
|
|
||||||
</gmx:language>
|
|
||||||
<gmx:characterSet>
|
|
||||||
<gmd:MD_CharacterSetCode codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#MD_CharacterSetCode"
|
|
||||||
codeListValue="utf8"
|
|
||||||
codeSpace="004">utf8
|
|
||||||
</gmd:MD_CharacterSetCode>
|
|
||||||
</gmx:characterSet>
|
|
||||||
<gfc:featureType>
|
|
||||||
<gfc:FC_FeatureType>
|
|
||||||
<gfc:typeName>
|
|
||||||
<gco:LocalName>TRACT.shp</gco:LocalName>
|
|
||||||
</gfc:typeName>
|
|
||||||
<gfc:definition>
|
|
||||||
<gco:CharacterString>Current Census Tract State-based</gco:CharacterString>
|
|
||||||
</gfc:definition>
|
|
||||||
<gfc:isAbstract>
|
|
||||||
<gco:Boolean>false</gco:Boolean>
|
|
||||||
</gfc:isAbstract>
|
|
||||||
<gfc:featureCatalogue uuidref="2018_tract.ea.iso.xml"/>
|
|
||||||
<gfc:carrierOfCharacteristics>
|
|
||||||
<gfc:FC_FeatureAttribute>
|
|
||||||
<gfc:memberName>
|
|
||||||
<gco:LocalName>STATEFP</gco:LocalName>
|
|
||||||
</gfc:memberName>
|
|
||||||
<gfc:definition>
|
|
||||||
<gco:CharacterString>Current state Federal Information Processing Series (FIPS) codes</gco:CharacterString>
|
|
||||||
</gfc:definition>
|
|
||||||
<gfc:cardinality gco:nilReason="unknown"/>
|
|
||||||
<gfc:definitionReference xlink:title="U.S. Census Bureau"
|
|
||||||
xlink:href="http://www.ngdc.noaa.gov/docucomp/eb139e38-ee29-4d59-b157-5e874d4420c4"/>
|
|
||||||
<gfc:listedValue>
|
|
||||||
<gfc:FC_ListedValue>
|
|
||||||
<gfc:label>
|
|
||||||
<gco:CharacterString>National Standard Codes (ANSI INCITS 38-2009), Federal Information Processing Series (FIPS) - States/State Equivalents</gco:CharacterString>
|
|
||||||
</gfc:label>
|
|
||||||
<gfc:definitionReference xlink:title="U.S. Census Bureau"
|
|
||||||
xlink:href="http://www.ngdc.noaa.gov/docucomp/eb139e38-ee29-4d59-b157-5e874d4420c4"/>
|
|
||||||
</gfc:FC_ListedValue>
|
|
||||||
</gfc:listedValue>
|
|
||||||
</gfc:FC_FeatureAttribute>
|
|
||||||
</gfc:carrierOfCharacteristics>
|
|
||||||
<gfc:carrierOfCharacteristics>
|
|
||||||
<gfc:FC_FeatureAttribute>
|
|
||||||
<gfc:memberName>
|
|
||||||
<gco:LocalName>COUNTYFP</gco:LocalName>
|
|
||||||
</gfc:memberName>
|
|
||||||
<gfc:definition>
|
|
||||||
<gco:CharacterString>Current county Federal Information Processing Series (FIPS) code</gco:CharacterString>
|
|
||||||
</gfc:definition>
|
|
||||||
<gfc:cardinality gco:nilReason="unknown"/>
|
|
||||||
<gfc:definitionReference xlink:title="U.S. Census Bureau"
|
|
||||||
xlink:href="http://www.ngdc.noaa.gov/docucomp/eb139e38-ee29-4d59-b157-5e874d4420c4"/>
|
|
||||||
<gfc:listedValue>
|
|
||||||
<gfc:FC_ListedValue>
|
|
||||||
<gfc:label>
|
|
||||||
<gco:CharacterString>National Standard Codes (ANSI INCITS 31-2009), Federal Information Processing Series (FIPS) - Counties/County Equivalents</gco:CharacterString>
|
|
||||||
</gfc:label>
|
|
||||||
<gfc:definitionReference xlink:title="U.S. Census Bureau"
|
|
||||||
xlink:href="http://www.ngdc.noaa.gov/docucomp/eb139e38-ee29-4d59-b157-5e874d4420c4"/>
|
|
||||||
</gfc:FC_ListedValue>
|
|
||||||
</gfc:listedValue>
|
|
||||||
</gfc:FC_FeatureAttribute>
|
|
||||||
</gfc:carrierOfCharacteristics>
|
|
||||||
<gfc:carrierOfCharacteristics>
|
|
||||||
<gfc:FC_FeatureAttribute>
|
|
||||||
<gfc:memberName>
|
|
||||||
<gco:LocalName>TRACTCE</gco:LocalName>
|
|
||||||
</gfc:memberName>
|
|
||||||
<gfc:definition>
|
|
||||||
<gco:CharacterString>Current census tract code</gco:CharacterString>
|
|
||||||
</gfc:definition>
|
|
||||||
<gfc:cardinality gco:nilReason="unknown"/>
|
|
||||||
<gfc:definitionReference xlink:title="U.S. Census Bureau"
|
|
||||||
xlink:href="http://www.ngdc.noaa.gov/docucomp/eb139e38-ee29-4d59-b157-5e874d4420c4"/>
|
|
||||||
<gfc:listedValue>
|
|
||||||
<gfc:FC_ListedValue>
|
|
||||||
<gfc:label>
|
|
||||||
<gco:CharacterString>000100 to 998999</gco:CharacterString>
|
|
||||||
</gfc:label>
|
|
||||||
<gfc:definition>
|
|
||||||
<gco:CharacterString>Census tract number</gco:CharacterString>
|
|
||||||
</gfc:definition>
|
|
||||||
<gfc:definitionReference xlink:title="U.S. Census Bureau"
|
|
||||||
xlink:href="http://www.ngdc.noaa.gov/docucomp/eb139e38-ee29-4d59-b157-5e874d4420c4"/>
|
|
||||||
</gfc:FC_ListedValue>
|
|
||||||
</gfc:listedValue>
|
|
||||||
<gfc:listedValue>
|
|
||||||
<gfc:FC_ListedValue>
|
|
||||||
<gfc:label>
|
|
||||||
<gco:CharacterString>990000 to 990099</gco:CharacterString>
|
|
||||||
</gfc:label>
|
|
||||||
<gfc:definition>
|
|
||||||
<gco:CharacterString>Water tract (2010 and continuing)</gco:CharacterString>
|
|
||||||
</gfc:definition>
|
|
||||||
<gfc:definitionReference xlink:title="U.S. Census Bureau"
|
|
||||||
xlink:href="http://www.ngdc.noaa.gov/docucomp/eb139e38-ee29-4d59-b157-5e874d4420c4"/>
|
|
||||||
</gfc:FC_ListedValue>
|
|
||||||
</gfc:listedValue>
|
|
||||||
<gfc:listedValue>
|
|
||||||
<gfc:FC_ListedValue>
|
|
||||||
<gfc:label>
|
|
||||||
<gco:CharacterString>990100 to 998999</gco:CharacterString>
|
|
||||||
</gfc:label>
|
|
||||||
<gfc:definition>
|
|
||||||
<gco:CharacterString>Census tract number</gco:CharacterString>
|
|
||||||
</gfc:definition>
|
|
||||||
<gfc:definitionReference xlink:title="U.S. Census Bureau"
|
|
||||||
xlink:href="http://www.ngdc.noaa.gov/docucomp/eb139e38-ee29-4d59-b157-5e874d4420c4"/>
|
|
||||||
</gfc:FC_ListedValue>
|
|
||||||
</gfc:listedValue>
|
|
||||||
</gfc:FC_FeatureAttribute>
|
|
||||||
</gfc:carrierOfCharacteristics>
|
|
||||||
<gfc:carrierOfCharacteristics>
|
|
||||||
<gfc:FC_FeatureAttribute>
|
|
||||||
<gfc:memberName>
|
|
||||||
<gco:LocalName>GEOID</gco:LocalName>
|
|
||||||
</gfc:memberName>
|
|
||||||
<gfc:definition>
|
|
||||||
<gco:CharacterString>Census tract identifier, a concatenation of Current state Federal Information Processing Series (FIPS) code, county FIPS code, and census tract code</gco:CharacterString>
|
|
||||||
</gfc:definition>
|
|
||||||
<gfc:cardinality gco:nilReason="unknown"/>
|
|
||||||
<gfc:definitionReference xlink:title="U.S. Census Bureau"
|
|
||||||
xlink:href="http://www.ngdc.noaa.gov/docucomp/eb139e38-ee29-4d59-b157-5e874d4420c4"/>
|
|
||||||
<gfc:listedValue>
|
|
||||||
<gfc:FC_ListedValue>
|
|
||||||
<gfc:label gco:nilReason="inapplicable"/>
|
|
||||||
<gfc:definition>
|
|
||||||
<gco:CharacterString>The GEOID attribute is a concatenation of the state FIPS code, followed by the county FIPS code, followed by the census tract code. No spaces are allowed between the two codes. The State FIPS code is taken from "National Standard Codes (ANSI INCITS 38-2009), Federal Information Processing Series (FIPS) - States". The county FIPS code is taken from "National Standard Codes (ANSI INCITS 31-2009), Federal Information Processing Series (FIPS) - Counties/County Equivalents". The census tract code is taken from the "TRACTCE" attribute.</gco:CharacterString>
|
|
||||||
</gfc:definition>
|
|
||||||
</gfc:FC_ListedValue>
|
|
||||||
</gfc:listedValue>
|
|
||||||
</gfc:FC_FeatureAttribute>
|
|
||||||
</gfc:carrierOfCharacteristics>
|
|
||||||
<gfc:carrierOfCharacteristics>
|
|
||||||
<gfc:FC_FeatureAttribute>
|
|
||||||
<gfc:memberName>
|
|
||||||
<gco:LocalName>NAME</gco:LocalName>
|
|
||||||
</gfc:memberName>
|
|
||||||
<gfc:definition>
|
|
||||||
<gco:CharacterString>Current census tract name, this is the census tract code converted to an integer or integer plus two-digit decimal if the last two characters of the code are not both zeros.</gco:CharacterString>
|
|
||||||
</gfc:definition>
|
|
||||||
<gfc:cardinality gco:nilReason="unknown"/>
|
|
||||||
<gfc:definitionReference xlink:title="U.S. Census Bureau"
|
|
||||||
xlink:href="http://www.ngdc.noaa.gov/docucomp/eb139e38-ee29-4d59-b157-5e874d4420c4"/>
|
|
||||||
<gfc:listedValue>
|
|
||||||
<gfc:FC_ListedValue>
|
|
||||||
<gfc:label gco:nilReason="inapplicable"/>
|
|
||||||
<gfc:definition>
|
|
||||||
<gco:CharacterString>Values for this attribute are composed of a set of census tract names. As such, they do not exist in a known, predefined set.</gco:CharacterString>
|
|
||||||
</gfc:definition>
|
|
||||||
</gfc:FC_ListedValue>
|
|
||||||
</gfc:listedValue>
|
|
||||||
</gfc:FC_FeatureAttribute>
|
|
||||||
</gfc:carrierOfCharacteristics>
|
|
||||||
<gfc:carrierOfCharacteristics>
|
|
||||||
<gfc:FC_FeatureAttribute>
|
|
||||||
<gfc:memberName>
|
|
||||||
<gco:LocalName>NAMELSAD</gco:LocalName>
|
|
||||||
</gfc:memberName>
|
|
||||||
<gfc:definition>
|
|
||||||
<gco:CharacterString>Current translated legal/statistical area description and the census tract name</gco:CharacterString>
|
|
||||||
</gfc:definition>
|
|
||||||
<gfc:cardinality gco:nilReason="unknown"/>
|
|
||||||
<gfc:definitionReference xlink:title="U.S. Census Bureau"
|
|
||||||
xlink:href="http://www.ngdc.noaa.gov/docucomp/eb139e38-ee29-4d59-b157-5e874d4420c4"/>
|
|
||||||
<gfc:listedValue>
|
|
||||||
<gfc:FC_ListedValue>
|
|
||||||
<gfc:label gco:nilReason="inapplicable"/>
|
|
||||||
<gfc:definition>
|
|
||||||
<gco:CharacterString>Refer to the name in the 'TRACTCE' field and the translated legal/statistical area description code for census tracts</gco:CharacterString>
|
|
||||||
</gfc:definition>
|
|
||||||
</gfc:FC_ListedValue>
|
|
||||||
</gfc:listedValue>
|
|
||||||
</gfc:FC_FeatureAttribute>
|
|
||||||
</gfc:carrierOfCharacteristics>
|
|
||||||
<gfc:carrierOfCharacteristics>
|
|
||||||
<gfc:FC_FeatureAttribute>
|
|
||||||
<gfc:memberName>
|
|
||||||
<gco:LocalName>MTFCC</gco:LocalName>
|
|
||||||
</gfc:memberName>
|
|
||||||
<gfc:definition>
|
|
||||||
<gco:CharacterString>MAF/TIGER feature class code</gco:CharacterString>
|
|
||||||
</gfc:definition>
|
|
||||||
<gfc:cardinality gco:nilReason="unknown"/>
|
|
||||||
<gfc:definitionReference xlink:title="U.S. Census Bureau"
|
|
||||||
xlink:href="http://www.ngdc.noaa.gov/docucomp/eb139e38-ee29-4d59-b157-5e874d4420c4"/>
|
|
||||||
<gfc:listedValue>
|
|
||||||
<gfc:FC_ListedValue>
|
|
||||||
<gfc:label>
|
|
||||||
<gco:CharacterString>G5020</gco:CharacterString>
|
|
||||||
</gfc:label>
|
|
||||||
<gfc:definition>
|
|
||||||
<gco:CharacterString>Census Tract</gco:CharacterString>
|
|
||||||
</gfc:definition>
|
|
||||||
<gfc:definitionReference xlink:title="U.S. Census Bureau"
|
|
||||||
xlink:href="http://www.ngdc.noaa.gov/docucomp/eb139e38-ee29-4d59-b157-5e874d4420c4"/>
|
|
||||||
</gfc:FC_ListedValue>
|
|
||||||
</gfc:listedValue>
|
|
||||||
</gfc:FC_FeatureAttribute>
|
|
||||||
</gfc:carrierOfCharacteristics>
|
|
||||||
<gfc:carrierOfCharacteristics>
|
|
||||||
<gfc:FC_FeatureAttribute>
|
|
||||||
<gfc:memberName>
|
|
||||||
<gco:LocalName>FUNCSTAT</gco:LocalName>
|
|
||||||
</gfc:memberName>
|
|
||||||
<gfc:definition>
|
|
||||||
<gco:CharacterString>Current functional status</gco:CharacterString>
|
|
||||||
</gfc:definition>
|
|
||||||
<gfc:cardinality gco:nilReason="unknown"/>
|
|
||||||
<gfc:definitionReference xlink:title="U.S. Census Bureau"
|
|
||||||
xlink:href="http://www.ngdc.noaa.gov/docucomp/eb139e38-ee29-4d59-b157-5e874d4420c4"/>
|
|
||||||
<gfc:listedValue>
|
|
||||||
<gfc:FC_ListedValue>
|
|
||||||
<gfc:label>
|
|
||||||
<gco:CharacterString>S</gco:CharacterString>
|
|
||||||
</gfc:label>
|
|
||||||
<gfc:definition>
|
|
||||||
<gco:CharacterString>Statistical entity</gco:CharacterString>
|
|
||||||
</gfc:definition>
|
|
||||||
<gfc:definitionReference xlink:title="U.S. Census Bureau"
|
|
||||||
xlink:href="http://www.ngdc.noaa.gov/docucomp/eb139e38-ee29-4d59-b157-5e874d4420c4"/>
|
|
||||||
</gfc:FC_ListedValue>
|
|
||||||
</gfc:listedValue>
|
|
||||||
</gfc:FC_FeatureAttribute>
|
|
||||||
</gfc:carrierOfCharacteristics>
|
|
||||||
<gfc:carrierOfCharacteristics>
|
|
||||||
<gfc:FC_FeatureAttribute>
|
|
||||||
<gfc:memberName>
|
|
||||||
<gco:LocalName>ALAND</gco:LocalName>
|
|
||||||
</gfc:memberName>
|
|
||||||
<gfc:definition>
|
|
||||||
<gco:CharacterString>Current land area (square meters)</gco:CharacterString>
|
|
||||||
</gfc:definition>
|
|
||||||
<gfc:cardinality gco:nilReason="unknown"/>
|
|
||||||
<gfc:definitionReference xlink:title="U.S. Census Bureau"
|
|
||||||
xlink:href="http://www.ngdc.noaa.gov/docucomp/eb139e38-ee29-4d59-b157-5e874d4420c4"/>
|
|
||||||
<gfc:valueMeasurementUnit>
|
|
||||||
<gml:DerivedUnit gml:id="areaInMetersSquaredforALAND">
|
|
||||||
<gml:identifier codeSpace="area"/>
|
|
||||||
<gml:derivationUnitTerm uom="m" exponent="2"/>
|
|
||||||
</gml:DerivedUnit>
|
|
||||||
</gfc:valueMeasurementUnit>
|
|
||||||
<gfc:listedValue>
|
|
||||||
<gfc:FC_ListedValue>
|
|
||||||
<gfc:label gco:nilReason="inapplicable"/>
|
|
||||||
<gfc:definition>
|
|
||||||
<gco:CharacterString> Range Domain Minimum: 0
|
|
||||||
Range Domain Maximum: 9,999,999,999,999</gco:CharacterString>
|
|
||||||
</gfc:definition>
|
|
||||||
</gfc:FC_ListedValue>
|
|
||||||
</gfc:listedValue>
|
|
||||||
</gfc:FC_FeatureAttribute>
|
|
||||||
</gfc:carrierOfCharacteristics>
|
|
||||||
<gfc:carrierOfCharacteristics>
|
|
||||||
<gfc:FC_FeatureAttribute>
|
|
||||||
<gfc:memberName>
|
|
||||||
<gco:LocalName>AWATER</gco:LocalName>
|
|
||||||
</gfc:memberName>
|
|
||||||
<gfc:definition>
|
|
||||||
<gco:CharacterString>Current water area (square meters)</gco:CharacterString>
|
|
||||||
</gfc:definition>
|
|
||||||
<gfc:cardinality gco:nilReason="unknown"/>
|
|
||||||
<gfc:definitionReference xlink:title="U.S. Census Bureau"
|
|
||||||
xlink:href="http://www.ngdc.noaa.gov/docucomp/eb139e38-ee29-4d59-b157-5e874d4420c4"/>
|
|
||||||
<gfc:valueMeasurementUnit>
|
|
||||||
<gml:DerivedUnit gml:id="areaInMetersSquaredforAWATER">
|
|
||||||
<gml:identifier codeSpace="area"/>
|
|
||||||
<gml:derivationUnitTerm uom="m" exponent="2"/>
|
|
||||||
</gml:DerivedUnit>
|
|
||||||
</gfc:valueMeasurementUnit>
|
|
||||||
<gfc:listedValue>
|
|
||||||
<gfc:FC_ListedValue>
|
|
||||||
<gfc:label gco:nilReason="inapplicable"/>
|
|
||||||
<gfc:definition>
|
|
||||||
<gco:CharacterString> Range Domain Minimum: 0
|
|
||||||
Range Domain Maximum: 9,999,999,999,999</gco:CharacterString>
|
|
||||||
</gfc:definition>
|
|
||||||
</gfc:FC_ListedValue>
|
|
||||||
</gfc:listedValue>
|
|
||||||
</gfc:FC_FeatureAttribute>
|
|
||||||
</gfc:carrierOfCharacteristics>
|
|
||||||
<gfc:carrierOfCharacteristics>
|
|
||||||
<gfc:FC_FeatureAttribute>
|
|
||||||
<gfc:memberName>
|
|
||||||
<gco:LocalName>INTPTLAT</gco:LocalName>
|
|
||||||
</gfc:memberName>
|
|
||||||
<gfc:definition>
|
|
||||||
<gco:CharacterString>Current latitude of the internal point</gco:CharacterString>
|
|
||||||
</gfc:definition>
|
|
||||||
<gfc:cardinality gco:nilReason="unknown"/>
|
|
||||||
<gfc:definitionReference xlink:title="U.S. Census Bureau"
|
|
||||||
xlink:href="http://www.ngdc.noaa.gov/docucomp/eb139e38-ee29-4d59-b157-5e874d4420c4"/>
|
|
||||||
<!--Do the following to convert from decimal degrees to degree minutes and seconds
|
|
||||||
1. The whole units of degrees will remain the same
|
|
||||||
2. Multiply the decimal by 60
|
|
||||||
3. The whole number becomes the minutes
|
|
||||||
4. Take the remaining decimal and multiply by 60
|
|
||||||
5. The resulting number becomes the seconds Seconds can remain as a decimal.
|
|
||||||
6. Take your three sets of numbers and put them together, using the symbols for degrees minutes and seconds
|
|
||||||
--><gfc:valueMeasurementUnit>
|
|
||||||
<gml:BaseUnit gml:id="INTPTLAT">
|
|
||||||
<gml:identifier codeSpace="INTPTLAT">Decimal degrees</gml:identifier>
|
|
||||||
<gml:unitsSystem xlink:href="http://www.bipm.org/en/si/si_brochure/chapter4/table6.html"/>
|
|
||||||
</gml:BaseUnit>
|
|
||||||
</gfc:valueMeasurementUnit>
|
|
||||||
<gfc:listedValue>
|
|
||||||
<gfc:FC_ListedValue>
|
|
||||||
<gfc:label gco:nilReason="inapplicable"/>
|
|
||||||
<gfc:definition>
|
|
||||||
<gco:CharacterString> Range Domain Minimum: -90.000000
|
|
||||||
Range Domain Maximum: 90.000000</gco:CharacterString>
|
|
||||||
</gfc:definition>
|
|
||||||
</gfc:FC_ListedValue>
|
|
||||||
</gfc:listedValue>
|
|
||||||
</gfc:FC_FeatureAttribute>
|
|
||||||
</gfc:carrierOfCharacteristics>
|
|
||||||
<gfc:carrierOfCharacteristics>
|
|
||||||
<gfc:FC_FeatureAttribute>
|
|
||||||
<gfc:memberName>
|
|
||||||
<gco:LocalName>INTPTLON</gco:LocalName>
|
|
||||||
</gfc:memberName>
|
|
||||||
<gfc:definition>
|
|
||||||
<gco:CharacterString>Current longitude of the internal point</gco:CharacterString>
|
|
||||||
</gfc:definition>
|
|
||||||
<gfc:cardinality gco:nilReason="unknown"/>
|
|
||||||
<gfc:definitionReference xlink:title="U.S. Census Bureau"
|
|
||||||
xlink:href="http://www.ngdc.noaa.gov/docucomp/eb139e38-ee29-4d59-b157-5e874d4420c4"/>
|
|
||||||
<!--Do the following to convert from decimal degrees to degree minutes and seconds
|
|
||||||
1. The whole units of degrees will remain the same
|
|
||||||
2. Multiply the decimal by 60
|
|
||||||
3. The whole number becomes the minutes
|
|
||||||
4. Take the remaining decimal and multiply by 60
|
|
||||||
5. The resulting number becomes the seconds Seconds can remain as a decimal.
|
|
||||||
6. Take your three sets of numbers and put them together, using the symbols for degrees minutes and seconds
|
|
||||||
--><gfc:valueMeasurementUnit>
|
|
||||||
<gml:BaseUnit gml:id="INTPTLON">
|
|
||||||
<gml:identifier codeSpace="INTPTLON">Decimal degrees</gml:identifier>
|
|
||||||
<gml:unitsSystem xlink:href="http://www.bipm.org/en/si/si_brochure/chapter4/table6.html"/>
|
|
||||||
</gml:BaseUnit>
|
|
||||||
</gfc:valueMeasurementUnit>
|
|
||||||
<gfc:listedValue>
|
|
||||||
<gfc:FC_ListedValue>
|
|
||||||
<gfc:label gco:nilReason="inapplicable"/>
|
|
||||||
<gfc:definition>
|
|
||||||
<gco:CharacterString> Range Domain Minimum: -180.000000
|
|
||||||
Range Domain Maximum: 180.000000</gco:CharacterString>
|
|
||||||
</gfc:definition>
|
|
||||||
</gfc:FC_ListedValue>
|
|
||||||
</gfc:listedValue>
|
|
||||||
</gfc:FC_FeatureAttribute>
|
|
||||||
</gfc:carrierOfCharacteristics>
|
|
||||||
</gfc:FC_FeatureType>
|
|
||||||
</gfc:featureType>
|
|
||||||
</gfc:FC_FeatureCatalogue>
|
|
|
@ -1,617 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<gmi:MI_Metadata xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
||||||
xmlns:gmd="http://www.isotc211.org/2005/gmd"
|
|
||||||
xmlns:gco="http://www.isotc211.org/2005/gco"
|
|
||||||
xmlns:gml="http://www.opengis.net/gml/3.2"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xmlns:gmi="http://www.isotc211.org/2005/gmi"
|
|
||||||
xsi:schemaLocation="http://www.isotc211.org/2005/gmi http://www.ngdc.noaa.gov/metadata/published/xsd/schema.xsd">
|
|
||||||
<gmd:fileIdentifier>
|
|
||||||
<gco:CharacterString>tl_2018_25_tract.shp.iso.xml</gco:CharacterString>
|
|
||||||
</gmd:fileIdentifier>
|
|
||||||
<gmd:language>
|
|
||||||
<gco:CharacterString>eng</gco:CharacterString>
|
|
||||||
</gmd:language>
|
|
||||||
<!--In the gmd_characterSet template!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!--><!-- CharSet UTF-8--><!-- In the when!!!!!!!!!!!!!!!!!--><gmd:characterSet>
|
|
||||||
<gmd:MD_CharacterSetCode codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#MD_CharacterSetCode"
|
|
||||||
codeListValue="UTF-8"
|
|
||||||
codeSpace="In the Metadata_Character_Set_CodeSpace template!!!!!!!!!!!!!!!!!!!!!!!!!!!!! CharSet UTF-8004">UTF-8</gmd:MD_CharacterSetCode>
|
|
||||||
</gmd:characterSet>
|
|
||||||
<!-- This part represents a link to the Series Collection File -->
|
|
||||||
<gmd:parentIdentifier>
|
|
||||||
<gco:CharacterString>TIGER/Line Shapefile, 2018, Series Information for the Current Census Tract State-based</gco:CharacterString>
|
|
||||||
</gmd:parentIdentifier>
|
|
||||||
<gmd:hierarchyLevel>
|
|
||||||
<gmd:MD_ScopeCode codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#MD_ScopeCode"
|
|
||||||
codeListValue="dataset">
|
|
||||||
dataset
|
|
||||||
</gmd:MD_ScopeCode>
|
|
||||||
</gmd:hierarchyLevel>
|
|
||||||
<gmd:contact xlink:href="https://www.ngdc.noaa.gov/docucomp/B04DFA5D-40CD-B677-E040-0AC8C5BB4473"
|
|
||||||
xlink:title=" U.S. Department of Commerce, U.S. Census Bureau, Geography Division, Spatial Data Collection and Products Branch(custodian)"/>
|
|
||||||
<gmd:dateStamp>
|
|
||||||
<gco:Date>2017-06-01</gco:Date>
|
|
||||||
</gmd:dateStamp>
|
|
||||||
<gmd:metadataStandardName>
|
|
||||||
<gco:CharacterString>ISO 19115 Geographic Information - Metadata </gco:CharacterString>
|
|
||||||
</gmd:metadataStandardName>
|
|
||||||
<gmd:metadataStandardVersion>
|
|
||||||
<gco:CharacterString>2009-02-15 </gco:CharacterString>
|
|
||||||
</gmd:metadataStandardVersion>
|
|
||||||
<gmd:dataSetURI>
|
|
||||||
<gco:CharacterString>http://www2.census.gov/geo/tiger/TIGER2018/TRACT/tl_2018_25_tract.zip</gco:CharacterString>
|
|
||||||
</gmd:dataSetURI>
|
|
||||||
<!-- This is the ptvctinf/sdtsterm/sdtstype from section 3 of the FGDC Standard (Spatial Data Organization) -->
|
|
||||||
<gmd:spatialRepresentationInfo>
|
|
||||||
<gmd:MD_VectorSpatialRepresentation>
|
|
||||||
<gmd:geometricObjects>
|
|
||||||
<gmd:MD_GeometricObjects>
|
|
||||||
<gmd:geometricObjectType>
|
|
||||||
<gmd:MD_GeometricObjectTypeCode codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#MD_GeometricObjectTypeCode"
|
|
||||||
codeListValue="complex"
|
|
||||||
codeSpace="001">
|
|
||||||
complex </gmd:MD_GeometricObjectTypeCode>
|
|
||||||
</gmd:geometricObjectType>
|
|
||||||
<gmd:geometricObjectCount>
|
|
||||||
<gco:Integer>1478</gco:Integer>
|
|
||||||
</gmd:geometricObjectCount>
|
|
||||||
</gmd:MD_GeometricObjects>
|
|
||||||
</gmd:geometricObjects>
|
|
||||||
</gmd:MD_VectorSpatialRepresentation>
|
|
||||||
</gmd:spatialRepresentationInfo>
|
|
||||||
<!--This is the indirect spatial reference of section 3 of the FGDC Standard-->
|
|
||||||
<gmd:referenceSystemInfo>
|
|
||||||
<gmd:MD_ReferenceSystem>
|
|
||||||
<gmd:referenceSystemIdentifier>
|
|
||||||
<gmd:RS_Identifier>
|
|
||||||
<gmd:code gco:nilReason="unknown"/>
|
|
||||||
<gmd:codeSpace>
|
|
||||||
<gco:CharacterString>Federal Information Processing Series (FIPS), Geographic Names Information System (GNIS), and feature names.</gco:CharacterString>
|
|
||||||
</gmd:codeSpace>
|
|
||||||
</gmd:RS_Identifier>
|
|
||||||
</gmd:referenceSystemIdentifier>
|
|
||||||
</gmd:MD_ReferenceSystem>
|
|
||||||
</gmd:referenceSystemInfo>
|
|
||||||
<gmd:referenceSystemInfo xlink:href="https://www.ngdc.noaa.gov/docucomp/65f8b220-95ed-11e0-aa80-0800200c9a66"
|
|
||||||
xlink:title="North American Datum 1983"/>
|
|
||||||
<!--This part represents Section 1 of the FGDC Metadata Standard -->
|
|
||||||
<gmd:identificationInfo>
|
|
||||||
<gmd:MD_DataIdentification>
|
|
||||||
<gmd:citation>
|
|
||||||
<gmd:CI_Citation>
|
|
||||||
<gmd:title>
|
|
||||||
<gco:CharacterString>TIGER/Line Shapefile, 2018, state, Massachusetts, Current Census Tract State-based</gco:CharacterString>
|
|
||||||
</gmd:title>
|
|
||||||
<gmd:alternateTitle>
|
|
||||||
<gco:CharacterString>National Geospatial Data Asset (NGDA) Census Tract</gco:CharacterString>
|
|
||||||
</gmd:alternateTitle>
|
|
||||||
<gmd:date>
|
|
||||||
<gmd:CI_Date>
|
|
||||||
<!-- This is the publication date -->
|
|
||||||
<gmd:date>
|
|
||||||
<gco:Date>2018</gco:Date>
|
|
||||||
</gmd:date>
|
|
||||||
<gmd:dateType>
|
|
||||||
<gmd:CI_DateTypeCode codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#CI_DateTypeCode"
|
|
||||||
codeListValue="publication"
|
|
||||||
codeSpace="002"> publication </gmd:CI_DateTypeCode>
|
|
||||||
</gmd:dateType>
|
|
||||||
</gmd:CI_Date>
|
|
||||||
</gmd:date>
|
|
||||||
|
|
||||||
<gmd:edition>
|
|
||||||
<gco:CharacterString>2018</gco:CharacterString>
|
|
||||||
</gmd:edition>
|
|
||||||
<gmd:citedResponsibleParty xlink:href="https://www.ngdc.noaa.gov/docucomp/cf2b3bf2-5dd9-4fed-a495-1ddfb9a41de2 "
|
|
||||||
xlink:title="U.S. Department of Commerce, U.S. Census Bureau, Geography Division (Originator) "/>
|
|
||||||
<gmd:presentationForm>
|
|
||||||
<gmd:CI_PresentationFormCode codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#CI_PresentationFormCode"
|
|
||||||
codeListValue="mapDigital"/>
|
|
||||||
</gmd:presentationForm>
|
|
||||||
</gmd:CI_Citation>
|
|
||||||
</gmd:citation>
|
|
||||||
<gmd:abstract>
|
|
||||||
<gco:CharacterString>The TIGER/Line shapefiles and related database files (.dbf) are an extract of selected geographic and cartographic information from the U.S. Census Bureau's Master Address File / Topologically Integrated Geographic Encoding and Referencing (MAF/TIGER) Database (MTDB). The MTDB represents a seamless national file with no overlaps or gaps between parts, however, each TIGER/Line shapefile is designed to stand alone as an independent data set, or they can be combined to cover the entire nation.
|
|
||||||
|
|
||||||
|
|
||||||
Census tracts are small, relatively permanent statistical subdivisions of a county or equivalent entity, and were defined by local participants as part of the 2010 Census Participant Statistical Areas Program. The Census Bureau delineated the census tracts in situations where no local participant existed or where all the potential participants declined to participate. The primary purpose of census tracts is to provide a stable set of geographic units for the presentation of census data and comparison back to previous decennial censuses. Census tracts generally have a population size between 1,200 and 8,000 people, with an optimum size of 4,000 people. When first delineated, census tracts were designed to be homogeneous with respect to population characteristics, economic status, and living conditions. The spatial size of census tracts varies widely depending on the density of settlement. Physical changes in street patterns caused by highway construction, new development, and so forth, may require boundary revisions. In addition, census tracts occasionally are split due to population growth, or combined as a result of substantial population decline. Census tract boundaries generally follow visible and identifiable features. They may follow legal boundaries such as minor civil division (MCD) or incorporated place boundaries in some States and situations to allow for census tract-to-governmental unit relationships where the governmental boundaries tend to remain unchanged between censuses. State and county boundaries always are census tract boundaries in the standard census geographic hierarchy. In a few rare instances, a census tract may consist of noncontiguous areas. These noncontiguous areas may occur where the census tracts are coextensive with all or parts of legal entities that are themselves noncontiguous. For the 2010 Census, the census tract code range of 9400 through 9499 was enforced for census tracts that include a majority American Indian population according to Census 2000 data and/or their area was primarily covered by federally recognized American Indian reservations and/or off-reservation trust lands; the code range 9800 through 9899 was enforced for those census tracts that contained little or no population and represented a relatively large special land use area such as a National Park, military installation, or a business/industrial park; and the code range 9900 through 9998 was enforced for those census tracts that contained only water area, no land area.
|
|
||||||
</gco:CharacterString>
|
|
||||||
</gmd:abstract>
|
|
||||||
<gmd:purpose>
|
|
||||||
<gco:CharacterString>In order for others to use the information in the Census MAF/TIGER database in a geographic information system (GIS) or for other geographic applications, the Census Bureau releases to the public extracts of the database in the form of TIGER/Line Shapefiles.</gco:CharacterString>
|
|
||||||
</gmd:purpose>
|
|
||||||
<gmd:status>
|
|
||||||
<gmd:MD_ProgressCode codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#MD_ProgressCode"
|
|
||||||
codeListValue="completed">
|
|
||||||
completed
|
|
||||||
</gmd:MD_ProgressCode>
|
|
||||||
</gmd:status>
|
|
||||||
<gmd:pointOfContact xlink:href="https://www.ngdc.noaa.gov/docucomp/c5ceb003-1ed6-4126-8a16-bc08ce8fc267"
|
|
||||||
xlink:title="U.S. Department of Commerce, U.S. Census Bureau, Geography Division, Spatial Data Collection and Products Branch"/>
|
|
||||||
<gmd:resourceMaintenance>
|
|
||||||
<gmd:MD_MaintenanceInformation>
|
|
||||||
<gmd:maintenanceAndUpdateFrequency>
|
|
||||||
<gmd:MD_MaintenanceFrequencyCode codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#MD_MaintenanceFrequencyCode"
|
|
||||||
codeListValue="notPlanned"
|
|
||||||
codeSpace="011">
|
|
||||||
notPlanned
|
|
||||||
</gmd:MD_MaintenanceFrequencyCode>
|
|
||||||
</gmd:maintenanceAndUpdateFrequency>
|
|
||||||
</gmd:MD_MaintenanceInformation>
|
|
||||||
</gmd:resourceMaintenance>
|
|
||||||
<gmd:descriptiveKeywords>
|
|
||||||
<gmd:MD_Keywords>
|
|
||||||
<gmd:keyword>
|
|
||||||
<gco:CharacterString>NGDA</gco:CharacterString>
|
|
||||||
</gmd:keyword>
|
|
||||||
<gmd:keyword>
|
|
||||||
<gco:CharacterString>Governmental Units and Administrative and Statistical Boundaries Theme</gco:CharacterString>
|
|
||||||
</gmd:keyword>
|
|
||||||
<gmd:keyword>
|
|
||||||
<gco:CharacterString>National Geospatial Data Asset</gco:CharacterString>
|
|
||||||
</gmd:keyword>
|
|
||||||
<gmd:type>
|
|
||||||
<gmd:MD_KeywordTypeCode codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#MD_KeywordTypeCode"
|
|
||||||
codeListValue="theme"
|
|
||||||
codeSpace="005"> theme </gmd:MD_KeywordTypeCode>
|
|
||||||
</gmd:type>
|
|
||||||
<gmd:type>
|
|
||||||
<gmd:MD_KeywordTypeCode codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#MD_KeywordTypeCode"
|
|
||||||
codeListValue="theme"
|
|
||||||
codeSpace="005"> theme </gmd:MD_KeywordTypeCode>
|
|
||||||
</gmd:type>
|
|
||||||
<gmd:thesaurusName>
|
|
||||||
<gmd:CI_Citation>
|
|
||||||
<gmd:title>
|
|
||||||
<gco:CharacterString>NGDA Portfolio Themes</gco:CharacterString>
|
|
||||||
</gmd:title>
|
|
||||||
<gmd:date>
|
|
||||||
<gmd:CI_Date>
|
|
||||||
<gmd:date>
|
|
||||||
<gco:Date>2010-02-01</gco:Date>
|
|
||||||
</gmd:date>
|
|
||||||
<gmd:dateType>
|
|
||||||
<gmd:CI_DateTypeCode codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#CI_DateTypeCode"
|
|
||||||
codeListValue="revision"
|
|
||||||
codeSpace="003"> revision
|
|
||||||
</gmd:CI_DateTypeCode>
|
|
||||||
</gmd:dateType>
|
|
||||||
</gmd:CI_Date>
|
|
||||||
</gmd:date>
|
|
||||||
<gmd:otherCitationDetails>
|
|
||||||
<gco:CharacterString>http://www.fgdc.gov/initiatives/resources/2013-2-1-ngda-data-themes-fgdc-sc-revised.pdf</gco:CharacterString>
|
|
||||||
</gmd:otherCitationDetails>
|
|
||||||
</gmd:CI_Citation>
|
|
||||||
</gmd:thesaurusName>
|
|
||||||
</gmd:MD_Keywords>
|
|
||||||
</gmd:descriptiveKeywords>
|
|
||||||
<gmd:descriptiveKeywords>
|
|
||||||
<gmd:MD_Keywords>
|
|
||||||
<gmd:keyword>
|
|
||||||
<gco:CharacterString>State or equivalent entity</gco:CharacterString>
|
|
||||||
</gmd:keyword>
|
|
||||||
<gmd:keyword>
|
|
||||||
<gco:CharacterString>Polygon</gco:CharacterString>
|
|
||||||
</gmd:keyword>
|
|
||||||
<gmd:keyword>
|
|
||||||
<gco:CharacterString>Census Tract</gco:CharacterString>
|
|
||||||
</gmd:keyword>
|
|
||||||
<gmd:keyword>
|
|
||||||
<gco:CharacterString>Tract</gco:CharacterString>
|
|
||||||
</gmd:keyword>
|
|
||||||
<gmd:type>
|
|
||||||
<gmd:MD_KeywordTypeCode codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#MD_KeywordTypeCode"
|
|
||||||
codeListValue="theme"
|
|
||||||
codeSpace="005"> theme </gmd:MD_KeywordTypeCode>
|
|
||||||
</gmd:type>
|
|
||||||
<gmd:thesaurusName>
|
|
||||||
<gmd:CI_Citation>
|
|
||||||
<gmd:title>
|
|
||||||
<gco:CharacterString>None</gco:CharacterString>
|
|
||||||
</gmd:title>
|
|
||||||
<gmd:date gco:nilReason="unknown"/>
|
|
||||||
</gmd:CI_Citation>
|
|
||||||
</gmd:thesaurusName>
|
|
||||||
</gmd:MD_Keywords>
|
|
||||||
</gmd:descriptiveKeywords>
|
|
||||||
<gmd:descriptiveKeywords>
|
|
||||||
<gmd:MD_Keywords>
|
|
||||||
<gmd:keyword>
|
|
||||||
<gco:CharacterString>United States</gco:CharacterString>
|
|
||||||
</gmd:keyword>
|
|
||||||
<gmd:keyword>
|
|
||||||
<gco:CharacterString>U.S.</gco:CharacterString>
|
|
||||||
</gmd:keyword>
|
|
||||||
<gmd:keyword>
|
|
||||||
<gco:CharacterString>State or Equivalent Entity</gco:CharacterString>
|
|
||||||
</gmd:keyword>
|
|
||||||
<gmd:keyword>
|
|
||||||
<gco:CharacterString>Massachusetts</gco:CharacterString>
|
|
||||||
</gmd:keyword>
|
|
||||||
<gmd:keyword>
|
|
||||||
<gco:CharacterString>MA</gco:CharacterString>
|
|
||||||
</gmd:keyword>
|
|
||||||
<gmd:keyword>
|
|
||||||
<gco:CharacterString>25</gco:CharacterString>
|
|
||||||
</gmd:keyword>
|
|
||||||
<gmd:type>
|
|
||||||
<gmd:MD_KeywordTypeCode codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#MD_KeywordTypeCode"
|
|
||||||
codeListValue="place"
|
|
||||||
codeSpace="002"> place </gmd:MD_KeywordTypeCode>
|
|
||||||
</gmd:type>
|
|
||||||
<gmd:thesaurusName>
|
|
||||||
<gmd:CI_Citation>
|
|
||||||
<gmd:title>
|
|
||||||
<gco:CharacterString>ANSI INCITS 38:2009 (Formerly FIPS 5-2), ANSI INCITS 31:2009 (Formerly FIPS 6-4),ANSI INCITS 454:2009 (Formerly FIPS 8-6), ANSI INCITS 455:2009(Formerly FIPS 9-1), ANSI INCITS 446:2008 (Geographic Names Information System (GNIS))</gco:CharacterString>
|
|
||||||
</gmd:title>
|
|
||||||
<gmd:date gco:nilReason="unknown"/>
|
|
||||||
</gmd:CI_Citation>
|
|
||||||
</gmd:thesaurusName>
|
|
||||||
</gmd:MD_Keywords>
|
|
||||||
</gmd:descriptiveKeywords>
|
|
||||||
<gmd:resourceConstraints>
|
|
||||||
<gmd:MD_LegalConstraints>
|
|
||||||
<gmd:accessConstraints>
|
|
||||||
<gmd:MD_RestrictionCode codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#MD_RestrictionCode"
|
|
||||||
codeListValue="otherRestrictions"
|
|
||||||
codeSpace="008 "> otherRestrictions </gmd:MD_RestrictionCode>
|
|
||||||
</gmd:accessConstraints>
|
|
||||||
<gmd:useConstraints>
|
|
||||||
<gmd:MD_RestrictionCode codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#MD_RestrictionCode"
|
|
||||||
codeListValue="otherRestrictions"
|
|
||||||
codeSpace="008 "/>
|
|
||||||
</gmd:useConstraints>
|
|
||||||
<gmd:otherConstraints>
|
|
||||||
<gco:CharacterString> Access Constraints: None</gco:CharacterString>
|
|
||||||
</gmd:otherConstraints>
|
|
||||||
<gmd:otherConstraints>
|
|
||||||
<gco:CharacterString> Use Constraints:The TIGER/Line Shapefile products are not copyrighted however TIGER/Line and Census TIGER are registered trademarks of the U.S. Census Bureau. These products are free to use in a product or publication, however acknowledgement must be given to the U.S. Census Bureau as the source.
|
|
||||||
The boundary information in the TIGER/Line Shapefiles are for statistical data collection and tabulation purposes only; their depiction and designation for statistical purposes does not constitute a determination of jurisdictional authority or rights of ownership or entitlement and they are not legal land descriptions.Coordinates in the TIGER/Line shapefiles have six implied decimal places, but the positional accuracy of these coordinates is not as great as the six decimal places suggest.</gco:CharacterString>
|
|
||||||
</gmd:otherConstraints>
|
|
||||||
</gmd:MD_LegalConstraints>
|
|
||||||
</gmd:resourceConstraints>
|
|
||||||
<!-- This is from the Direct Spatial Reference from Chapter 3 -->
|
|
||||||
<gmd:spatialRepresentationType>
|
|
||||||
<gmd:MD_SpatialRepresentationTypeCode codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#MD_SpatialRepresentationTypeCode"
|
|
||||||
codeListValue="vector">vector</gmd:MD_SpatialRepresentationTypeCode>
|
|
||||||
</gmd:spatialRepresentationType>
|
|
||||||
<gmd:language>
|
|
||||||
<gco:CharacterString>eng</gco:CharacterString>
|
|
||||||
</gmd:language>
|
|
||||||
<!--In the Metadata_Character_Set template!!!!!!!!!!!!!!!!!!!!!!!!!!--><gmd:characterSet>
|
|
||||||
<gmd:MD_CharacterSetCode codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#MD_CharacterSetCode"
|
|
||||||
codeListValue="UTF-8"
|
|
||||||
codeSpace="In the Metadata_Character_Set_CodeSpace template!!!!!!!!!!!!!!!!!!!!!!!!!!!!! CharSet UTF-8004"/>
|
|
||||||
</gmd:characterSet>
|
|
||||||
<gmd:topicCategory>
|
|
||||||
<gmd:MD_TopicCategoryCode>boundaries</gmd:MD_TopicCategoryCode>
|
|
||||||
</gmd:topicCategory>
|
|
||||||
<gmd:environmentDescription>
|
|
||||||
<gco:CharacterString>The TIGER/Line shapefiles contain geographic data only and do not include display mapping software or statistical data. For information on how to use the TIGER/Line shapefile data with specific software package users shall contact the company that produced the software.</gco:CharacterString>
|
|
||||||
</gmd:environmentDescription>
|
|
||||||
<gmd:extent>
|
|
||||||
<gmd:EX_Extent id="boundingExtent">
|
|
||||||
<gmd:geographicElement>
|
|
||||||
<gmd:EX_GeographicBoundingBox id="boundingGeographicBoundingBox">
|
|
||||||
<gmd:westBoundLongitude>
|
|
||||||
<gco:Decimal>-73.50821</gco:Decimal>
|
|
||||||
</gmd:westBoundLongitude>
|
|
||||||
<gmd:eastBoundLongitude>
|
|
||||||
<gco:Decimal>-69.858861</gco:Decimal>
|
|
||||||
</gmd:eastBoundLongitude>
|
|
||||||
<gmd:southBoundLatitude>
|
|
||||||
<gco:Decimal>41.187053</gco:Decimal>
|
|
||||||
</gmd:southBoundLatitude>
|
|
||||||
<gmd:northBoundLatitude>
|
|
||||||
<gco:Decimal>42.886778</gco:Decimal>
|
|
||||||
</gmd:northBoundLatitude>
|
|
||||||
</gmd:EX_GeographicBoundingBox>
|
|
||||||
</gmd:geographicElement>
|
|
||||||
<gmd:temporalElement>
|
|
||||||
<gmd:EX_TemporalExtent id="boundingTemporalExtent">
|
|
||||||
<gmd:extent>
|
|
||||||
<gml:TimePeriod gml:id="boundingTemporalExtentA">
|
|
||||||
<gml:description>publication date</gml:description>
|
|
||||||
<gml:beginPosition>2017-06</gml:beginPosition>
|
|
||||||
<gml:endPosition>2018-05</gml:endPosition>
|
|
||||||
</gml:TimePeriod>
|
|
||||||
</gmd:extent>
|
|
||||||
</gmd:EX_TemporalExtent>
|
|
||||||
</gmd:temporalElement>
|
|
||||||
</gmd:EX_Extent>
|
|
||||||
</gmd:extent>
|
|
||||||
</gmd:MD_DataIdentification>
|
|
||||||
</gmd:identificationInfo>
|
|
||||||
<!--This section provides the link for the file containing the Entity and Attribute Information. -->
|
|
||||||
<gmd:contentInfo>
|
|
||||||
<gmd:MD_FeatureCatalogueDescription>
|
|
||||||
<gmd:includedWithDataset>
|
|
||||||
<gco:Boolean>true</gco:Boolean>
|
|
||||||
</gmd:includedWithDataset>
|
|
||||||
<gmd:featureTypes>
|
|
||||||
<gco:LocalName codeSpace="unknown"/>
|
|
||||||
</gmd:featureTypes>
|
|
||||||
<gmd:featureCatalogueCitation>
|
|
||||||
<gmd:CI_Citation>
|
|
||||||
<gmd:title>
|
|
||||||
<gco:CharacterString/>
|
|
||||||
</gmd:title>
|
|
||||||
<gmd:date>
|
|
||||||
<gmd:CI_Date>
|
|
||||||
<gmd:date>
|
|
||||||
<gco:Date>2018</gco:Date>
|
|
||||||
</gmd:date>
|
|
||||||
<gmd:dateType>
|
|
||||||
<gmd:CI_DateTypeCode codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#CI_DateTypeCode"
|
|
||||||
codeListValue="publication"
|
|
||||||
codeSpace="002"/>
|
|
||||||
</gmd:dateType>
|
|
||||||
</gmd:CI_Date>
|
|
||||||
</gmd:date>
|
|
||||||
<gmd:citedResponsibleParty xlink:href="https://www.ngdc.noaa.gov/docucomp/1df27e57-4768-42de-909b-52f530601fba"
|
|
||||||
xlink:title="U.S Department of Commerce, U.S Census Bureau, Geography Division (distributor)"/>
|
|
||||||
<gmd:otherCitationDetails>
|
|
||||||
<gco:CharacterString>https://meta.geo.census.gov/data/existing/decennial/GEO/GPMB/TIGERline/TIGER2017/tract/tl_2018_tract.shp.ea.iso.xml</gco:CharacterString>
|
|
||||||
</gmd:otherCitationDetails>
|
|
||||||
</gmd:CI_Citation>
|
|
||||||
</gmd:featureCatalogueCitation>
|
|
||||||
</gmd:MD_FeatureCatalogueDescription>
|
|
||||||
</gmd:contentInfo>
|
|
||||||
<gmd:distributionInfo>
|
|
||||||
<gmd:MD_Distribution>
|
|
||||||
<gmd:distributionFormat>
|
|
||||||
<gmd:MD_Format>
|
|
||||||
<gmd:name>
|
|
||||||
<gco:CharacterString>TGRSHP (compressed)</gco:CharacterString>
|
|
||||||
</gmd:name>
|
|
||||||
<gmd:version gco:nilReason="unknown"/>
|
|
||||||
<gmd:fileDecompressionTechnique>
|
|
||||||
<gco:CharacterString>PK-ZIP, version 1.93 A or higher</gco:CharacterString>
|
|
||||||
</gmd:fileDecompressionTechnique>
|
|
||||||
</gmd:MD_Format>
|
|
||||||
</gmd:distributionFormat>
|
|
||||||
<gmd:distributionFormat>
|
|
||||||
<gmd:MD_Format>
|
|
||||||
<gmd:name>
|
|
||||||
<gco:CharacterString>HTML</gco:CharacterString>
|
|
||||||
</gmd:name>
|
|
||||||
<gmd:version gco:nilReason="unknown"/>
|
|
||||||
</gmd:MD_Format>
|
|
||||||
</gmd:distributionFormat>
|
|
||||||
<gmd:distributionFormat>
|
|
||||||
<gmd:MD_Format>
|
|
||||||
<gmd:name>
|
|
||||||
<gco:CharacterString>WMS</gco:CharacterString>
|
|
||||||
</gmd:name>
|
|
||||||
<gmd:version>
|
|
||||||
<gco:CharacterString>1.3.0</gco:CharacterString>
|
|
||||||
</gmd:version>
|
|
||||||
</gmd:MD_Format>
|
|
||||||
</gmd:distributionFormat>
|
|
||||||
<gmd:distributionFormat>
|
|
||||||
<gmd:MD_Format>
|
|
||||||
<gmd:name>
|
|
||||||
<gco:CharacterString>REST</gco:CharacterString>
|
|
||||||
</gmd:name>
|
|
||||||
<gmd:version gco:nilReason="unknown"/>
|
|
||||||
</gmd:MD_Format>
|
|
||||||
</gmd:distributionFormat>
|
|
||||||
<gmd:distributor>
|
|
||||||
<gmd:MD_Distributor>
|
|
||||||
<gmd:distributorContact xlink:href="https://www.ngdc.noaa.gov/docucomp/f48e4893-a57f-4f2b-ad5d-0cca1b34ec62"
|
|
||||||
xlink:title="U.S Department of Commerce, U.S Census Bureau, Geography Division, Spatial Data Collection and Products Branch (distributor)"/>
|
|
||||||
<gmd:distributionOrderProcess>
|
|
||||||
<gmd:MD_StandardOrderProcess>
|
|
||||||
<gmd:fees>
|
|
||||||
<gco:CharacterString>The online copy of the TIGER/Line Shapefiles may be accessed without charge.</gco:CharacterString>
|
|
||||||
</gmd:fees>
|
|
||||||
<gmd:orderingInstructions>
|
|
||||||
<gco:CharacterString>To obtain more information about ordering TIGER/Line Shapefiles visit http://www.census.gov/geo/www/tiger </gco:CharacterString>
|
|
||||||
</gmd:orderingInstructions>
|
|
||||||
</gmd:MD_StandardOrderProcess>
|
|
||||||
</gmd:distributionOrderProcess>
|
|
||||||
</gmd:MD_Distributor>
|
|
||||||
</gmd:distributor>
|
|
||||||
<gmd:transferOptions>
|
|
||||||
<gmd:MD_DigitalTransferOptions>
|
|
||||||
<gmd:onLine>
|
|
||||||
<gmd:CI_OnlineResource>
|
|
||||||
<gmd:linkage>
|
|
||||||
<gmd:URL>http://www2.census.gov/geo/tiger/TIGER2018/TRACT/tl_2018_25_tract.zip</gmd:URL>
|
|
||||||
</gmd:linkage>
|
|
||||||
<gmd:name>
|
|
||||||
<gco:CharacterString>Shapefile Zip File</gco:CharacterString>
|
|
||||||
</gmd:name>
|
|
||||||
</gmd:CI_OnlineResource>
|
|
||||||
</gmd:onLine>
|
|
||||||
</gmd:MD_DigitalTransferOptions>
|
|
||||||
</gmd:transferOptions>
|
|
||||||
<gmd:transferOptions>
|
|
||||||
<gmd:MD_DigitalTransferOptions>
|
|
||||||
<gmd:onLine>
|
|
||||||
<gmd:CI_OnlineResource>
|
|
||||||
<gmd:linkage>
|
|
||||||
<gmd:URL>https://www.census.gov/geo/maps-data/data/tiger-line.html</gmd:URL>
|
|
||||||
</gmd:linkage>
|
|
||||||
<gmd:name>
|
|
||||||
<gco:CharacterString>TIGER/Line® Shapefiles</gco:CharacterString>
|
|
||||||
</gmd:name>
|
|
||||||
<gmd:description>
|
|
||||||
<gco:CharacterString>Should be used for most mapping projects--this is our most comprehensive dataset. Designed for use with GIS
|
|
||||||
(geographic information systems).</gco:CharacterString>
|
|
||||||
</gmd:description>
|
|
||||||
</gmd:CI_OnlineResource>
|
|
||||||
</gmd:onLine>
|
|
||||||
</gmd:MD_DigitalTransferOptions>
|
|
||||||
</gmd:transferOptions>
|
|
||||||
<gmd:transferOptions>
|
|
||||||
<gmd:MD_DigitalTransferOptions>
|
|
||||||
<gmd:onLine>
|
|
||||||
<gmd:CI_OnlineResource>
|
|
||||||
<gmd:linkage>
|
|
||||||
<gmd:URL>https://tigerweb.geo.census.gov/arcgis/services/TIGERweb/tigerWMS_Current/MapServer/WMSServer</gmd:URL>
|
|
||||||
</gmd:linkage>
|
|
||||||
<gmd:applicationProfile>
|
|
||||||
<gco:CharacterString>http://opengis.net/spec/wms</gco:CharacterString>
|
|
||||||
</gmd:applicationProfile>
|
|
||||||
<gmd:name>
|
|
||||||
<gco:CharacterString>TIGERweb/tigerWMS_Current (MapServer)</gco:CharacterString>
|
|
||||||
</gmd:name>
|
|
||||||
<gmd:description>
|
|
||||||
<gco:CharacterString>This web mapping service contains the layer for 2010 Census Tracts.
|
|
||||||
This URL is to be used in mapping software like ArcMap. To use this in a web browser, see the OGC Web Mapping Specification.
|
|
||||||
</gco:CharacterString>
|
|
||||||
</gmd:description>
|
|
||||||
<gmd:function>
|
|
||||||
<gmd:CI_OnLineFunctionCode codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#CI_OnlineFunctionCode"
|
|
||||||
codeListValue="download">download
|
|
||||||
</gmd:CI_OnLineFunctionCode>
|
|
||||||
</gmd:function>
|
|
||||||
</gmd:CI_OnlineResource>
|
|
||||||
</gmd:onLine>
|
|
||||||
</gmd:MD_DigitalTransferOptions>
|
|
||||||
</gmd:transferOptions>
|
|
||||||
<gmd:transferOptions>
|
|
||||||
<gmd:MD_DigitalTransferOptions>
|
|
||||||
<gmd:onLine>
|
|
||||||
<gmd:CI_OnlineResource>
|
|
||||||
<gmd:linkage>
|
|
||||||
<gmd:URL>https://tigerweb.geo.census.gov/arcgis/rest/services/TIGERweb/Tracts_Blocks/MapServer</gmd:URL>
|
|
||||||
</gmd:linkage>
|
|
||||||
<gmd:applicationProfile>
|
|
||||||
<gco:CharacterString>http://www.geoplatform.gov/spec/esri-map-rest</gco:CharacterString>
|
|
||||||
</gmd:applicationProfile>
|
|
||||||
<gmd:name>
|
|
||||||
<gco:CharacterString>TIGERweb/Tracts_Blocks (MapServer)</gco:CharacterString>
|
|
||||||
</gmd:name>
|
|
||||||
<gmd:description>
|
|
||||||
<gco:CharacterString>This Rest Service contains the 2010 Census Tracts</gco:CharacterString>
|
|
||||||
</gmd:description>
|
|
||||||
<gmd:function>
|
|
||||||
<gmd:CI_OnLineFunctionCode codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#CI_OnlineFunctionCode"
|
|
||||||
codeListValue="download">download
|
|
||||||
</gmd:CI_OnLineFunctionCode>
|
|
||||||
</gmd:function>
|
|
||||||
</gmd:CI_OnlineResource>
|
|
||||||
</gmd:onLine>
|
|
||||||
</gmd:MD_DigitalTransferOptions>
|
|
||||||
</gmd:transferOptions>
|
|
||||||
</gmd:MD_Distribution>
|
|
||||||
</gmd:distributionInfo>
|
|
||||||
<gmd:dataQualityInfo>
|
|
||||||
<gmd:DQ_DataQuality>
|
|
||||||
<gmd:scope>
|
|
||||||
<gmd:DQ_Scope>
|
|
||||||
<gmd:level>
|
|
||||||
<gmd:MD_ScopeCode codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#MD_ScopeCode"
|
|
||||||
codeListValue="dataset"
|
|
||||||
codeSpace="005"> dataset </gmd:MD_ScopeCode>
|
|
||||||
</gmd:level>
|
|
||||||
</gmd:DQ_Scope>
|
|
||||||
</gmd:scope>
|
|
||||||
<gmd:report>
|
|
||||||
<gmd:DQ_CompletenessCommission>
|
|
||||||
<gmd:evaluationMethodDescription>
|
|
||||||
<gco:CharacterString>Data completeness of the TIGER/Line Shapefiles reflects the contents of the Census MAF/TIGER database at the time the TIGER/Line Shapefiles were created.</gco:CharacterString>
|
|
||||||
</gmd:evaluationMethodDescription>
|
|
||||||
<gmd:result gco:nilReason="unknown"/>
|
|
||||||
</gmd:DQ_CompletenessCommission>
|
|
||||||
</gmd:report>
|
|
||||||
<gmd:report>
|
|
||||||
<gmd:DQ_CompletenessOmission>
|
|
||||||
<gmd:evaluationMethodDescription>
|
|
||||||
<gco:CharacterString>Data completeness of the TIGER/Line Shapefiles reflects the contents of the Census MAF/TIGER database at the time the TIGER/Line Shapefiles were created.</gco:CharacterString>
|
|
||||||
</gmd:evaluationMethodDescription>
|
|
||||||
<gmd:result gco:nilReason="unknown"/>
|
|
||||||
</gmd:DQ_CompletenessOmission>
|
|
||||||
</gmd:report>
|
|
||||||
<gmd:report>
|
|
||||||
<gmd:DQ_ConceptualConsistency>
|
|
||||||
<gmd:measureDescription>
|
|
||||||
<gco:CharacterString>The Census Bureau performed automated tests to ensure logical consistency and limits of shapefiles. Segments making up the outer and inner Boundaries of a polygon tie end-to-end to completely enclose the area. All polygons are tested for closure.
|
|
||||||
The Census Bureau uses its internally developed geographic update system to enhance and modify spatial and attribute data in the Census MAF/TIGER database. Standard geographic codes, such as FIPS codes for states, counties, municipalities, county subdivisions, places, American Indian/Alaska Native/Native Hawaiian areas, and congressional districts are used when encoding spatial entities. The Census Bureau performed spatial data tests for logical consistency of the codes during the compilation of the original Census MAF/TIGER database files. Most of the codes for geographic entities except states, counties, urban areas, Core Based Statistical Areas (CBSAs), American Indian Areas (AIAs), and congressional districts were provided to the Census Bureau by the USGS, the agency responsible for maintaining the Geographic Names Information System (GNIS). Feature attribute information has been examined but has not been fully tested for consistency.
|
|
||||||
For the TIGER/Line Shapefiles, the Point and Vector Object Count for the G-polygon SDTS Point and Vector Object Type reflects the number of records in the shapefile attribute table. For multi-polygon features, only one attribute record exists for each multi-polygon rather than one attribute record per individual G-polygon component of the multi-polygon feature. TIGER/Line Shapefile multi-polygons are an exception to the G-polygon object type classification. Therefore, when multi-polygons exist in a shapefile, the object count will be less than the actual number of G-polygons.</gco:CharacterString>
|
|
||||||
</gmd:measureDescription>
|
|
||||||
<gmd:result gco:nilReason="unknown"/>
|
|
||||||
</gmd:DQ_ConceptualConsistency>
|
|
||||||
</gmd:report>
|
|
||||||
<gmd:lineage>
|
|
||||||
<gmd:LI_Lineage>
|
|
||||||
<gmd:processStep>
|
|
||||||
<gmd:LI_ProcessStep>
|
|
||||||
<gmd:description>
|
|
||||||
<gco:CharacterString>TIGER/Line Shapefiles are extracted from the Census MAF/TIGER database by nation, state, county, and entity. Census MAF/TIGER data for all of the aforementioned geographic entities are then distributed among the shapefiles each containing attributes for line, polygon, or landmark geographic data. </gco:CharacterString>
|
|
||||||
</gmd:description>
|
|
||||||
<gmd:dateTime>
|
|
||||||
<gco:DateTime>2018-01-01T00:00:00</gco:DateTime>
|
|
||||||
</gmd:dateTime>
|
|
||||||
<gmd:source>
|
|
||||||
<gmd:LI_Source>
|
|
||||||
<gmd:description>
|
|
||||||
<gco:CharacterString>online</gco:CharacterString>
|
|
||||||
</gmd:description>
|
|
||||||
<gmd:sourceCitation>
|
|
||||||
<gmd:CI_Citation>
|
|
||||||
<gmd:title>
|
|
||||||
<gco:CharacterString>Census MAF/TIGER database</gco:CharacterString>
|
|
||||||
</gmd:title>
|
|
||||||
<gmd:alternateTitle>
|
|
||||||
<gco:CharacterString>MAF/TIGER</gco:CharacterString>
|
|
||||||
</gmd:alternateTitle>
|
|
||||||
<gmd:date gco:nilReason="inapplicable"/>
|
|
||||||
<!--See the gmd:sourceExtent element below for the date range--><gmd:citedResponsibleParty>
|
|
||||||
<gmd:CI_ResponsibleParty>
|
|
||||||
<gmd:organisationName>
|
|
||||||
<gco:CharacterString>U.S. Department of Commerce, U.S. Census Bureau, Geography Division</gco:CharacterString>
|
|
||||||
</gmd:organisationName>
|
|
||||||
<gmd:role>
|
|
||||||
<gmd:CI_RoleCode codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#CI_RoleCode"
|
|
||||||
codeListValue="originator">originator
|
|
||||||
</gmd:CI_RoleCode>
|
|
||||||
</gmd:role>
|
|
||||||
</gmd:CI_ResponsibleParty>
|
|
||||||
</gmd:citedResponsibleParty>
|
|
||||||
<gmd:otherCitationDetails>
|
|
||||||
<gco:CharacterString> Source Contribution: All line segments</gco:CharacterString>
|
|
||||||
</gmd:otherCitationDetails>
|
|
||||||
</gmd:CI_Citation>
|
|
||||||
</gmd:sourceCitation>
|
|
||||||
<gmd:sourceExtent>
|
|
||||||
<gmd:EX_Extent>
|
|
||||||
<gmd:temporalElement>
|
|
||||||
<gmd:EX_TemporalExtent>
|
|
||||||
<gmd:extent>
|
|
||||||
<gml:TimePeriod gml:id="Cens201706">
|
|
||||||
<gml:beginPosition>201706</gml:beginPosition>
|
|
||||||
<gml:endPosition>201805</gml:endPosition>
|
|
||||||
</gml:TimePeriod>
|
|
||||||
</gmd:extent>
|
|
||||||
</gmd:EX_TemporalExtent>
|
|
||||||
</gmd:temporalElement>
|
|
||||||
</gmd:EX_Extent>
|
|
||||||
</gmd:sourceExtent>
|
|
||||||
</gmd:LI_Source>
|
|
||||||
</gmd:source>
|
|
||||||
</gmd:LI_ProcessStep>
|
|
||||||
</gmd:processStep>
|
|
||||||
</gmd:LI_Lineage>
|
|
||||||
</gmd:lineage>
|
|
||||||
</gmd:DQ_DataQuality>
|
|
||||||
</gmd:dataQualityInfo>
|
|
||||||
<gmd:metadataMaintenance>
|
|
||||||
<gmd:MD_MaintenanceInformation>
|
|
||||||
<gmd:maintenanceAndUpdateFrequency>
|
|
||||||
<gmd:MD_MaintenanceFrequencyCode codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#MD_MaintenanceFrequencyCode"
|
|
||||||
codeListValue="notPlanned"
|
|
||||||
codeSpace="011">
|
|
||||||
notPlanned
|
|
||||||
</gmd:MD_MaintenanceFrequencyCode>
|
|
||||||
</gmd:maintenanceAndUpdateFrequency>
|
|
||||||
<gmd:maintenanceNote>
|
|
||||||
<gco:CharacterString>This was transformed from the Census Metadata Import Format</gco:CharacterString>
|
|
||||||
</gmd:maintenanceNote>
|
|
||||||
<gmd:contact xlink:href="https://www.ngdc.noaa.gov/docucomp/B04DFA5D-40CD-B677-E040-0AC8C5BB4473"
|
|
||||||
xlink:title=" U.S. Department of Commerce, U.S. Census Bureau, Geography Division, Spatial Data Collection and Products Branch(custodian)"/>
|
|
||||||
</gmd:MD_MaintenanceInformation>
|
|
||||||
</gmd:metadataMaintenance>
|
|
||||||
</gmi:MI_Metadata>
|
|
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1527,7 +1527,7 @@
|
||||||
],
|
],
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"kernelspec": {
|
"kernelspec": {
|
||||||
"display_name": "Python 3",
|
"display_name": "Python 3 (ipykernel)",
|
||||||
"language": "python",
|
"language": "python",
|
||||||
"name": "python3"
|
"name": "python3"
|
||||||
},
|
},
|
||||||
|
@ -1541,7 +1541,7 @@
|
||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython3",
|
"pygments_lexer": "ipython3",
|
||||||
"version": "3.6.2"
|
"version": "3.9.9"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nbformat": 4,
|
"nbformat": 4,
|
||||||
|
|
|
@ -737,7 +737,7 @@
|
||||||
],
|
],
|
||||||
"source": [
|
"source": [
|
||||||
"plt.figure(figsize=(12, 8))\n",
|
"plt.figure(figsize=(12, 8))\n",
|
||||||
"plt.title('Relative Housing Burden for Low-Income Housing Only')\n",
|
"plt.title('Relative Housing Burden for Low-Income Hosuing Only')\n",
|
||||||
"# Set x-axis label\n",
|
"# Set x-axis label\n",
|
||||||
"plt.xlabel('Ratio')\n",
|
"plt.xlabel('Ratio')\n",
|
||||||
"# Set y-axis label\n",
|
"# Set y-axis label\n",
|
||||||
|
@ -785,6 +785,147 @@
|
||||||
"sns.histplot(housing_df[\"ratio_pre\"])"
|
"sns.histplot(housing_df[\"ratio_pre\"])"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 14,
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [
|
||||||
|
{
|
||||||
|
"data": {
|
||||||
|
"text/html": [
|
||||||
|
"<div>\n",
|
||||||
|
"<style scoped>\n",
|
||||||
|
" .dataframe tbody tr th:only-of-type {\n",
|
||||||
|
" vertical-align: middle;\n",
|
||||||
|
" }\n",
|
||||||
|
"\n",
|
||||||
|
" .dataframe tbody tr th {\n",
|
||||||
|
" vertical-align: top;\n",
|
||||||
|
" }\n",
|
||||||
|
"\n",
|
||||||
|
" .dataframe thead th {\n",
|
||||||
|
" text-align: right;\n",
|
||||||
|
" }\n",
|
||||||
|
"</style>\n",
|
||||||
|
"<table border=\"1\" class=\"dataframe\">\n",
|
||||||
|
" <thead>\n",
|
||||||
|
" <tr style=\"text-align: right;\">\n",
|
||||||
|
" <th></th>\n",
|
||||||
|
" <th>FIPS_tract_id</th>\n",
|
||||||
|
" <th>name</th>\n",
|
||||||
|
" <th>state</th>\n",
|
||||||
|
" <th>cnty</th>\n",
|
||||||
|
" <th>tract</th>\n",
|
||||||
|
" <th>numerator_pre</th>\n",
|
||||||
|
" <th>denominator_pre</th>\n",
|
||||||
|
" <th>denominator_post</th>\n",
|
||||||
|
" <th>ratio_pre</th>\n",
|
||||||
|
" <th>ratio_post</th>\n",
|
||||||
|
" </tr>\n",
|
||||||
|
" </thead>\n",
|
||||||
|
" <tbody>\n",
|
||||||
|
" <tr>\n",
|
||||||
|
" <th>29008</th>\n",
|
||||||
|
" <td>14000US22071004402</td>\n",
|
||||||
|
" <td>Census Tract 44.02, Orleans Parish, Louisiana</td>\n",
|
||||||
|
" <td>22</td>\n",
|
||||||
|
" <td>71</td>\n",
|
||||||
|
" <td>4402</td>\n",
|
||||||
|
" <td>75</td>\n",
|
||||||
|
" <td>75</td>\n",
|
||||||
|
" <td>165</td>\n",
|
||||||
|
" <td>1.00</td>\n",
|
||||||
|
" <td>0.45</td>\n",
|
||||||
|
" </tr>\n",
|
||||||
|
" <tr>\n",
|
||||||
|
" <th>37514</th>\n",
|
||||||
|
" <td>14000US29001951000</td>\n",
|
||||||
|
" <td>Census Tract 9510, Adair County, Missouri</td>\n",
|
||||||
|
" <td>29</td>\n",
|
||||||
|
" <td>1</td>\n",
|
||||||
|
" <td>951000</td>\n",
|
||||||
|
" <td>55</td>\n",
|
||||||
|
" <td>55</td>\n",
|
||||||
|
" <td>75</td>\n",
|
||||||
|
" <td>1.00</td>\n",
|
||||||
|
" <td>0.73</td>\n",
|
||||||
|
" </tr>\n",
|
||||||
|
" <tr>\n",
|
||||||
|
" <th>43932</th>\n",
|
||||||
|
" <td>14000US36027640002</td>\n",
|
||||||
|
" <td>Census Tract 6400.02, Dutchess County, New York</td>\n",
|
||||||
|
" <td>36</td>\n",
|
||||||
|
" <td>27</td>\n",
|
||||||
|
" <td>640002</td>\n",
|
||||||
|
" <td>48</td>\n",
|
||||||
|
" <td>50</td>\n",
|
||||||
|
" <td>50</td>\n",
|
||||||
|
" <td>0.96</td>\n",
|
||||||
|
" <td>0.96</td>\n",
|
||||||
|
" </tr>\n",
|
||||||
|
" <tr>\n",
|
||||||
|
" <th>71681</th>\n",
|
||||||
|
" <td>14000US55025001102</td>\n",
|
||||||
|
" <td>Census Tract 11.02, Dane County, Wisconsin</td>\n",
|
||||||
|
" <td>55</td>\n",
|
||||||
|
" <td>25</td>\n",
|
||||||
|
" <td>1102</td>\n",
|
||||||
|
" <td>60</td>\n",
|
||||||
|
" <td>60</td>\n",
|
||||||
|
" <td>89</td>\n",
|
||||||
|
" <td>1.00</td>\n",
|
||||||
|
" <td>0.67</td>\n",
|
||||||
|
" </tr>\n",
|
||||||
|
" <tr>\n",
|
||||||
|
" <th>71689</th>\n",
|
||||||
|
" <td>14000US55025001603</td>\n",
|
||||||
|
" <td>Census Tract 16.03, Dane County, Wisconsin</td>\n",
|
||||||
|
" <td>55</td>\n",
|
||||||
|
" <td>25</td>\n",
|
||||||
|
" <td>1603</td>\n",
|
||||||
|
" <td>1460</td>\n",
|
||||||
|
" <td>1599</td>\n",
|
||||||
|
" <td>1934</td>\n",
|
||||||
|
" <td>0.91</td>\n",
|
||||||
|
" <td>0.75</td>\n",
|
||||||
|
" </tr>\n",
|
||||||
|
" </tbody>\n",
|
||||||
|
"</table>\n",
|
||||||
|
"</div>"
|
||||||
|
],
|
||||||
|
"text/plain": [
|
||||||
|
" FIPS_tract_id name \\\n",
|
||||||
|
"29008 14000US22071004402 Census Tract 44.02, Orleans Parish, Louisiana \n",
|
||||||
|
"37514 14000US29001951000 Census Tract 9510, Adair County, Missouri \n",
|
||||||
|
"43932 14000US36027640002 Census Tract 6400.02, Dutchess County, New York \n",
|
||||||
|
"71681 14000US55025001102 Census Tract 11.02, Dane County, Wisconsin \n",
|
||||||
|
"71689 14000US55025001603 Census Tract 16.03, Dane County, Wisconsin \n",
|
||||||
|
"\n",
|
||||||
|
" state cnty tract numerator_pre denominator_pre denominator_post \\\n",
|
||||||
|
"29008 22 71 4402 75 75 165 \n",
|
||||||
|
"37514 29 1 951000 55 55 75 \n",
|
||||||
|
"43932 36 27 640002 48 50 50 \n",
|
||||||
|
"71681 55 25 1102 60 60 89 \n",
|
||||||
|
"71689 55 25 1603 1460 1599 1934 \n",
|
||||||
|
"\n",
|
||||||
|
" ratio_pre ratio_post \n",
|
||||||
|
"29008 1.00 0.45 \n",
|
||||||
|
"37514 1.00 0.73 \n",
|
||||||
|
"43932 0.96 0.96 \n",
|
||||||
|
"71681 1.00 0.67 \n",
|
||||||
|
"71689 0.91 0.75 "
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"execution_count": 14,
|
||||||
|
"metadata": {},
|
||||||
|
"output_type": "execute_result"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"source": [
|
||||||
|
"# So only 4 that are > 90%\n",
|
||||||
|
"housing_df[housing_df[\"ratio_pre\"] > 0.90]"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 15,
|
"execution_count": 15,
|
||||||
|
@ -2476,11 +2617,18 @@
|
||||||
"source": [
|
"source": [
|
||||||
"seg_austin_2013.statistic"
|
"seg_austin_2013.statistic"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": null,
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [],
|
||||||
|
"source": []
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"kernelspec": {
|
"kernelspec": {
|
||||||
"display_name": "Python 3",
|
"display_name": "Python 3 (ipykernel)",
|
||||||
"language": "python",
|
"language": "python",
|
||||||
"name": "python3"
|
"name": "python3"
|
||||||
},
|
},
|
||||||
|
@ -2494,7 +2642,7 @@
|
||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython3",
|
"pygments_lexer": "ipython3",
|
||||||
"version": "3.6.2"
|
"version": "3.7.4"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nbformat": 4,
|
"nbformat": 4,
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1273,7 +1273,7 @@
|
||||||
],
|
],
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"kernelspec": {
|
"kernelspec": {
|
||||||
"display_name": "Python 3",
|
"display_name": "Python 3 (ipykernel)",
|
||||||
"language": "python",
|
"language": "python",
|
||||||
"name": "python3"
|
"name": "python3"
|
||||||
},
|
},
|
||||||
|
@ -1287,7 +1287,7 @@
|
||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython3",
|
"pygments_lexer": "ipython3",
|
||||||
"version": "3.6.2"
|
"version": "3.9.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nbformat": 4,
|
"nbformat": 4,
|
||||||
|
|
Loading…
Add table
Reference in a new issue