[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[THREDDS #PSU-730086]: Error code 500: message= "NcSDArray InvalidRangeException=Number of ranges in section (2) must be = 3"
- Subject: [THREDDS #PSU-730086]: Error code 500: message= "NcSDArray InvalidRangeException=Number of ranges in section (2) must be = 3"
- Date: Mon, 15 Feb 2010 11:51:05 -0700
Hi Rich:
im working from home so i may not be able to test all this until tommorrow.
1. these are the same files that we were working with back around 1/4/2010.
What was the issue then?
2. do you have access to the server? id like to see what version the grib index
files are.
> Ethan & Robb,
>
> Now that John is back might he see the answer in 2 minutes?
> Got to be something simple, right?
> Hoping to use this for AGU next week.
> -Rich
>
>
>
> http://blackburn.whoi.edu:8081/thredds/dodsC/fmrc/rtofs/RTOFS_Forecast_Model_Run_Collection_best.ncd.ascii?lat_rho[0:1:10][0:1:10]
>
> Error {
> code = 500;
> message = "NcSDArray InvalidRangeException=Number of ranges in
> section (2) must be = 3";
> };
>
> On Mon, Feb 8, 2010 at 5:54 PM, Unidata THREDDS Support
> <address@hidden> wrote:
> > Hiya Rich,
> >
> > As you probably know John is on vacation so I'm going to make an attempt to
> > answer. The best answer I can give is show a piece of code showing the use
> > of Section.
> >
> > /**
> > * Read the data for the variable
> > *
> > * @param v2 Variable to read
> > * @param section section infomation
> > * @return Array of data
> > * @throws IOException problem reading from file
> > * @throws InvalidRangeException invalid Range
> > */
> > public Array readData(Variable v2, Section section)
> > throws IOException, InvalidRangeException {
> > long start = System.currentTimeMillis();
> >
> > Array dataArray = Array.factory(DataType.FLOAT, section.getShape());
> > GridVariable pv = (GridVariable) v2.getSPobject();
> >
> > int count = 0;
> > Range timeRange = section.getRange(count++);
> > Range ensRange = pv.hasEnsemble()
> > ? section.getRange(count++)
> > : null;
> > Range levRange = pv.hasVert()
> > ? section.getRange(count++)
> > : null;
> > Range yRange = section.getRange(count++);
> > Range xRange = section.getRange(count);
> >
> >
> > As you can probably decipher, a Section is some of the data constraint by
> > the ranges of the dimensions.
> >
> >
> > A similar error you encounter was in the models.log until around Dec and
> > then it disappeared. I believe John fixed the problem but I don't know for
> > sure.
> >
> > 14/Dec/2009:05:03:09] ERROR ucar.nc2.dt.fmrc.FmrcImpl : readSection failed
> > ucar.ma2.InvalidRangeException: Number of ranges in section (3) must be = 4
> > at ucar.ma2.Section.fill(Section.java:144)
> >
> > Are you using a TDS version made after Dec? because it might already have
> > the fix.
> >
> > Thanks,
> > Robb...
> >
> >
> >
> > Ticket Details
> > ===================
> > Ticket ID: PSU-730086
> > Department: Support THREDDS
> > Priority: Normal
> > Status: Open
> >
> >
>
>
>
> --
> Dr. Richard P. Signell (508) 457-2229
> USGS, 384 Woods Hole Rd.
> Woods Hole, MA 02543-1598
>
>
Ticket Details
===================
Ticket ID: PSU-730086
Department: Support THREDDS
Priority: Normal
Status: Open