Skip to content

Commit b0697f8

Browse files
author
arcticsnow
committed
bug
1 parent cbc1d21 commit b0697f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

TopoPyScale/topo_export.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ def write_fsm2oshd_met(ds_pt,
908908

909909
# sampling forest parameters from ds_param
910910
df_forest[['isfor', 'forcov', 'svf_for', 'CC5', 'CC50', 'CH5', 'LAI5']] = mp.toposub.ds_param.sel(x=xs, y=ys, method='nearest').to_dataframe()[['isfor', 'forcov', 'svf_for', 'CC5', 'CC50', 'CH5', 'LAI5']]
911-
pixel_area = mp.toposub.ds_param.x.diff(dim='x').mean().values * mp.toposub.ds_param.y.diff(dim='y').mean().values
911+
pixel_area = np.abs(mp.toposub.ds_param.x.diff(dim='x').mean().values * mp.toposub.ds_param.y.diff(dim='y').mean().values)
912912
df_forest['cluster_domain_size'] = pixel_area
913913

914914
else:

0 commit comments

Comments
 (0)