OGGM / oggm-edu-notebooks

Educational notebooks to be run on https://edu.oggm.org
https://oggm.org/oggm-edu-notebooks
BSD 3-Clause "New" or "Revised" License
13 stars 18 forks source link

Transpose Glacier.summary df #74

Closed Holmgren825 closed 1 year ago

Holmgren825 commented 2 years ago

The Glacier.summary(), and the html representation, is not able to display very small numbers. I encountered this when trying to add the creep and basal sliding to the parameters displayed. This has to to do with how pandas deals with data types. Since the df currently is a single column with many rows for the different params, the data type of the column is 'object'. To display numbers in a scientific format i.e 2.4e-27, a column has to have a numeric data type. We can fix this by simply transposing the Glacier.summary df, much like what the GlacierCollection.summary looks like. IMO the current summary df looks nicer for a single glacier, but it is not functional so we have to compromise.

fmaussion commented 2 years ago

Another solution would be to allays display A and fs as a factor of the default ones in the summary.