Skip to content

Commit

Permalink
TOMO FH: added tomo cube as breakpoint.
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuelegiorgi committed Jan 18, 2023
1 parent 6b3547d commit c569027
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion biopal/tomo/processing_TOMO.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ class opt_str:
power_peak = out_str.peak
canopy_height = medfilt2d(canopy_height.astype("float64"), kernel_size=proc_conf.median_factor)

return canopy_height, power_peak, rg_vec_subs, az_vec_subs, subs_F_r, subs_F_a
return canopy_height, power_peak, rg_vec_subs, az_vec_subs, subs_F_r, subs_F_a, tomo_cube


def tomo_cube_generator(z, I, model_sign, kz_stack):
Expand Down
6 changes: 3 additions & 3 deletions biopal/tomo_fh/main_TOMO_FH.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ def _run(self, input_file):
conf_params_obj.estimate_tomo_fh.vertical_range.sampling,
)

(estimated_height, power_peak, rg_vec_subs, az_vec_subs, subs_F_r, subs_F_a,) = BiomassForestHeightSKPD(
(estimated_height, power_peak, rg_vec_subs, az_vec_subs, subs_F_r, subs_F_a,tomo_cube,) = BiomassForestHeightSKPD(
data_SLC,
cov_est_window_size,
raster_info.pixel_spacing_slant_rg,
Expand Down Expand Up @@ -520,9 +520,9 @@ def _run(self, input_file):
logging.info("TOMO FH: saving mail results (in slant range geometry) on " + breakpoints_output_folder)
post_string = "_SR_" + unique_stack_id

breakpoint_names = ["estimated_height" + post_string]
breakpoint_names = ["estimated_height" + post_string, "tomo_cube", "vertical_vector"]

save_breakpoints(breakpoints_output_folder, breakpoint_names, [estimated_height])
save_breakpoints(breakpoints_output_folder, breakpoint_names, [estimated_height, tomo_cube, vertical_vector])
logging.info("...done.\n")
del estimated_height

Expand Down

0 comments on commit c569027

Please sign in to comment.