Hi John,
Thanks for the quick response. I upgraded to Version 4.1.20091109.2156 and
the the problem has been fixed.
-Mike
On 11/14/09 7:36 AM, "John Caron" <caron@xxxxxxxxxxxxxxxx> wrote:
> Hi Mike:
>
> I think that was a bug fixed in the rc2 (Oct 9) release. Can you get the
> latest TDS (Version 4.1.20091109.2156) and try it?
>
> McCann, Mike wrote:
>> 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/_>
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> netcdf-java mailing list
>> netcdf-java@xxxxxxxxxxxxxxxx
>> For list information or to unsubscribe, visit:
>> http://www.unidata.ucar.edu/mailing_lists/
>