Skip to content

Commit 9ff2905

Browse files
committed
consolidate bash scripts
1 parent 03e677c commit 9ff2905

File tree

5 files changed

+42
-61
lines changed

5 files changed

+42
-61
lines changed

.github/workflows/pluto_build.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -83,18 +83,9 @@ jobs:
8383
run: python -m dcpy.lifecycle.builds.load load --recipe-path ${{ inputs.recipe_file
8484
}}.lock.yml
8585

86-
- name: Load Local Data
87-
run: ./01_load_local_csvs.sh
88-
89-
- name: building ...
86+
- name: Build
9087
run: ./02_build.sh
9188

92-
- name: apply corrections
93-
run: ./03_corrections.sh
94-
95-
- name: Archive
96-
run: ./04_archive.sh
97-
9889
- name: QAQC
9990
run: ./05_qaqc.sh
10091

products/pluto/pluto_build/01_load_local_csvs.sh

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

products/pluto/pluto_build/02_build.sh

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ source ./bash/config.sh
33
set_error_traps
44

55
echo "Starting to build PLUTO ..."
6+
run_sql_file sql/_create.sql
67
run_sql_file sql/preprocessing.sql
78
run_sql_file sql/create_pts.sql
89
run_sql_file sql/create_rpad_geo.sql
@@ -108,4 +109,44 @@ run_sql_file sql/plutomapid_1.sql
108109
run_sql_file sql/plutomapid_2.sql
109110
run_sql_file sql/shorelineclip.sql
110111

112+
run_sql_file sql/corr_create.sql
113+
114+
echo "Applying corrections to PLUTO"
115+
run_sql_file sql/corr_lotarea.sql
116+
run_sql_file sql/corr_template.sql -v FIELD=yearbuilt
117+
run_sql_file sql/corr_template.sql -v FIELD=ownername
118+
run_sql_file sql/corr_ownername_punctuation.sql
119+
run_sql_file sql/corr_template.sql -v FIELD=cd
120+
run_sql_file sql/corr_template.sql -v FIELD=numfloors
121+
run_sql_file sql/corr_template.sql -v FIELD=numbldgs
122+
run_sql_file sql/corr_template.sql -v FIELD=unitsres
123+
run_sql_file sql/corr_template.sql -v FIELD=unitstotal
124+
run_sql_file sql/corr_inwoodrezoning.sql
125+
run_sql_file sql/corr_template.sql -v FIELD=bct2020
126+
run_sql_file sql/corr_template.sql -v FIELD=address
127+
run_sql_file sql/remove_unitlots.sql
128+
129+
echo "Creating export tables"
130+
run_sql_file sql/export.sql
131+
132+
run_sql_file \
133+
sql/export_mappluto_shp.sql\
134+
-v TABLE='mappluto'\
135+
-v GEOM='clipped_2263'
136+
137+
run_sql_file \
138+
sql/export_mappluto_shp.sql\
139+
-v TABLE='mappluto_unclipped'\
140+
-v GEOM='geom_2263'
141+
142+
run_sql_file \
143+
sql/export_mappluto_gdb.sql\
144+
-v TABLE='mappluto_gdb'\
145+
-v GEOM='clipped_2263'
146+
147+
run_sql_file \
148+
sql/export_mappluto_gdb.sql\
149+
-v TABLE='mappluto_unclipped_gdb'\
150+
-v GEOM='geom_2263'
151+
111152
echo 'Done'

products/pluto/pluto_build/03_corrections.sh

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

products/pluto/pluto_build/04_archive.sh

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

0 commit comments

Comments
 (0)