I have successfully used the following NetCDF plugin to publish a simple
netcdf file with just one variable.
https://github.com/OpenCOP/geoserver/tree/master/src/community/geonetcdf
I've another netcdf file with two variables that should get loaded to two
dimensions in the published raster. But this is not happening and I get only
one dimension values in the published raster. (I converted the netcdf to
geotiff and published and got the two dimensions as follows)
...
<coverageDimension>
<name>GRAY_INDEX</name>
<description>GridSampleDimension[-Infinity,Infinity]</description>
</coverageDimension>
<coverageDimension>
<name>Band2</name>
<description>GridSampleDimension[-Infinity,Infinity]</description>
</coverageDimension>
...
But the same is not happening with the netcdf. Here is my netcdf:
uvgrd_20130620.nc
dimensions:
latitude = 361;
longitude = 720;
time = UNLIMITED; // (1 currently
variables:
float UGRD_10maboveground(time=1, latitude=361, longitude=720);
:_FillValue = 9.999E20f; // float
:short_name = "UGRD_10maboveground";
:long_name = "U-Component of Wind";
:level = "10 m above ground";
:units = "m/s";
float VGRD_10maboveground(time=1, latitude=361, longitude=720);
:_FillValue = 9.999E20f; // float
:short_name = "VGRD_10maboveground";
:long_name = "V-Component of Wind";
:level = "10 m above ground";
:units = "m/s";
double latitude(latitude=361);
:units = "degrees_north";
...
double longitude(longitude=720);
:units = "degrees_east";
...
double time(time=1);
:_FillValue = 9.999E20; // double
...
:_CoordinateAxisType = "Time";
// global attributes:
:Conventions = "COARDS";
...
So what I want is that the UGRD_10maboveground variable should go to one
dimension (like GRAY_INDEX) and VGRD_10maboveground variable to other
dimension (like Band2), but in the layer preview I get only one dimension's
values.
Looking at the plugin's source, it is not clear where the part to select
variables to read is controlled. Anyone has any experience with this netcdf
plugin so that I can modify it suitably or even any other netcdf plugin that
achieves this.
Thanks and Regards
Ameet
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/NetCDF-plugin-failing-when-the-nc-file-has-more-than-one-variable-tp5062865.html
Sent from the GeoServer - User mailing list archive at Nabble.com.