Skip to content

modular

Choose a tag to compare

@lukegre lukegre released this 13 Jan 13:39
· 71 commits to main since this release
spatial_info_dict = cg.read_mat_struct_flat_as_dict('../runs/strat/run_spatial_info.mat')
cluster_idx = spatial_info_dict.pop('cluster_idx')
ds_matlab = flat_dict_to_xarray(spatial_info_dict, index=['coord_y', 'coord_x'])

OR

ds_matlab = cg.read_mat_struct_as_dataset(
    '../runs/strat/run_spatial_info.mat', 
    drop_keys=['cluster_idx'],
    index=['coord_y', 'coord_x'])