Exception thrown when doing "Check Configuration Page" on METAR Netcdf file
GoogleCodeExporter opened this issue · 5 comments
GoogleCodeExporter commented
See exception here:
http://sos-ws.tamu.edu/oostethys/check.jsp
Test Data file available here:
http://vast.uah.edu/downloads/20090510_1200_200905101202-GMT.hdf
Config file attached. I reduced it to only loading variable timeObs, but I
get an exception at same point in code if I try to load lat,lon, time, and
some other vars. File looks okay using NCSA HDFView tool. No exception
appears in Tomcat log file.
Original issue reported on code.google.com by TheRest...@gmail.com
on 28 May 2009 at 3:46
Attachments:
GoogleCodeExporter commented
Original comment by ber...@gmail.com
on 29 May 2009 at 4:34
- Added labels: Component-serverJAVA
GoogleCodeExporter commented
Original comment by ber...@gmail.com
on 29 May 2009 at 4:35
- Added labels: Priority-Critical
- Removed labels: Priority-Medium
GoogleCodeExporter commented
I think - issue appears when reading dewPoint, it finds a '?' when a float is
expected. Do you know, Tony if there is such value '?' in dewpoint ?
INFO: processed successfully float dewpoint(recNum=1787);
:long_name = "dewpoint";
:units = "kelvin";
:_FillValue = 3.4028235E38f; // float
:standard_name = "dew_point_temperature";
May 29, 2009 12:58:41 PM org.oostethys.model.impl.ObservationNetcdf createResult
INFO: numberOfFields 3
java.lang.NumberFormatException: For input string: "?"
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1224)
at java.lang.Double.parseDouble(Double.java:482)
at org.oostethys.model.impl.ObservationNetcdf.createResult(ObservationNetcdf.java:531)
at org.oostethys.sos.Netcdf2sos100.processSystem(Netcdf2sos100.java:441)
at org.oostethys.sos.Netcdf2sos100.doComponents(Netcdf2sos100.java:162)
at org.oostethys.sos.Netcdf2sos100.doComponents(Netcdf2sos100.java:163)
at org.oostethys.sos.Netcdf2sos100.doComponents(Netcdf2sos100.java:163)
at org.oostethys.sos.Netcdf2sos100.process(Netcdf2sos100.java:333)
at org.oostethys.sos.Netcdf2sos100.processForTest(Netcdf2sos100.java:295)
at org.oostethys.sos.test.TestOOSTethysConfig.testProcess(TestOOSTethysConfig.java:23)
Original comment by ber...@gmail.com
on 29 May 2009 at 5:02
GoogleCodeExporter commented
This is what appears in the debugger:
lon = "�"
Original comment by ber...@gmail.com
on 29 May 2009 at 5:19
GoogleCodeExporter commented
In org.oostethys.model.impl.ObservationNetcdf line 550 added a try catch block
when
parsing lat lon values. Will report to logger the error if lat lon are not
double.
Original comment by ber...@gmail.com
on 29 May 2009 at 5:37
- Changed state: Fixed