Skip to content

Commit

Permalink
to_fsm2oshd groupby bug2
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcticSnow committed Mar 20, 2024
1 parent d3f4ea7 commit 1ed7b6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TopoPyScale/topo_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ def write_fsm2oshd_met(ds_pt,
dy = np.abs(np.diff(fsm_param.y)[0])
df_forest = tu.ds_to_indexed_dataframe(fsm_param.drop(['point_name', 'cluster_labels'])).groupby('point_ind').mean()
df_forest['cluster_total_area'] = fsm_param.elevation.groupby(fsm_param.point_ind).count().values * dx * dy
df_forest['proportion_with_forest'] = fsm_param.ifor.groupby(fsm_param.point_ind).mean().values
df_forest['proportion_with_forest'] = fsm_param.isfor.groupby(fsm_param.point_ind).mean().values
df_forest['cluster_domain_size'] = np.sqrt(df_forest.cluster_total_area)
#df_forest['cluster_domain_size'] = np.sqrt(fsm_param.drop('point_name').groupby(fsm_param.point_name).count().to_dataframe().LAI5)*dx
df_forest['forest_cover'] = fsm_param.forcov.groupby(fsm_param.point_name).mean().values
Expand Down

0 comments on commit 1ed7b6d

Please sign in to comment.