Closed HolmquistJ closed 4 years ago
I would love to get the unit conversions out of the primary functions. As long as the mass/volume units are similar then the code should not care what the units are. But this is the mathematician in me talking.
I like that idea. Do we ask users to use units we specify or define the units they're inputting, and write helper functions to convert everything to common scale before running core functions?
Right we have no unit conversions in the functions. All inputs, internal processes, and outputs default to grams and centimeters. We may want to put warning messages in to detect peak biomass and ssc values that seem too high.
I don't think there are any more unit conversions in the code.
Is there a good rule of thumb to handle the units of inputs versus what goes on in the code versus outputs? I think a good principle is 1. the unit for inputs and output has to be commonly used. 2. For inputs, when we're talking field data I think we keep things on the scale of a meter For elevation, sea-level, and when field data are converted to the scale of the sediment profile, I think we use or convert to the scale of the cm.