[netcdf-java] Getting a single coordinate axis value from a TDS aggregation

Hello,

I¹m having trouble accessing a single value that is not the first value from
the time coordinate axis from an aggregation of in situ mooring
observations.

Retreiving the first element works:

  
http://elvis.shore.mbari.org/thredds/dodsC/moorings/OS_M0_TS.ascii?TIME[0:1:
0]

> Dataset {
>     Float64 TIME[TIME = 1];
> } moorings/OS_M0_TS;
> ---------------------------------------------
> TIME[1]
> 19878.020833333332

However, requesting any other single value returns an exception, e.g. the
second value:

  
http://elvis.shore.mbari.org/thredds/dodsC/moorings/OS_M0_TS.ascii?TIME[1:1:
1]

> Error {
>     code = 500;
>     message = "NcSDArray ArrayIndexOutOfBoundsException=NcSDArray read TIME
> TIME(1,1,1) 1 dataset= moorings/OS_M0_TS";
> };
> 
I can retrieve a range of values:

  
http://elvis.shore.mbari.org/thredds/dodsC/moorings/OS_M0_TS.ascii?TIME[0:1:
1]

> Dataset {
>     Float64 TIME[TIME = 2];
> } moorings/OS_M0_TS;
> ---------------------------------------------
> TIME[2]
> 19878.020833333332, 19878.0625
> 
just not a single value that is not the first one.
> 
Have I perhaps done something wrong in the catalog.xml?  Here is the
relevant section:

<dataset name="MBARI Mooring M0 CTD String Aggregation 60-Minute Telemetered
Data (2004-Present)"
                    ID="moorings/OS_M0_TS" urlPath="moorings/OS_M0_TS"
                    dataType="Station">
                <serviceName>ncdods</serviceName>
                <documentation type="Summary">Gridded 60 minute MBARI
Mooring M0 Sea Water Temperature and Salinity Observations Observations.
        These data have been gridded into 60 minute time cells from the
original telemetered instument data.
        Egregious outliers have been flagged according to OceanSITEs
conventions.</documentation>
                <timeCoverage>
                    <start>2004-06-04T00:00:00Z</start>
                    <end>present</end>
                </timeCoverage>
                <ncml:netcdf>
                    <ncml:remove name="id" type="attribute"/>
                    <ncml:remove name="date_created" type="attribute"/>
                   
                    <ncml:remove name="created" type="attribute"/>
                    <ncml:remove name="source" type="attribute"/>
                    <ncml:remove name="program" type="attribute"/>
                    <ncml:remove name="history" type="attribute"/>
                    <ncml:remove name="version" type="attribute"/>
                   
                    <ncml:attribute name="id" type="String"
value="moorings/mbari_mooring_m0_ts_60_min"/>
                    <ncml:attribute name="title" type="String"
                            value="MBARI Mooring M0 CTD String
Aggregation"/>
                    <ncml:aggregation dimName="TIME" type="joinExisting">
                        <ncml:netcdf
                   
location="/mbari/ssdsdata/deployments/m0/200406/OS_M0_20040604_TS.nc"/>
                        <ncml:netcdf
                   
location="/mbari/ssdsdata/deployments/m0/200410/OS_M0_20041006_TS.nc"/>
                        <ncml:netcdf
                   
location="/mbari/ssdsdata/deployments/m0/200504/OS_M0_20050418_TS.nc"/>
                        <ncml:netcdf
                   
location="/mbari/ssdsdata/deployments/m0/200607/OS_M0_20060731_TS.nc"/>
                        <ncml:netcdf
                   
location="/mbari/ssdsdata/deployments/m0/200701/OS_M0_20070130_TS.nc"/>
                        <ncml:netcdf
                   
location="/mbari/ssdsdata/deployments/m0/200706/OS_M0_20070621_TS.nc"/>
                    </ncml:aggregation>
                </ncml:netcdf>
            </dataset><!-- name="MBARI Mooring M0 CTD String Aggregation "
-->

I am running version 4.1.20090930.1852 - 20090930.1852 of thredds.war.

Any help is appreciated.

TIA,
Mike

-- 
Mike McCann
Software Engineer
Monterey Bay Aquarium Research Institute
7700 Sandholdt Road
Moss Landing, CA 95039-9644
Voice: 831.775.1769  Fax: 831.775.1736 http://www.mbari.org
<http://www.mbari.org/>



  • 2009 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-java archives: