Unit conversion script for f3