function []=float2short(cdf,var,scale,offset,range);
%function []=float2short(cdf,var,scale,offset,range);
%  write Matlab horizontal slab to elevation variable,
%  which is a short variable
%
% example;
%  float2short('ecomsi.cdf',u100,9.1555528e-05,0.,[-3. 3.]);
%
mcapt(cdf,'elev','valid_range',range,'NC_FLOAT');
mcapt(cdf,'elev','scale_factor',scale,'NC_FLOAT');
mcapt(cdf,'elev','add_offset',offset,'NC_FLOAT');
mcvpt(cdf,'elev',[0 0 0],[1 68 68],var);
