shifted functions to function script
fixed agielnt array after conveyed NA to 0
tried out intermediate subtype for Agilent

It didn’t work
returned script to normal