This page will collect useful snippetsof LAS dataset configuration code. As you configure your datasets,look here for ideas and examples.
Increasing memory
When datasets are large, with fine grids, you will encounter Ferret error messages about insufficient memory, for insgance,
**ERROR: insufficient memory: 9335520 words were requested.
*** NOTE: You can use SET MEMORY/SIZE=xxx to increase memory.
*** NOTE: The "Memory use" section of the FERRET Users Guide has further tips.
You can set a Ferret property to increase the amount of memory that the backend Ferret jobs request. This can be done for a dataset, an individual variable, or even an entire LAS installation. The default memory requested for Ferret is 25.6 megawords. Increase it with the Ferret property start_memory. In a dataset configuration file, put it in the dataset configuration for all variables, or in the variable configuration for an individual variable. To apply it to an entire LAS installation, put it in the Ferret properties in las.xml.
For example,
<properties>
...
<ferret>
<start_memory>128</start_memory>
</ferret>
</properties>
Configuring a Climatology
Climatological time axes can be configured by adding either modulo='true'
or climatology='true'
as time axis attributes.
This will have the effect of preventing the display of the Year selector in LAS user interfaces. A year must still be specified in the <arange> tag and this year will be used to determine the number of days in February. Years must be < 8000 but, other than that restriction, any year may be used including '0001'.
<CDC_DS03-time17 type="t" units="month" climatology="true">
<arange start="0001-01-01" step="1" size="12"/>
</CDC_DS03-time17>