You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a very common conversion for precipitation is from kg/m2/s to mm/day. This currently fails as the water density is required to convert the kg into volume.
One final attempt to convert the units could be included for precipitation variables here:
if (!ud.are.convertible(u1[x], new.units[x])) stop("Non-convertible units \'ud.are.convertible\' returned FALSE)")
Simply by multiplying the units by the specific volume of water (1 l/kg):
> ud.convert(1, "kg/m^2/s", "mm/day")
Error in ud.convert(1, "kg/m^2/s", "mm/day") :
Units kg/m^2/s and mm/day are not convertible
> ud.convert(1, "kg/m^2/s*l/kg", "mm/day")
[1] 86400
The text was updated successfully, but these errors were encountered:
Hi,
a very common conversion for precipitation is from kg/m2/s to mm/day. This currently fails as the water density is required to convert the kg into volume.
One final attempt to convert the units could be included for precipitation variables here:
convertR/R/udConvertGrid.R
Line 86 in 1b0d48c
Simply by multiplying the units by the specific volume of water (1 l/kg):
The text was updated successfully, but these errors were encountered: