[Thread Prev][Thread Next][Index]

Re: [las_users] problem running LAS 7.2 for TDS using Ferret 6.7



You should use Ferret 6.5 with LAS 7.2.

You will be required to use LAS 6.7 with LAS 7.3 when it is released.  If you are anxious to use Ferret 6.7 you can always pick up the LAS 7.3 beta release.

Roland

Dear LAS developers and all,

  I have problem running LAS 7.2 for TDS using Ferret 6.7.

The plot is working fine in LAS, but it produces NullPointerException when it reads the dataset from TDS (THREDDS).

 

The problem is in FerretIOServiceProvider.java, Line 481

=====================

/**

* New Ferrets (v6.1.1+) write them like this:

*

 * <var name="SITE_NETCODE">

*    <attribute name="long_name" value="Contributing radar site network affiliation code" />

*    <attribute name="_FillValue" value="-1.000000E+34" />

*    <attribute name="missing_value" value="-1.000000E+34" />

*    <attribute name="ferret_datatype" value="STRING" />

*    <attribute name="infile_datatype" value="CHAR />

*/

Element attribute = (Element) attIt.next();

String value = attribute.getAttributeValue("value");

String aname = attribute.getAttributeValue("name");

try {

                float fvalue = Float.valueOf(value).floatValue(); <-- Line 481, NullPointerException for Ferret (v6.7)

=======================

 

I think Ferret (v6.5) is still using the same xml, so it is working fine.

******************

Ferret (v6.5)

<var name="UC">

<attribute name="long_name" value="u current m/s" />

<attribute name="_FillValue" value="   -9999.000" />

<attribute name="missing_value" value="   -9999.000" />

<attribute name="ferret_datatype" value="FLOAT" />

<attribute name="infile_datatype" value="FLOAT" />

<attribute name="direction" value="IJL" />

<attribute name="ferret_datatype" value="FLOAT" />

<attribute name="infile_datatype" value="FLOAT" />

<attribute name="dataset" value="http://apdrc.soest.hawaii.edu/dods/public_data/SCUD/current" />

*****************

 

But when I use Ferret (v6.7), the xml file is completely different.

*****************

Ferret (v6.7)

<datasets>

<dataset name="http://apdrc1.soest.hawaii.edu:9090/dods/public_data/SCUD/current" default="true">

<title>currents</title>

<var name="uc">

<attribute name="long_name" type="char">

   <value><![CDATA[u current m/s]]></value>

</attribute>

<attribute name="_FillValue" type="float">

   <value>-9999</value>

</attribute>

<attribute name="missing_value" type="float">

   <value>-9999</value>

</attribute>

<attribute name="ferret_datatype" type="char">

   <value><![CDATA[FLOAT]]></value>

</attribute>

<attribute name="infile_datatype" type="char">

   <value><![CDATA[FLOAT]]></value>

</attribute>

******************

The parser in FerretIOServiceProvider.java cannot parse the xml file in the correct way.

Does the later version of LAS have this bug fix?

 

Thanks,

  Kin

 

 

 

 

 

 

 

 

 

 

 

 

 



[Thread Prev][Thread Next][Index]


Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement