![]() |
The getxxx function, another Matlab program, serves as the connection
between the OPeNDAP browser and individual datasets, hiding their
idiosyncracies and providing a uniform interface between the browser
and the data. Some get functions may serve for more than one dataset,
such as getrectg.m, a function that works for a number of
gridded datasets. The getxxx function can be named anything, but
Can't exec program: /usr/local/bin/giftext.pl
convention dictates that the name be of
the form getxxx.m, where xxx is some sequence
of characters that indicates the dataset (or class of datasets) for
which the getxxx function is used. Note that several getxxx
functions are provided with the OPeNDAP Matlab GUI; be careful to avoid those
names.
A getxxx function has 3 modes of operation (or 3 subroutines).
Each mode receives the same input arguments, although for some
arguments and some datasets, not all the incoming information will be
used. The modes differ in their action, and in the data they
return to the calling function. The input arguments to the
getxxx function are as follows:
function [arg1,...] =getxxx(mode, ranges, dataset, vars, stride, num_urls, georange, variables, archive, whichurl, url_info)
cat (short for
`catalog'), datasize, or get. The return values of this
function differ depending on the mode argument. They are
outlined in the following sections.
[-180 180] or [0 360] but can be set to other
values.
.m file for
the selected dataset.
cat mode request to the getxxx function.
In some modes, a particular input argument will not contain valid information. For example, the input number of URLs is not valid for a catalog request, since part of the function of the catalog mode is to determine the number of URLs needed to satisfy a request. However, all arguments are passed in each time for the sake of consistency.