You are a guest. Restricted access. Read more. Command disabled:
revisions  Unit conversion  SCaVis can be used to easily convert
between different units of measurement. You can use it in a GUI
mode or as a Java classes, which can be accessed via any
scripting language supported by the program.  A GUI mode  Simply
start SCaVis IDE and select [Tools]→[Unit conversion]. You will
see a GUI windows where you can sent different conversion units.
The program is based on the JConvert program. This window is
shown below:  Conversions in Java/Jython  Alternatively, you can
do conversions inside Java/Jython code. Use the UConverter
class.  Here is an example:  from jhplot import * u=UConverter()
# initialize converter print u.toString()                # check
measure types c=u.getConversionType("Distance") # conversion
type print c.getAllFromUnits()         # check all units for
this measure print "1 mile = ", c.convert(1.0, "mile", "meter")
, " meters" print "1 mile = " + c.convertFraction("1", "mil