Process 2024-12 national address register. Still need to make some improvements

This commit is contained in:
Diego Ripley
2025-06-06 22:49:47 +00:00
parent 2350d6d8d7
commit 5e26ec282e
12 changed files with 765 additions and 248 deletions
+38
View File
@@ -0,0 +1,38 @@
#!/bin/bash
INPUT_FOLDER="${DATA_FOLDER}/national_address_register/input"
EXTRACTED_FOLDER="${DATA_FOLDER}/national_address_register/extracted"
process_202412() {
# Process 2024-12 vintage
# Extract files
echo "Extracting ${INPUT_FOLDER}/2024-12/202412.zip to ${EXTRACTED_FOLDER}/2024-12"
unzip -q -n ${INPUT_FOLDER}/2024-12/202412.zip -d ${EXTRACTED_FOLDER}/2024-12
jupyter execute process_2024_12.ipynb
}
process_202406() {
# Process 2024-06 vintage
echo "Extracting ${INPUT_FOLDER}/2024.zip"
unzip -q -n ${INPUT_FOLDER}/2024.zip -d ${EXTRACTED_FOLDER}/2024-06
# Encoding is utf-8
}
process_2023() {
# Process 2023
echo "Extracting ${INPUT_FOLDER}/2023.zip"
unzip -q -n ${INPUT_FOLDER}/2023.zip -d ${EXTRACTED_FOLDER}/2023
# Encoding is latin-1
}
process_2022() {
# Process 2022
echo "Extracting ${INPUT_FOLDER}/2022.zip"
unzip -q -n ${INPUT_FOLDER}/2022.zip -d ${EXTRACTED_FOLDER}/2022
# Encoding is latin-1
}
process_202412
#process_202406
#process_2023
#process_2022