%test35.m uses the old version of getcdf.m to retrieve the same data
%as is done by test40.m which tests the new version.tests the improved
%matlab 3.5 version of getcdf_batch.

file = 'netcdf/testjm'
varid = 8
order = 1
rescale = 1
change_miss = 2
new_miss = 0

% Get a matrix using the full indices.

corner = [ 8 1 2 1 3 ]
end_point = [ 8 11 2 4 3 ]

y = getcdf_batch(file, varid, corner, end_point, order, rescale, ...
    change_miss, new_miss)

%diff = nanrange (x - y)

% Get a matrix using the full indices.

corner = [ 8 1 2 2 3 ]
end_point = [ 8 11 2 3 3 ]

y = getcdf_batch(file, varid, corner, end_point, order, rescale, ...
    change_miss, new_miss)

% Get a matrix that does not use the full range of dimensions.

corner = [ 8 2 2 2 3 ]
end_point = [ 8 9 2 3 3 ]

x = getcdf_batch(file, varid, corner, end_point, order, rescale, ...
    change_miss, new_miss)


% Get a vector using the full indices.

corner = [ 8 1 2 3 3 ]
end_point = [ 8 11 2 3 3 ]

y = getcdf_batch(file, varid, corner, end_point, order, rescale, ...
    change_miss, new_miss)

% Get a vector that does not use the full range of dimension.

corner = [ 8 2 2 3 3 ]
end_point = [ 8 6 2 3 3 ]

x = getcdf_batch(file, varid, corner, end_point, order, rescale, ...
    change_miss, new_miss)

% Get a scalar.

corner = [ 8 1 2 3 3 ]
end_point = [ 8 1 2 3 3 ]

x = getcdf_batch(file, varid, corner, end_point, order, rescale, ...
    change_miss, new_miss)

% Check for out of bounds.

corner = [ 8 1 2 3 3 ]
end_point = [ 8 12 2 3 3 ]

x = getcdf_batch(file, varid, corner, end_point, order, rescale, ...
    change_miss, new_miss)


