store the distance between two coordinate variables
include netcdf lib when net cdf scenario is selected
fixed several issues