|
|
|
@ -115,7 +115,13 @@ def plot_profiles(profile_name, csv_output_dir, graph_loc, ch_limits, delta_vol,
|
|
|
|
|
|
|
|
|
|
if Ylim<10:
|
|
|
|
|
ax.set_ylim([ax.get_ylim()[0], 10])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Remove empty space at left of figure
|
|
|
|
|
try:
|
|
|
|
|
ax.set_xlim(left=profile.first_valid_index() - 10)
|
|
|
|
|
except TypeError:
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
# Show most recent volume change
|
|
|
|
|
if delta_vol is not None:
|
|
|
|
|
ax.annotate('Most recent\nvolume change:\n{:+0.1f} m$^3$/m'.format(delta_vol),
|
|
|
|
@ -235,7 +241,7 @@ def process(yaml_file):
|
|
|
|
|
print('Cropping swash...')
|
|
|
|
|
las_data = call_lastools('lasclip', input=input_las, output='-stdout',
|
|
|
|
|
args=['-poly', crop_swash_poly], verbose=False)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Export classified, clipped las for delivery to client
|
|
|
|
|
las_name = os.path.join(output_las_dir, las_basename + '.las')
|
|
|
|
|
with open (las_name, 'wb') as f:
|
|
|
|
|