kujaku11 / mth5

Exchangeable and archivable format for magnetotelluric time series to better serve the community through FAIR principles.
https://mth5.readthedocs.io/en/latest/index.html
MIT License
16 stars 4 forks source link

More permissive data storage in the FC Level #199

Open kkappler opened 6 months ago

kkappler commented 6 months ago

It is possible that we should we consider a frequency domain features layer instead of modifying the FC layer.

Possibly we want to be able to define the dtype for a group based on the data passed in:

SUPPORTED_DTYPES = {"complex":complex,"float":float, "int":int}

and then pass a kwarg to add_channel such as dtype="complex" then

dataset = self.hdf5_group.create_dataset(
                fc_name,
                data=fc_data,
                dtype=SUPPORTED_DTYPES[dtype],
                chunks=chunks,
                maxshape=max_shape,
                **self.dataset_options,
            )