Skip to content

Transformations don't transform the metadata["zerovalue"] #384

Open
@ladc

Description

@ladc

It would be useful if all transformations are fully reversable, but currently boxcox_transform, dB_transform and NQ_transform aren't.

In the boxcox_transform and dB_transform this just because the metadata["zerovalue"] does not use the same transformation as the data and the metadata["threshold"]. This was done because np.log(0) results in -np.inf, this should be easily mitigated by introducing a minimal value in the outcome, i.e. metadata["zerovalue"] = np.maximum(np.log(metadata["zerovalue"]), -1000). The same should maybe also be applied to the actual data that is transformed and the metadata["threshold"].

In the NQ_transform, both metadata["threshold"] and metadata["zerovalue"] are not reversable, so maybe we can apply the interpolation method to both of these parameters as well, not sure if this is possible though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions