Skip to content

Commit

Permalink
fix: use correct attribute for z
Browse files Browse the repository at this point in the history
  • Loading branch information
RDWimmers committed Jun 7, 2024
1 parent 58da75a commit e6f6826
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Empty file.
4 changes: 1 addition & 3 deletions src/baec/measurements/io/zbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ def measurements_from_zbase(
)
# parse datatime string
df["date_time"] = pd.to_datetime(df["date_time"], dayfirst=False, yearfirst=False)
offset = df["surface_level_z"][0]
# create SettlementRodMeasurement objects
measurements = []
for _, row in df.iterrows():
Expand All @@ -95,8 +94,7 @@ def measurements_from_zbase(
coordinate_reference_system=pyproj.CRS.from_user_input(28992),
x=row["x"],
y=row["y"],
z=offset
- row["z"], # Transform depth to depth with respect to reference level
z=row["rod_top"],
rod_length=abs(row["rod_bottom"] - row["rod_top"]),
plate_bottom_z=row["rod_bottom"],
ground_surface_z=row["surface_level_z"],
Expand Down

0 comments on commit e6f6826

Please sign in to comment.