Project

General

Profile

Task #12927 » wmsConfig.xml

AquaMaps Thredds WMS configuration example - Fabio Sinibaldi, Nov 21, 2018 07:05 PM

 
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE wmsConfig SYSTEM "http://www.unidata.ucar.edu/schemas/thredds/dtd/ncwms/wmsConfig.dtd">
3
<!--
4
Detailed configuration of the WMS service.  This config file can be used to
5
set default styling parameters for each dataset/variable, and to enable or disable
6
the GetFeatureInfo operation.
7

    
8
See http://www.resc.reading.ac.uk/trac/myocean-tools/wiki/WmsDetailedConfiguration
9
for more information.
10
-->
11
<wmsConfig>
12
    <global>
13
        <!-- These settings apply to all datasets unless overridden below -->
14

    
15
        <defaults>
16
            <!-- The global defaults. All elements are mandatory -->
17
            <allowFeatureInfo>true</allowFeatureInfo>
18
            <defaultColorScaleRange>-50 50</defaultColorScaleRange>
19
            <defaultPaletteName>rainbow</defaultPaletteName>
20
            <defaultNumColorBands>20</defaultNumColorBands>
21
            <logScaling>false</logScaling>
22
            <intervalTime>false</intervalTime>
23
        </defaults>
24

    
25
        <standardNames>
26
            <!-- Use this section to set defaults per standard name -->
27
            <!-- Units must come from the UDUNITS vocabulary -->
28
            <standardName name="sea_water_potential_temperature" units="K">
29
                <defaultColorScaleRange>268 308</defaultColorScaleRange>
30
            </standardName>
31
            <standardName name="sea_water_temperature" units="K">
32
                <defaultColorScaleRange>268 308</defaultColorScaleRange>
33
            </standardName>
34
            <standardName name="mass_concentration_of_chlorophyll_in_sea_water" units="kg m-3">
35
                <logScaling>true</logScaling>
36
            </standardName>
37
            <!-- TODO: how about allowing "*fraction" to map to 0:1? -->
38
            <!-- TODO: how about allowing multiple standard names to map to the same settings,
39
                 either through a glob expression or through a list? -->
40
        </standardNames>
41
    </global>
42

    
43
    <overrides>
44
        
45
        <datasetPath pathSpec="testAll/*eta_211.nc">
46
            <!-- Will apply to all paths that match the path spec above -->
47
            <pathDefaults>
48
                <!-- These will apply to all variables in this path unless overridden below -->
49
                <allowFeatureInfo>false</allowFeatureInfo>
50
                <defaultPaletteName>occam</defaultPaletteName>
51
            </pathDefaults>
52

    
53
            <variables>
54
                <!-- Configure variables individually according to their internal ID.
55
                     This is the most specific setting and will override any others -->
56
                <variable id="Z_sfc">
57
                    <defaultColorScaleRange>10 20</defaultColorScaleRange>
58
                </variable>
59
            </variables>
60
        </datasetPath>
61
        
62

    
63
        <datasetPath pathSpec="public/netcdf/AquaMaps*/*.nc">
64
            <pathDefaults>
65
                <defaultColorScaleRange>0 1</defaultColorScaleRange>
66
                <defaultPaletteName>aquamaps</defaultPaletteName>
67
                <defaultNumColorBands>5</defaultNumColorBands>                
68
            </pathDefaults>
69
        </datasetPath>
70

    
71

    
72

    
73
    </overrides>
74

    
75
</wmsConfig>
(1-1/2)
Add picture from clipboard (Maximum size: 8.91 MB)