Skip to content
Snippets Groups Projects
Commit edf6a834 authored by Christoph.Fischer's avatar Christoph.Fischer
Browse files

fix in area calc

parent 7759bcce
No related branches found
No related tags found
No related merge requests found
......@@ -59,8 +59,14 @@ def get_object_data(self_, stereo_ds, level_list, dist_expand, area_map, config)
volume_km3 += lv_area[k] * height_km
volume_km2K += lv_area[k] * config.res_z # layer * dist between layers.
obj_props.volume_km3 = volume_km3
obj_props.volume_km2K = volume_km2K
obj_props.volume_km3 = volume_km3
obj_props.volume_km2K = volume_km2K
elif config.dims == 2:
lv_area = np.sum(obj_areas_s)
obj_props.area_km2 = lv_area
# ----------------------
# BOUNDING BOX (GEOREF)
......
......@@ -23,7 +23,7 @@ pipeline.set_identification_strategy(i_strat)
pipeline.set_tracking_strategy(None)
# TODO set data path
data_path = os.path.join(os.path.expanduser("~"), 'phd/data/framework_example_ds/pv/this.nc')
data_path = os.path.join(os.path.expanduser("~"), 'phd/data/framework_example_ds/pv/4m_12d_pvavg_200_500_1998.nc')
pipeline.set_data_path(data_path)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment