This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Hi Shakya: We have notified the Hyrax developers of the issues that we have seen with that file. You might want to check with them directly at: address@hidden. John > Hi, > > Did you find anything? > I upgraded the opendap server to latest one and still the problem is there. > > Any feedback from you would help me find out the source of problem. > 1) The problem could be with the file itself. Is there anything unusual about > the file? > 2) It could be with the opendap server. If we could test the file by placing > it in some other opendap server we could verify this? > > Thanks, > Dibya > > -----Original Message----- > From: Shakya, Dibya > Sent: Thursday, May 27, 2010 11:24 AM > To: 'address@hidden' > Cc: Keiser, Ken > Subject: RE: [netCDFJava #UWT-369970]: some questions on opendap url support > on netcdf java api > > Here is the actual file. > > When the file is hosted in opendap server, the exception is thrown while > reading. > > Thanks, > Dibya > > -----Original Message----- > From: Unidata netCDF Java Support [mailto:address@hidden] > Sent: Wednesday, May 26, 2010 6:53 PM > To: Shakya, Dibya > Cc: Keiser, Ken; address@hidden; Shakya, Dibya > Subject: [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.jav > > a:66) at > > edu.uah.itsc.opendapnc.OpendapNcChannels.showAll(OpendapNcChannels.jav > > a:54) at > > edu.uah.itsc.opendapnc.OpendapNcChannels.showAll(OpendapNcChannels.jav > > a:54) at > > edu.uah.itsc.opendapnc.OpendapNcChannels.init(OpendapNcChannels.java:4 > > 4) 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_05 > > 451_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 > > Ticket Details =================== Ticket ID: UWT-369970 Department: Support netCDF Java Priority: High Status: Closed