[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDFJava #UWT-369970]: some questions on opendap url support on netcdf java api



Hi Dibya:

Ok, we are having a lot of trouble with that dataset. Do you have access to the 
actual file? If so, can you send it to us? 

thanks,

John

> The complete exception I got is
> 
> Exception in thread "main" java.lang.UnsupportedOperationException: Cannot 
> directly read section of Member Variable=Orbit 5451.Geolocation 
> Fields.Latitude
> at ucar.nc2.Variable.reallyRead(Variable.java:844)
> at ucar.nc2.Variable._read(Variable.java:832)
> at ucar.nc2.Variable.read(Variable.java:644)
> at ucar.nc2.Variable.read(Variable.java:590)
> at edu.uah.itsc.opendapnc.OpendapNcChannels.showAll(OpendapNcChannels.java:66)
> at edu.uah.itsc.opendapnc.OpendapNcChannels.showAll(OpendapNcChannels.java:54)
> at edu.uah.itsc.opendapnc.OpendapNcChannels.showAll(OpendapNcChannels.java:54)
> at edu.uah.itsc.opendapnc.OpendapNcChannels.init(OpendapNcChannels.java:44)
> at 
> edu.uah.itsc.opendapnc.OpendapNcObject.convertToGlider(OpendapNcObject.java:69)
> at edu.uah.itsc.CallGliderConverter.main(CallGliderConverter.java:68)
> 
> Thanks,
> Dibya
> 
> -----Original Message-----
> From: Shakya, Dibya
> Sent: Wednesday, May 26, 2010 11:48 AM
> To: 'address@hidden'
> Cc: Keiser, Ken
> Subject: RE: [netCDFJava #UWT-369970]: some questions on opendap url support 
> on netcdf java api
> 
> As I said before I tried the code that works with local files with opendap 
> url and it didn't work.
> 
> 
> Once read into Variable object var I am using following code to read data of 
> variable
> 
> int[] origin = { 0, 0 };
> int[] shape = { 1, 1 };
> 
> try {
> Array data = var.read(origin, shape).reduce();
> System.out.println(data.getFloat(0));
> } catch (IOException e) {
> e.printStackTrace();
> } catch (InvalidRangeException e) {
> e.printStackTrace();
> }
> 
> 
> I get the following exception
> Exception in thread "main" java.lang.UnsupportedOperationException: Cannot 
> directly read section of Member Variable=Orbit 5451.Geolocation 
> Fields.Latitude
> 
> Can you try to see if you can read data from variables from file
> http://ws3dev.itsc.uah.edu/opendap/extractTarFiles/amsua15_1999.152_05451_0045_0239_GC.eos
> 
> I am testing using this file.
> 
> Thanks,
> Dibya
> 
> -----Original Message-----
> From: Unidata netCDF Java Support [mailto:address@hidden]
> Sent: Tuesday, May 25, 2010 9:50 AM
> To: Shakya, Dibya
> Cc: Keiser, Ken; address@hidden; Shakya, Dibya
> Subject: [netCDFJava #UWT-369970]: some questions on opendap url support on 
> netcdf java api
> 
> You dont do anything special for opendap. So just read the tutorial and 
> follow the examples there.
> 
> > Hi,
> >
> > I looked through the doc
> > http://www.unidata.ucar.edu/software/netcdf-java/tutorial/index.html
> >
> > I didn't find anything specific to reading from Opendap urls.
> > So, if there is some information in internet and you could provide link to 
> > that, it would be very helpful.
> >
> > Thanks,
> > Dibya
> >
> > -----Original Message-----
> > From: Shakya, Dibya
> > Sent: Wednesday, May 19, 2010 11:37 AM
> > To: 'address@hidden'
> > Subject: RE: [netCDFJava #UWT-369970]: some questions on opendap url 
> > support on netcdf java api
> >
> > Hi,
> >
> > Did you find anything about it?
> >
> > Thanks,
> > Dibya
> >
> > -----Original Message-----
> > From: Shakya, Dibya
> > Sent: Monday, May 17, 2010 1:15 PM
> > To: 'address@hidden'
> > Subject: RE: [netCDFJava #UWT-369970]: some questions on opendap url 
> > support on netcdf java api
> >
> > Hi,
> >
> > The code you gave is working. It is listing the variables.
> > I am having problem in reading contents of variables.
> > Can't we use the same functions that we used to read local files for 
> > opendap urls?
> >
> > Once read into Variable object var I am using following code to read data 
> > of variable
> >
> > int[] origin = { 0, 0 };
> > int[] shape = { 1, 1 };
> >
> > try {
> > Array data = var.read(origin, shape).reduce();
> > System.out.println(data.getFloat(0));
> > } catch (IOException e) {
> > e.printStackTrace();
> > } catch (InvalidRangeException e) {
> > e.printStackTrace();
> > }
> >
> >
> > I get the following exception
> > Exception in thread "main" java.lang.UnsupportedOperationException: Cannot 
> > directly read section of Member Variable=Orbit 5451.Geolocation 
> > Fields.Latitude
> >
> > Thanks,
> > Dibya
> >
> 
> 


Ticket Details
===================
Ticket ID: UWT-369970
Department: Support netCDF Java
Priority: High
Status: Open