Skip to content
Open
Changes from all commits
Commits
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
4 changes: 3 additions & 1 deletion dhitools/dfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def summary(self):
"""
print("Input file: {}".format(self.filename))
print("Time start = {}".format(dt.datetime.strftime(self.start_datetime,
"%d/%m/%Y %H:%M:%S")))
"%Y/%m/%d %H:%M:%S")))
print("Number of timesteps = {}".format(self.number_tstep))
print("Timestep = {}".format(self.timestep))
print("Number of items = {}".format(self.num_items))
Expand All @@ -97,6 +97,7 @@ def summary(self):
print("(del_X, del_Y) = ({}, {})".format(self.del_x, self.del_y))
print("(X_min, Y_min) = ({}, {})".format(self.x_min, self.y_min))
print("(X_max, Y_max) = ({}, {})".format(self.x_max, self.y_max))
print("Angle to North = {} ".format(self.orientation))
print("")

print("Items:")
Expand Down Expand Up @@ -333,6 +334,7 @@ def _read_dfs2(self, dfs2_object, close=True):
self.del_y = sa.Dy
self.y_count = sa.YCount
self.y_max = self.y_min + (self.del_y * self.y_count)
self.orientation = fi.Projection.Orientation
self.gridshape = (self.y_count, self.x_count)

self.X, self.Y = np.meshgrid(np.arange(self.x_min, self.x_max, self.del_x),
Expand Down