mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
playing around with borehole data
This commit is contained in:
parent
3693ade68f
commit
8989b1e5eb
2 changed files with 21 additions and 1 deletions
|
|
@ -108,3 +108,20 @@ def handler():
|
||||||
],
|
],
|
||||||
addresses=address_meta
|
addresses=address_meta
|
||||||
)
|
)
|
||||||
|
|
||||||
|
from dbfread import DBF
|
||||||
|
import os
|
||||||
|
from tqdm import tqdm
|
||||||
|
import pandas as pd
|
||||||
|
borehole_file = os.path.abspath(os.path.dirname(__file__)) + "/model_data/local_data/borehole/borehole.dbf"
|
||||||
|
table = DBF(borehole_file)
|
||||||
|
borehole_data = [x for x in tqdm(table, total=len(table))]
|
||||||
|
|
||||||
|
# Let's take a sample
|
||||||
|
borehole_sample = borehole_data[:1000]
|
||||||
|
df = pd.DataFrame(borehole_sample)
|
||||||
|
|
||||||
|
import geopandas as gpd
|
||||||
|
|
||||||
|
borehole_shape_file = os.path.abspath(os.path.dirname(__file__)) + "/model_data/local_data/borehole/borehole.shp"
|
||||||
|
boreholes = gpd.read_file(borehole_shape_file)
|
||||||
|
|
|
||||||
|
|
@ -8,4 +8,7 @@ mock
|
||||||
pytest-cov
|
pytest-cov
|
||||||
pytest-mock
|
pytest-mock
|
||||||
fuzzywuzzy
|
fuzzywuzzy
|
||||||
python-Levenshtein
|
python-Levenshtein
|
||||||
|
dbfread
|
||||||
|
geopandas
|
||||||
|
geopy
|
||||||
Loading…
Add table
Reference in a new issue