[Thread Prev][Thread Next][Index]

[ferret_users] string composition



Hi Ferreters—

When I was composing unit strings from a product of variables, I found
an unexpected behaviour:

yes? let/units="m/s" v1 = 1.1
yes? let/units="mmol C m-3" v2 = 2.2
yes? list/nohead v1.units + "XYZ"
        "m/sXYZ"
yes? list/nohead v1.units + v2.units
        "m/sm/s"
yes? list/nohead "`v1.units`" + "`v2.units`"
        "m/smmol C m-3"

I expected that the result of the panultimate command would be the same
as that of the last command.

(The last command can be used as a solution or workaround to this issue.)

—Marco


[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement