Hi Daniele

Thank you very much for your response and the links to the source code. This
was really helpful in understanding better geoserver. I was digging there
now, but still I am not succesul in implementing the netCDF.

Based on your tip with the geotools-folders, I have found also the examples,
with which you were testing several netCDF settings for Geoserver.
(here:
geotools-master/modules/plugin/coverage-multidim/netcdf/src/test/resources/org/geotools/coverage/io/netcdf/test-data/*)
With these examples you can understand much better how Geoserver might
request the formatting, setting and property-files. 

My error message is still, that Geoserver does not recognize my additional
custom dimension.
Code stopping at:
NetCDFGeoreferenceManager.java line 602ff, where !ignored.contains(axisName)
seems to be true causing the warning "Unsupported axis: "
So this variable does not contain my dimension.

I found the code, where these dimensions are defined: NetCDFUtilities.java

It's difficult to follow the code until the final definition, where these
variables are getting filled. I found AncillaryFileManager.java and the
definition of MultipleBandsDimension. Please correct me, if I am wrong.

An example in the geotools/test-data folder, namely the station.nc and
related *.xml *.properties files give an example how I might define custom
dimensions. This example could be a similar issue like mine. Still, I could
not implement neither the station.nc data (with the already prepared
Input-files) nor my own netCDF with accordingly defined settings. 

I also tested my netCDF by manipulating it with nco (renaming dimensions
(wavelength-> bands/channel/"elevation", chaning datatypes double to float,
nc3 to nc4, renaming attributes…)

Again I checked all Geosolution-slides describing implementation of
netCDF-data and custom dimensions. It's just stating, that it is possible to
implement, but not how to. What are the special requests on the *.xml,
*.properties, *.nc files? Are the some requests on the dimension-namings
hard-coded in geoserver (besides COARDS/CF)? How can I customize reading of
my Input?

So my file would contain a variable:
float variable(time, wavelength, latitude, longitude) 
and its according dimensions. time, latitude, longitude are no problem.
Geoserver understands them. Only wavelength is not possible to feed.

Any suggestion appreciated.
Kind regards.
MiriamK


Example of my trial:
----------------------------------------------------------------------------------------------
indexer.xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Indexer>
    <domains>
        <domain name="time">
            <attributes><attribute>time</attribute></attributes>
        </domain>
    </domains>
    <coverages>
        <coverage>
          <name>ler</name>
          <schema name="ler" >
              
<attributes>the_geom:Polygon,imageindex:Integer,location:String,time:java.util.Date</attributes>
          </schema>
          <domains>
            <domain ref="time" />
          </domains>
        </coverage>
    </coverages>
    <parameters>
        <parameter name="AbsolutePath" value="true" />
        <parameter name="AuxiliaryFile" value="netcdf_auxiliary.xml" />
    </parameters>
    <multipleBandsDimensions>
        <multipleBandsDimension>
            <name>wavelength</name>
           
<bandsNames>wl328,wl335,wl340,wl354,wl367,wl380,wl388,wl416,wl425,wl440,wl463,wl494,wl510,wl526,wl546,wl555,wl564,wl585,wl610,wl640,wl670,wl685,wl697,wl712,wl758,wl772</bandsNames>
        </multipleBandsDimension>
    </multipleBandsDimensions>
</Indexer>

----------------------------------------------------------------------------------------------
auxiliary.xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Indexer>
    <coverages>
        <coverage>
            <schema name="ler">
               
<attributes>the_geom:Polygon,imageindex:Integer,time:java.util.Date</attributes>
            </schema>
            <origName>ler</origName>
            <name>ler</name>
        </coverage>
    </coverages>
    <multipleBandsDimensions>
        <multipleBandsDimension>
            <name>wavelength</name>
           
<bandsNames>wl328,wl335,wl340,wl354,wl367,wl380,wl388,wl416,wl425,wl440,wl463,wl494,wl510,wl526,wl546,wl555,wl564,wl585,wl610,wl640,wl670,wl685,wl697,wl712,wl758,wl772</bandsNames>
        </multipleBandsDimension>
    </multipleBandsDimensions>
</Indexer>




--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html


_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to