Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a function to convert NSI to building inventory for earthquake #110

Draft
wants to merge 24 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
521ce56
NSI utils for obtaining NSI data
ywkim312 Jan 8, 2025
367247e
Added get fips list by state method
ywkim312 Jan 8, 2025
4ca3a70
Updated environment to fix build error
ywkim312 Jan 8, 2025
38ee8be
Updated gitignore
ywkim312 Jan 8, 2025
d17344a
updated meta.yaml to fix conda build
ywkim312 Jan 8, 2025
3f21523
Added FIPS generation method
ywkim312 Jan 8, 2025
5874b92
Modified changelog
ywkim312 Jan 8, 2025
8c4e079
Updated pytest for NSI util
ywkim312 Jan 8, 2025
f2eeb42
Renamed NSIUtil to NSIParser
ywkim312 Jan 14, 2025
9c9888b
Updated based on PR comments
ywkim312 Jan 14, 2025
6e20118
Removed init.py from tests folder
ywkim312 Jan 14, 2025
dbe203e
Added the function for creating tornado building inventory
ywkim312 Feb 5, 2025
67a27b2
added the csv file for occ building mapping
ywkim312 Feb 5, 2025
a3d0dff
Added warning instead of error when the occ type is not there
ywkim312 Feb 5, 2025
a803429
Added occupancy mapping data
ywkim312 Feb 5, 2025
48514b4
Updated the fallback logic for NSI earthquake building invetory data …
ywkim312 Feb 11, 2025
b781cef
Added the function for determinig the region by given fips
ywkim312 Feb 25, 2025
9a63d6a
fixed merge conflict
ywkim312 Feb 25, 2025
4de14ee
Added building mapping data for eastcoast and midwest
ywkim312 Feb 25, 2025
96764ab
renamed the mapping tables
ywkim312 Feb 25, 2025
882acde
added the print out statistics for unmatched data
ywkim312 Feb 25, 2025
c583ed8
Added the logic for midwest and eastcoast
ywkim312 Feb 26, 2025
d39f9d3
Updated changelog
ywkim312 Feb 26, 2025
3bd0e80
created pytest
ywkim312 Feb 26, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased]
### Added
- Conversion of NSI data to IN-CORE building inventory data for Earthquake [#96](https://github.com/IN-CORE/pyincore-data/issues/96)
- Midwest and Eastcoast building mapping for NSI building inventory process [#106](https://github.com/IN-CORE/pyincore-data/issues/106)
- Conversion statistics in NSI building inventory process [#107](https://github.com/IN-CORE/pyincore-data/issues/107)
- Automatic determination of the region by the fips code [#108](https://github.com/IN-CORE/pyincore-data/issues/108)

## [0.8.0] - 2025-02-20

Expand Down
3 changes: 3 additions & 0 deletions pyincore_data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
from pyincore_data.censusutil import CensusUtil
from pyincore_data.censusviz import CensusViz
from pyincore_data.nsiparser import NsiParser

from pyincore_data.nsibuildinginventory import NsiBuildingInventory
from pyincore_data.utils.datautil import DataUtil
from pyincore_data.utils.nsiutil import NsiUtil

import pyincore_data.globals

Expand Down
37 changes: 37 additions & 0 deletions pyincore_data/nsibuildinginventory.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import os
import geopandas as gpd
from pyincore_data.nsiparser import NsiParser
from pyincore_data.utils.nsiutil import NsiUtil


class NsiBuildingInventory:
@staticmethod
def convert_nsi_to_building_inventory_by_county_fips_list(fips_list):
"""
Convert NSI data to building inventory data by county FIPS list

:param fips_list: list of county FIPS codes. The list should be string list not numeric
:return: geodataframe with building inventory data
"""
gdf = NsiParser.create_nsi_gdf_by_counties_fips_list(fips_list)
region = NsiUtil.determine_region_by_fips(fips_list[0])
gdf = NsiUtil.assign_hazus_specific_structure_type(gdf, region, False, random=False)
gdf.set_index('guid', inplace=True)

return gdf

@staticmethod
def convert_nsi_to_building_inventory_from_geojson(in_json, region="westCoast"):
"""
Convert NSI data to building inventory data from GeoJSON file

:param in_json:
:param region: region of the data, it should be either eastCoast, westCoast, or midWest

:return: geodataframe with building inventory data
"""
gdf = gpd.read_file(in_json)
gdf = NsiUtil.assign_hazus_specific_structure_type(gdf, region, False, random=False)
gdf.set_index('guid', inplace=True)

return gdf
3 changes: 2 additions & 1 deletion pyincore_data/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
# terms of the Mozilla Public License v2.0 which accompanies this distribution,
# and is available at https://www.mozilla.org/en-US/MPL/2.0/

from pyincore_data.utils.datautil import DataUtil
from pyincore_data.utils.datautil import DataUtil
from pyincore_data.utils.nsiutil import NsiUtil
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
OccClass,S1H ,S2H ,S4H ,S5H ,C1H ,C2H ,C3H ,PC2H ,RM2H 
RES3 ,8.0,21.0,8.0,,34.0,17.0,2.0,5.0,5.0
RES4 ,8.0,21.0,8.0,,34.0,17.0,2.0,5.0,5.0
RES5 ,6.0,16.0,6.0,,40.0,20.0,3.0,5.0,4.0
COM4 ,15.0,36.0,15.0,,15.0,8.0,,2.0,9.0
COM5 ,15.0,36.0,15.0,,15.0,8.0,,2.0,9.0
COM6 ,14.0,35.0,14.0,,17.0,8.0,2.0,2.0,8.0
COM7 ,15.0,38.0,15.0,,14.0,8.0,,2.0,8.0
COM10 ,5.0,12.0,5.0,,43.0,21.0,4.0,6.0,4.0
AGR1 ,7.0,4.0,18.0,,20.0,42.0,,,9.0
GOV1 ,,,,,,,,,
EDU2 ,,,,,,,,,
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
OccClass,W1 ,W2 ,S1L ,S2L ,S3 ,S4L ,S5L ,C1L ,C2L ,C3L ,PC1 ,PC2L ,RM1L ,RM2L ,URML ,MH 
RES2 ,,,,,,,,,,,,,,,,100.0
RES3 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20.0,7.0,3.0,,3.0,3.0,,2.0,10.0,
IND6 ,,10.0,21.0,14.0,7.0,2.0,16.0,5.0,2.0,,2.0,2.0,2.0,3.0,14.0,
AGR1 ,,48.0,8.0,6.0,12.0,,7.0,2.0,,,,,3.0,2.0,12.0,
REL1 ,36.0,,4.0,4.0,,,3.0,2.0,2.0,,2.0,,7.0,6.0,34.0,
GOV1 ,,7.0,24.0,16.0,3.0,,19.0,5.0,3.0,,2.0,1.0,3.0,3.0,13.0,
GOV2 ,,8.0,16.0,11.0,4.0,,13.0,8.0,3.0,2.0,4.0,3.0,4.0,5.0,19.0,
EDU1 ,,13.0,17.0,13.0,,,13.0,5.0,3.0,,2.0,2.0,5.0,5.0,22.0,
EDU2 ,,4.0,18.0,13.0,,,14.0,8.0,3.0,2.0,4.0,3.0,5.0,4.0,22.0,
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
OccClass,S1M ,S2M ,S4M ,S5M ,C1M ,C2M ,C3M ,PC2M ,RM1M ,RM2M ,URMM 
RES3 ,3.0,4.0,,,6.0,3.0,,14.0,,13.0,57.0
RES4 ,9.0,12.0,,3.0,18.0,9.0,2.0,11.0,,7.0,29.0
RES5 ,7.0,10.0,,3.0,23.0,11.0,3.0,12.0,,5.0,26.0
RES6 ,,,,,,,,,,,
COM1 ,23.0,29.0,2.0,8.0,5.0,3.0,,5.0,,5.0,20.0
COM2 ,23.0,30.0,3.0,8.0,4.0,3.0,,5.0,,5.0,19.0
COM3 ,10.0,13.0,,3.0,5.0,4.0,,11.0,,10.0,44.0
COM4 ,14.0,19.0,2.0,5.0,7.0,4.0,,9.0,,7.0,33.0
COM5 ,15.0,21.0,2.0,6.0,8.0,5.0,,8.0,,6.0,29.0
COM6 ,21.0,27.0,2.0,8.0,12.0,6.0,2.0,7.0,,2.0,13.0
COM7 ,15.0,20.0,2.0,5.0,7.0,4.0,,9.0,,6.0,32.0
COM8 ,22.0,30.0,3.0,8.0,5.0,3.0,,5.0,,5.0,19.0
COM9 ,,,,,,,,,,,
COM10 ,10.0,13.0,,3.0,38.0,17.0,6.0,11.0,,,2.0
IND1 ,,,,,,,,,,,
IND2 ,22.0,28.0,2.0,8.0,10.0,5.0,2.0,6.0,,3.0,14.0
IND3 ,25.0,32.0,3.0,9.0,6.0,4.0,,4.0,,3.0,14.0
IND4 ,,,,,,,,,,,
IND5 ,24.0,32.0,3.0,9.0,9.0,6.0,,5.0,,2.0,10.0
IND6 ,,,,,,,,,,,
AGR1 ,19.0,25.0,2.0,7.0,4.0,2.0,,7.0,,6.0,28.0
REL1 ,5.0,9.0,,2.0,4.0,3.0,,12.0,,12.0,53.0
GOV1 ,24.0,30.0,3.0,9.0,7.0,5.0,,5.0,,3.0,14.0
GOV2 ,,,,,,,,,,,
EDU2 ,17.0,23.0,2.0,6.0,10.0,5.0,2.0,8.0,,4.0,23.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
FIPS,Abbreviation,Name,Group
02,AK,Alaska,WestCoast
01,AL,Alabama,EastCoast
05,AR,Arkansas,MidWest
04,AZ,Arizona,WestCoast
06,CA,California,WestCoast
08,CO,Colorado,WestCoast
09,CT,Connecticut,EastCoast
11,DC,DistrictofColumbia,EastCoast
10,DE,Delaware,EastCoast
12,FL,Florida,EastCoast
13,GA,Georgia,EastCoast
15,HI,Hawaii,WestCoast
19,IA,Iowa,MidWest
16,ID,Idaho,WestCoast
17,IL,Illinois,MidWest
18,IN,Indiana,MidWest
20,KS,Kansas,MidWest
21,KY,Kentucky,MidWest
22,LA,Louisiana,MidWest
25,MA,Massachusetts,EastCoast
24,MD,Maryland,EastCoast
23,ME,Maine,EastCoast
26,MI,Michigan,MidWest
27,MN,Minnesota,MidWest
29,MO,Missouri,MidWest
28,MS,Mississippi,MidWest
30,MT,Montana,WestCoast
37,NC,NorthCarolina,EastCoast
38,ND,NorthDakota,MidWest
31,NE,Nebraska,MidWest
33,NH,NewHampshire,EastCoast
34,NJ,NewJersey,EastCoast
35,NM,NewMexico,WestCoast
32,NV,Nevada,WestCoast
36,NY,NewYork,EastCoast
39,OH,Ohio,MidWest
40,OK,Oklahoma,MidWest
41,OR,Oregon,WestCoast
42,PA,Pennsylvania,EastCoast
44,RI,RhodeIsland,EastCoast
45,SC,SouthCarolina,EastCoast
46,SD,SouthDakota,MidWest
47,TN,Tennessee,MidWest
48,TX,Texas,MidWest
49,UT,Utah,WestCoast
51,VA,Virginia,EastCoast
50,VT,Vermont,EastCoast
53,WA,Washington,WestCoast
55,WI,Wisconsin,MidWest
54,WV,WestVirginia,EastCoast
56,WY,Wyoming,WestCoast
60,AS,AmericanSamoa,WestCoast
66,GU,Guam,WestCoast
69,MP,NorthernMarianaIslands,WestCoast
72,PR,PuertoRico,EastCoast
78,VI,USVirginIslands,EastCoast
12 changes: 12 additions & 0 deletions pyincore_data/utils/data/nsi/occ_bldg_mapping/midwest/HighRise.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
OccClass,S1H ,S2H ,S4H ,S5H ,C1H ,C2H ,C3H ,PC2H ,RM2H 
RES3 ,3.0,13.0,4.0,,16.0,44.0,7.0,7.0,6.0
RES4 ,3.0,13.0,4.0,,16.0,44.0,7.0,7.0,6.0
RES5 ,,,,,26.0,74.0,,,
COM4 ,7.0,29.0,9.0,,12.0,32.0,4.0,4.0,3.0
COM5 ,7.0,29.0,9.0,,12.0,32.0,4.0,4.0,3.0
COM6 ,7.0,29.0,9.0,,13.0,36.0,2.0,2.0,2.0
COM7 ,7.0,29.0,9.0,,12.0,32.0,4.0,4.0,3.0
COM10 ,5.0,19.0,6.0,,18.0,52.0,,,
AGR1 ,2.0,6.0,2.0,,16.0,44.0,11.0,11.0,8.0
GOV1 ,,,,,,,,,
EDU2 ,,,,,,,,,
28 changes: 28 additions & 0 deletions pyincore_data/utils/data/nsi/occ_bldg_mapping/midwest/LowRise.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
OccClass,W1 ,W2 ,S1L ,S2L ,S3 ,S4L ,S5L ,C1L ,C2L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,,28.0,
IND6 ,,30.0,2.0,4.0,11.0,6.0,7.0,,5.0,,5.0,,2.0,,28.0,
AGR1 ,,10.0,2.0,4.0,11.0,6.0,7.0,2.0,10.0,2.0,14.0,2.0,2.0,,28.0,
REL1 ,30.0,,,3.0,5.0,3.0,4.0,,5.0,,5.0,,2.0,2.0,41.0,
GOV1 ,,15.0,14.0,21.0,,,,7.0,6.0,,4.0,,3.0,,30.0,
GOV2 ,,14.0,7.0,17.0,,,,4.0,12.0,,,,,3.0,43.0,
EDU1 ,,10.0,5.0,12.0,,,,5.0,7.0,,,,11.0,,50.0,
EDU2 ,,14.0,6.0,12.0,,,2.0,8.0,11.0,,,,,10.0,37.0,
26 changes: 26 additions & 0 deletions pyincore_data/utils/data/nsi/occ_bldg_mapping/midwest/MidRise.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
OccClass,S1M ,S2M ,S4M ,S5M ,C1M ,C2M ,C3M ,PC2M ,RM1M ,RM2M ,URMM 
RES3 ,,10.0,7.0,3.0,14.0,39.0,,7.0,,2.0,18.0
RES4 ,,10.0,7.0,3.0,14.0,37.0,2.0,7.0,,2.0,18.0
RES5 ,,,,,25.0,62.0,2.0,11.0,,,
RES6 ,,,,,,,,,,,
COM1 ,3.0,20.0,16.0,6.0,11.0,27.0,2.0,5.0,,2.0,8.0
COM2 ,,7.0,3.0,,14.0,37.0,2.0,7.0,,3.0,27.0
COM3 ,3.0,20.0,16.0,6.0,11.0,27.0,2.0,5.0,,2.0,8.0
COM4 ,3.0,20.0,16.0,6.0,11.0,27.0,2.0,5.0,,2.0,8.0
COM5 ,3.0,20.0,16.0,6.0,11.0,27.0,2.0,5.0,,2.0,8.0
COM6 ,3.0,20.0,16.0,6.0,12.0,30.0,2.0,6.0,,,5.0
COM7 ,3.0,20.0,16.0,6.0,11.0,27.0,2.0,5.0,,2.0,8.0
COM8 ,3.0,20.0,16.0,6.0,11.0,27.0,2.0,5.0,,2.0,8.0
COM9 ,,,,,,,,,,,
COM10 ,2.0,14.0,10.0,4.0,17.0,43.0,2.0,8.0,,,
IND1 ,,,,,,,,,,,
IND2 ,,7.0,3.0,,14.0,37.0,2.0,7.0,,3.0,27.0
IND3 ,,7.0,3.0,,14.0,37.0,2.0,7.0,,3.0,27.0
IND4 ,,,,,,,,,,,
IND5 ,,7.0,3.0,,14.0,37.0,2.0,7.0,,3.0,27.0
IND6 ,,,,,,,,,,,
AGR1 ,,7.0,3.0,,14.0,37.0,2.0,7.0,,3.0,27.0
REL1 ,3.0,20.0,16.0,6.0,11.0,27.0,2.0,5.0,,2.0,8.0
GOV1 ,20.0,24.0,,,11.0,9.0,,,,5.0,31.0
GOV2 ,,,,,,,,,,,
EDU2 ,7.0,14.0,,,9.0,13.0,,,,13.0,44.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
OccClass,S1H ,S2H ,S4H ,S5H ,C1H ,C2H ,C3H ,PC2H ,RM2H 
RES3 ,30.0,21.0,6.0,,13.0,24.0,,3.0,3.0
RES4 ,48.0,10.0,9.0,,12.0,19.0,,1.0,1.0
RES5 ,20.0,15.0,25.0,,30.0,5.0,,,5.0
COM4 ,40.0,26.0,18.0,,6.0,7.0,,1.0,2.0
COM5 ,40.0,26.0,18.0,,6.0,7.0,,1.0,2.0
COM6 ,35.0,27.0,17.0,,4.0,15.0,,1.0,1.0
COM7 ,,,,,,,,,
COM10 ,,,,,,,,,
AGR1 ,,,,,,,,,
GOV1 ,46.0,13.0,22.0,,10.0,8.0,,,1.0
EDU2 ,35.0,20.0,20.0,,25.0,,,,
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
OccClass,S1H ,S2H ,S4H ,S5H ,C1H ,C2H ,C3H ,PC2H ,RM2H 
RES3 ,44.0,6.0,5.0,,18.0,20.0,,5.0,2.0
RES4 ,56.0,10.0,6.0,,16.0,9.0,,2.0,1.0
RES5 ,25.0,18.0,20.0,,37.0,,,,
COM4 ,56.0,10.0,14.0,,14.0,5.0,,1.0,
COM5 ,54.0,10.0,15.0,,15.0,5.0,,1.0,
COM6 ,45.0,6.0,19.0,,13.0,17.0,,,
COM7 ,,,,,,,,,
COM10 ,,,,,,,,,
AGR1 ,,,,,,,,,
GOV1 ,52.0,14.0,14.0,,14.0,6.0,,,
EDU2 ,30.0,10.0,10.0,,50.0,,,,
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
OccClass,S1H ,S2H ,S4H ,S5H ,C1H ,C2H ,C3H ,PC2H ,RM2H 
RES3 ,39.0,1.0,2.0,,8.0,24.0,23.0,3.0,
RES4 ,45.0,3.0,3.0,,8.0,20.0,18.0,3.0,
RES5 ,15.0,5.0,10.0,,,30.0,40.0,,
COM4 ,47.0,10.0,4.0,,1.0,21.0,16.0,1.0,
COM5 ,47.0,10.0,4.0,,1.0,21.0,16.0,1.0,
COM6 ,56.0,9.0,1.0,,1.0,24.0,8.0,1.0,
COM7 ,,,,,,,,,
COM10 ,,,,,,,,,
AGR1 ,,,,,,,,,
GOV1 ,53.0,5.0,5.0,,3.0,30.0,3.0,1.0,
EDU2 ,5.0,5.0,35.0,,,40.0,15.0,,
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
OccClass,W1 ,W2 ,S1L ,S2L ,S3 ,S4L ,S5L ,C1L ,C2L ,C3L ,PC1 ,PC2L ,RM1L ,RM2L ,URML ,MH 
RES2 ,,,,,,,,,,,,,,,,100.0
RES3 ,72.0,,1.0,2.0,2.0,,1.0,,6.0,2.0,,,8.0,,3.0,3.0
RES4 ,55.0,,1.0,2.0,2.0,2.0,3.0,,11.0,2.0,,,18.0,1.0,3.0,
RES5 ,39.0,,3.0,3.0,,1.0,8.0,,16.0,6.0,,,18.0,1.0,5.0,
RES6 ,70.0,,,,3.0,1.0,1.0,,5.0,,,,20.0,,,
COM1 ,,34.0,3.0,1.0,3.0,2.0,4.0,,13.0,5.0,10.0,1.0,18.0,2.0,4.0,
COM2 ,,12.0,4.0,5.0,5.0,3.0,3.0,,18.0,,22.0,1.0,19.0,4.0,4.0,
COM3 ,,12.0,3.0,5.0,5.0,2.0,3.0,,23.0,4.0,12.0,1.0,22.0,4.0,4.0,
COM4 ,,34.0,3.0,3.0,1.0,2.0,3.0,,17.0,5.0,3.0,,23.0,4.0,2.0,
COM5 ,,34.0,3.0,3.0,1.0,2.0,3.0,,17.0,5.0,3.0,,23.0,4.0,2.0,
COM6 ,,32.0,5.0,2.0,4.0,3.0,,,16.0,6.0,,,28.0,4.0,,
COM7 ,,46.0,13.0,1.0,3.0,3.0,,,9.0,,,,20.0,,5.0,
COM8 ,,13.0,17.0,12.0,3.0,3.0,,,13.0,6.0,,,30.0,3.0,,
COM9 ,,10.0,10.0,30.0,,,5.0,,10.0,,5.0,,30.0,,,
COM10 ,,,5.0,8.0,,20.0,,,34.0,,,5.0,20.0,6.0,2.0,
IND1 ,,10.0,25.0,30.0,3.0,,,7.0,14.0,,,,9.0,2.0,,
IND2 ,,8.0,5.0,14.0,17.0,4.0,,,10.0,5.0,22.0,3.0,12.0,,,
IND3 ,,,14.0,16.0,6.0,1.0,,5.0,17.0,,28.0,1.0,10.0,2.0,,
IND4 ,,,18.0,25.0,9.0,,,11.0,10.0,,7.0,,15.0,3.0,,2.0
IND5 ,,,4.0,9.0,3.0,2.0,,4.0,20.0,,35.0,3.0,15.0,4.0,,1.0
IND6 ,,30.0,,1.0,15.0,,,,7.0,,4.0,,20.0,3.0,,20.0
AGR1 ,51.0,,4.0,8.0,12.0,,,,2.0,,10.0,,11.0,2.0,,
REL1 ,20.0,,4.0,1.0,3.0,3.0,,,24.0,,4.0,,37.0,4.0,,
GOV1 ,,21.0,6.0,3.0,2.0,2.0,,,26.0,5.0,4.0,2.0,27.0,2.0,,
GOV2 ,50.0,,,,,,,,13.0,,7.0,,20.0,10.0,,
EDU1 ,25.0,,3.0,4.0,5.0,4.0,,,20.0,,4.0,2.0,29.0,4.0,,
EDU2 ,5.0,,2.0,12.0,,5.0,,,20.0,,,,50.0,6.0,,
Original file line number Diff line number Diff line change
@@ -0,0 +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
IND5 ,,1.0,12.0,8.0,2.0,3.0,,,10.0,,38.0,7.0,17.0,1.0,,1.0
IND6 ,,30.0,4.0,6.0,11.0,,,,8.0,,16.0,6.0,14.0,,,5.0
AGR1 ,40.0,,8.0,11.0,8.0,,,,3.0,,11.0,1.0,15.0,1.0,,2.0
REL1 ,23.0,,12.0,3.0,1.0,6.0,,,26.0,,1.0,3.0,22.0,3.0,,
GOV1 ,,8.0,15.0,4.0,3.0,7.0,,2.0,32.0,,,4.0,16.0,9.0,,
GOV2 ,40.0,,3.0,7.0,,23.0,,,10.0,,,7.0,3.0,7.0,,
EDU1 ,24.0,,9.0,6.0,1.0,5.0,,3.0,16.0,3.0,4.0,3.0,21.0,5.0,,
EDU2 ,5.0,,10.0,10.0,,5.0,,,20.0,,5.0,,40.0,5.0,,
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
OccClass,W1 ,W2 ,S1L ,S2L ,S3 ,S4L ,S5L ,C1L ,C2L ,C3L ,PC1 ,PC2L ,RM1L ,RM2L ,URML ,MH 
RES2 ,,,,,,,,,,,,,,,,100.0
RES3 ,73.0,,1.0,1.0,1.0,,6.0,,3.0,3.0,,,1.0,,9.0,2.0
RES4 ,34.0,,2.0,1.0,2.0,1.0,19.0,,16.0,3.0,,,4.0,,18.0,
RES5 ,20.0,,5.0,1.0,,1.0,,,28.0,18.0,,,6.0,,21.0,
RES6 ,45.0,,,,10.0,,5.0,,10.0,,,,20.0,,10.0,
COM1 ,,22.0,2.0,,6.0,3.0,20.0,,17.0,1.0,,,6.0,,23.0,
COM2 ,,8.0,3.0,,4.0,2.0,41.0,,18.0,1.0,3.0,,5.0,2.0,13.0,
COM3 ,,28.0,1.0,1.0,3.0,,18.0,,7.0,,1.0,,8.0,,33.0,
COM4 ,,27.0,2.0,1.0,3.0,,19.0,,15.0,,,,7.0,,26.0,
COM5 ,,27.0,2.0,1.0,3.0,,19.0,,15.0,,,,7.0,,26.0,
COM6 ,,8.0,5.0,2.0,11.0,,11.0,,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