Releases: lukegre/CryoGrid-pyTools
Releases · lukegre/CryoGrid-pyTools
Spatial mapping for cluster runs
Added optional data fetching tools
added checks for Excel config file
Full Changelog: v0.1.6...v0.1.7
- checks for violations of the
STRAT_layersparameters - e.g.,
field capacity <= water+ice
modular
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'])v0.1.5
More flexible loading for mutliple files
Full Changelog: v0.1.4...v0.1.5
New feature: generic MATLAB dates to pandas Timestamps
When using read_mat_struct_as_dataset, you can use the following kwarg:
forcing = cgt.read_mat_struct_as_dataset(
fname,
index='timeForcing', # must be set for index_is_datenum to work
index_is_datenum=True # converts MATLAB datenum to pd.Timestamp
)Full Changelog: v0.1.3...v0.1.4
First release 🎉
A more generalised approach to reading in MATLAB files was taken.
Some other bugs also fixed.
Full Changelog: v0.1.2...v0.1.3