depracated
unitsbasedonfield
add more tolerance when readin input files
gen files