Skip to content

Commit 7300cbe

Browse files
authored
Merge pull request #548 from lesserwhirls/wms_docs
Documentation Update
2 parents 67ef459 + b4b0b59 commit 7300cbe

File tree

6 files changed

+207
-82
lines changed

6 files changed

+207
-82
lines changed

Diff for: docs/adminguide/src/site/pages/thredds/ThreddsConfigRef.md

+46-20
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: TDS Configuration File Reference (`threddsConfig.xml`)
3-
last_updated: 2020-08-24
3+
last_updated: 2024-11-26
44
sidebar: admin_sidebar
55
toc: true
66
permalink: tds_config_ref.html
@@ -61,7 +61,7 @@ logos of the server and host institution)
6161
* all generated THREDDS catalogs that don't override this information
6262

6363

64-
The best way to use your own logo is to put it in the `${tds.content.root.path}/thredds/public/` directory, and specify it in `serverInformation` as `/thredds/<name>`, e.g.:
64+
The best way to use your own logo is to put it in the `${tomcat path}/webapps/thredds/` directory, and specify it in `serverInformation` as `/thredds/<name>`, e.g.:
6565

6666
~~~xml
6767
<logoUrl>/thredds/yourIcon.gif</logoUrl>
@@ -201,8 +201,8 @@ The following shows all the configuration options available in the WCS section o
201201
<WCS>
202202
<allow>true</allow>
203203
<dir>(see the note below)</dir>
204-
<scour>15 min</scour>
205-
<maxAge>30 min</maxAge>
204+
<scour>10 min</scour>
205+
<maxAge>5 min</maxAge>
206206
</WCS>
207207
~~~
208208

@@ -235,7 +235,8 @@ The following shows all the configuration options available in the WMS section o
235235
<WMS>
236236
<allow>true</allow>
237237
<allowRemote>false</allowRemote>
238-
<paletteLocationDir>/WEB-INF/palettes</paletteLocationDir>
238+
<paletteLocationDir>wmsPalettes</paletteLocationDir>
239+
<stylesLocationDir>wmsStyles</stylesLocationDir>
239240
<maxImageWidth>2048</maxImageWidth>
240241
<maxImageHeight>2048</maxImageHeight>
241242
</WMS>
@@ -248,8 +249,24 @@ Here is the description of the various options:
248249
* `allowRemote`: a value of `true` enables the WMS service for datasets available from a remote server.
249250
* `paletteLocationDir`: optionally specify the location of the directory containing your own palette files, by specifying the directory
250251
where they are contained.
251-
If the directory location starts with a `/`, the path is absolute, otherwise it is relative to `${tds.content.root.path}/thredds/`.
252-
If you don't specify it, or specify it incorrectly, the default palettes will be used, which are in the war file under `WEB-INF/palettes`.
252+
* If the directory location starts with a `/`, the path is absolute, otherwise it is relative to `${tds.content.root.path}/thredds/`.
253+
* The default directory for custom palette files is `${tds.content.root.path}/thredds/wmsPalettes`.
254+
* If you don't specify a custom palette directory, or specify it incorrectly, the default directory will be used.
255+
* Custom palette files will be loaded in addition to the default palettes, which are described
256+
[here](https://reading-escience-centre.gitbooks.io/ncwms-user-guide/content/04-usage.html#getmap).
257+
* Note that the palette file format has changed between TDS version 4.x and TDS version 5.x. Please refer to the
258+
[EDAL-Java palette file directory](https://github.com/Reading-eScience-Centre/edal-java/tree/master/graphics/src/main/resources/palettes)
259+
for examples of palette files that are compatible with the TDS version 5.x WMS service.
260+
* More information on the format of palette files can also be found in the
261+
[ncWMS documentation](https://reading-escience-centre.gitbooks.io/ncwms-user-guide/content/06-development.html#:~:text=To%20add%20new,in%20hexadecimal%20notation.).
262+
* If you created palette files for TDS 4.x and would like to use them in TDS 5.x, an open source tool named [Magic Palette Converter](https://github.com/billyz313/magic-palette-converter){:target="_blank"} for THREDDS is available to assist in the conversion (special thanks to [Billy Ashmall](https://github.com/Unidata/tds/discussions/346){:target="_blank"}!)
263+
* `stylesLocationDir`: optionally specify the location of the directory containing your own style files, by specifying the directory
264+
where they are contained.
265+
* If the directory location starts with a `/`, the path is absolute, otherwise it is relative to `${tds.content.root.path}/thredds/`.
266+
* The default directory for custom styles files is `${tds.content.root.path}/thredds/wmsStyles`.
267+
* If you don't specify a custom styles directory, or specify it incorrectly, the default directory will be used.
268+
* More information on the format of style files can also be found in the
269+
[ncWMS documentation](https://reading-escience-centre.gitbooks.io/ncwms-user-guide/content/06-development.html#styles).
253270
* `maxImageWidth`: the maximum image width in pixels that this WMS service will return.
254271
* `maxImageHeight`: the maximum image height in pixels that this WMS service will return.
255272

@@ -270,9 +287,9 @@ The following shows all the configuration options available in the `NetcdfSubset
270287
<NetcdfSubsetService>
271288
<allow>true</allow>
272289
<dir>(see the note below)</dir>
273-
<scour>15 min</scour>
274-
<maxAge>30 min</maxAge>
275-
<maxFileDownloadSize>300 MB</maxFileDownloadSize>
290+
<scour>10 min</scour>
291+
<maxAge>5 min</maxAge>
292+
<maxFileDownloadSize>-1</maxFileDownloadSize>
276293
</NetcdfSubsetService>
277294
~~~
278295

@@ -290,15 +307,16 @@ Here is the description of the various options:
290307
Optional; default is that there is no size limitation.
291308
If the file is > 2 GB, large format netCDF will be written.
292309

293-
### ncISO Service
310+
### ncISO Services
294311

295-
By default, these services are enabled, and can be disabled by including the following in the `threddsConfig.xml` file:
312+
By default, these services are disabled.
313+
Provided that you have added the [ncISO plugin](adding_ogc_iso_services.html#nciso-configuration), these services can be enabled by including the following in the `threddsConfig.xml` file:
296314

297315
~~~xml
298316
<NCISO>
299-
<ncmlAllow>false</ncmlAllow>
300-
<uddcAllow>false</uddcAllow>
301-
<isoAllow>false</isoAllow>
317+
<ncmlAllow>true</ncmlAllow>
318+
<uddcAllow>true</uddcAllow>
319+
<isoAllow>true</isoAllow>
302320
</NCISO>
303321
~~~
304322

@@ -380,7 +398,7 @@ ln -s /data/thredds/content content
380398
~~~
381399

382400
These various caches at times may contain large amounts of data.
383-
You should choose a location that will not fill up (especially if that location affects other important locations like `/opt`, `/home`, etc).
401+
You should choose a location that will not fill up (especially if that location affects other important locations like `/opt`, `/usr/local`, `/home`, etc).
384402
If you have a large disk for your data, that may be a good location for the cache directories.
385403
On unix-like machines, you can run `df` to get a listing of disks on your machine.
386404
The listing includes size and mount location.
@@ -419,7 +437,7 @@ We recommend that you use this default, by not specifying the `DiskCache.dir` el
419437

420438
~~~xml
421439
<AggregationCache>
422-
<dir>${tds.content.root.path}/thredds/cache/agg/</dir>
440+
<dir>(see the note below)</dir>
423441
<scour>24 hours</scour>
424442
<maxAge>90 days</maxAge>
425443
<cachePathPolicy>nestedDirectory</cachePathPolicy>
@@ -431,7 +449,7 @@ If not otherwise set, the TDS will use the `${tds.content.root.path}/thredds/cac
431449
We recommend that you use this default, by not specifying a `AggregationCache`.`dir` element.
432450

433451
Every `scour` amount of time, any item that hasn't been changed since `maxAge` time will be deleted.
434-
If you have aggregations that never change, set `scour` to `-1` to disable the operation.
452+
If you have aggregations that never change, set `scour` to `-1 sec` to disable the operation.
435453
Otherwise, make `maxAge` longer than the longest time between changes.
436454
Basically, you don't want to remove active aggregations.
437455

@@ -453,9 +471,10 @@ We recommend that you use the default settings, by not specifying this option.
453471

454472
~~~xml
455473
<FeatureCollection>
456-
<dir>${tds.content.root.path}/thredds/cache/collection/</dir>
474+
<dir>(see the note below)</dir>
457475
<maxEntries>1000</maxEntries>
458476
<maxBloatFactor>1</maxBloatFactor>
477+
<averageValueSize>small</averageValueSize>
459478
</FeatureCollection>
460479
~~~
461480

@@ -471,14 +490,20 @@ We recommend that you use the default settings, by not specifying this option.
471490
If it is possible to have more FMRC files than your `maxEntries`, then this value should be increased.
472491
It is strongly advised not to configure this value to more than 10, as the cache works progressively slower when the actual size grows far beyond the size configured in your `maxEntries`.
473492
See [here](https://gerrit.googlesource.com/modules/cache-chroniclemap/+/HEAD/src/main/resources/Documentation/config.md#configuration-parameters) for more details.
493+
* `averageValueSize`: the average size of the cached value (the grid and variable information), which is used when allocating memory for the cache.
494+
The possible values are `small`, `medium`, or `large`.
495+
The default value is `small`.
496+
In most cases the default value should work fine. However, if your FMRC datasets have hundreds of variables,
497+
and you are experiencing issues with the cache filling up even though you have adjusted the `maxEntries` and `maxBloatFactor`,
498+
then this may need to be increased to `medium`, or in very rare circumstances `large`.
474499

475500
### GRIB Index Redirection
476501

477502
~~~xml
478503
<GribIndex>
479504
<alwaysUse>false</alwaysUse>
480505
<neverUse>false</neverUse>
481-
<dir>${tds.content.root.path}/thredds/cache/grib/</dir>
506+
<dir>(see the note below)</dir>
482507
<policy>nestedDirectory</policy>
483508
<scour>0 hours</scour>
484509
<maxAge>90 days</maxAge>
@@ -488,6 +513,7 @@ We recommend that you use the default settings, by not specifying this option.
488513
These elements control where GRIB index files are written.
489514

490515
* If `alwaysUse` is true, grib index files will always be written to the _index directory_ specified by `dir` (see [choosing a cache directory](#disk-caching-and-temporary-files)).
516+
If not otherwise set, the TDS will use the ${tds.content.root.path}/thredds/cache/grib/ directory
491517
If `neverUse` is true, the index directory will never be used.
492518
If neither is set, the TDS will try to write grib indexes to the same directory as the original file, and if the TDS doesn't have write permission it will then write the files to the index directory.
493519
Write permission will be determined by what rights the _Tomcat user_ has (the user that starts up Tomcat).

0 commit comments

Comments
 (0)