![]() |
The preferences menu is shown in the figure.
The date can be displayed as Year/Month/Day triples, or as the year and the ordinal number of the day for that year. This is a toggle switch.
Messages to the user can be directed either to pop-up windows ("Messages to Pop-up Window") or to the Matlab command-line interface ("Messages to Workspace"). This is a toggle switch, click it to change its value.
This button calls up a dialog box that controls the data request threshold. (See the figure.)
This threshold marks the maximum size of data file that the Matlab DODS browser will fetch without prompting the user for confirmation. For example, if the threshold is set at 1 megabyte of data, the user will be prompted for confirmation of any data request likely to return more than 1 megabyte of data. Because the OPeNDAP Matlab GUI cannot know exactly how big a dataset is until it has actually downloaded the entire data request, this threshold works with estimates.
NOTE: A further problem with this threshold is that the estimates are about how much memory the data will occupy in Matlab memory, not the size of the the transmitted information. The memory occupied by data in Matlab can be much larger than the amount of data transmitted. Any number in Matlab occupies eight bytes of storage space. Many DODS data--especially satellite data--are transmitted as single byte numbers. Further, the OPeNDAP Matlab GUI has no way to know whether the transmitted data were compressed or not. This can increase the size of this discrepancy. In other words, this threshold is meant to be a guide to an informed user, not a precise prediction.
This button pops up a submenu you can use to select the size of the font used to display titles, legends, and so on.
This button pops up a submenu you can use to select the colors of various browser features. See the figure.
Save the preferences to the file from which they were loaded. See here.
Opens a dialog allowing you to load a palette for mapping. See the figure.
The avhrrpal.pal file (the default color palette) consists of
255 lines like this:
... 0.2000 0.0000 0.3000 0.3700 0.0000 0.5000 0.4516 0.0000 0.7000 0.4548 0.0323 0.8710 0.4548 0.2323 1.0000 ...
The file represents a 255x3 array. You can think of it as a list of 255 colors, each of which is specified as a combination of red, green, and blue values (from left to right). Each value represents the fraction of intensity, with 1.0 equal to full intensity of that color component.
To use one of the colormaps that come with Matlab, you can create a palette in an external file with the following steps:
>> newpalette = hsv(256);
Any of the following could substitute for the hsv in the above
example. They are all colormaps supplied with Matlab:
>> fid = fopen('newpalette.pal');
>> fprintf(fid,'%g %g %g\n',newpalette');
>> fclose(fid);
You can use the dialog summoned by this button (see the figure) to update your master list of datasets from some other source than the DODS central archive.
If you have changed preferences such as color, font, threshold or
anything else, you can save these values by selecting this option.
When the OPeNDAP Matlab GUI is next started, these same values will be read from
the startup file, by default called browsopt.m. You can control
the name with the Save As dialog box. To reload a preference file,
use the Preferences,Load Prefs File button. Browser preference files
are simple Matlab scripts and may be edited by hand.
The browser options saved with this command are described in Section 2.3.
This button allows you to load a set of user preferences saved from a
previous browser session. Clicking the button brings up the dialog..
The browser will execute the given preferences file, expecting it to
be a file such as are saved by the Save Preferences command.
Note that the preferences file must be somewhere on your Matlab
path. If you are unsure, type path at the Matlab prompt and
examine the result.
The browser preferences loaded with this command are described in Section 2.3. Saves the current preferences in a file of your choosing.
Selecting this option will restore to their default values:
Clicking this button also clears the ranges, dataset and variable selections. See Section 2.3 for more information about the options.