Hi Kyle:
This is a problem with 2D Coordinate Systems eg lat(x,y), lon(x,y).
Currently the code does not know how to find the index point (i,j) given
a (lat, lon) coordinate, which is what the "Grid as Point" function needs.
I am working on a fix for this, thanks for reporting the problem....
Kyle Wilcox wrote:
Hello all,
I have a dataset that works correctly with the grid subset, ncWMS, and
any other NetCDF tool I can come across. It is failing with the
THREDDS NetCDF subset when requesting point data.
Dataset:
http://staging.asascience.com:8989/thredds/catalog/Cadiz/Currents/catalog.html?dataset=Cadiz/Currents/EGM200_3.nc
Point Subset:
http://staging.asascience.com:8989/thredds/ncss/grid/Cadiz/Currents/EGM200_3.nc/pointDataset.html
Request: http://staging.asascience.com:8989
/thredds/ncss/grid/Cadiz/Currents/EGM200_3.nc?var=u_wind,v_wind&latitude=35&longitude=-6&temporal=point&accept=xml&point=true&time_end=present&time_duration=P3D
Trace:
2009-07-08T17:32:13.277 -0400 [ 5142656][ 167] ERROR -
thredds.server.ncSubset.GridServlet - GridServlet.processGridAsPoint
java.lang.ArrayIndexOutOfBoundsException
at ucar.ma2.Index2D.setDirect(Index2D.java:135)
at ucar.ma2.ArrayDouble$D2.get(ArrayDouble.java:295)
at
ucar.nc2.dataset.CoordinateAxis2D.getCoordValue(CoordinateAxis2D.java:75)
at
ucar.nc2.dt.grid.GridCoordSys.getLatLon(GridCoordSys.java:1026)
at
ucar.nc2.dt.grid.GridAsPointDataset.readData(GridAsPointDataset.java:100)
at
thredds.server.ncSubset.GridPointWriter.write(GridPointWriter.java:253)
at
thredds.server.ncSubset.GridServlet.processGridAsPoint(GridServlet.java:259)
at
thredds.server.ncSubset.GridServlet.doGet(GridServlet.java:171)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
thredds.servlet.filter.RequestQueryFilter.doFilter(RequestQueryFilter.java:121)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
thredds.servlet.filter.RequestPathFilter.doFilter(RequestPathFilter.java:105)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Unknown Source)
Is this most likely caused by an incorrect dataset?
*Kyle Wilcox*
*ASA **|** Science. Services. Solutions.*
Consider the environment before printing this email
------------------------------------------------------------------------
_______________________________________________
thredds mailing list
thredds@xxxxxxxxxxxxxxxx
For list information or to unsubscribe, visit: http://www.unidata.ucar.edu/mailing_lists/