FixedScaling.from_long_dataframe#

classmethod FixedScaling.from_long_dataframe(dims, df, *, value_col, dim_cols)[source]#

Build fixed scaling from a long table (one row per coordinate combination).

Parameters:
dims

Passed through to FixedScaling.

df

Data frame with columns dim_cols and value_col.

value_col

Column name for the positive scale values.

dim_cols

Column names that identify the grid (order defines DataArray dims).