Re: [idvdevelopers] bug in LatLonWidget.setLat() and setLon()

Hi Don --

I was latLonWidget.setLat(0.00904604), but 9.0 was showing up in the lat text field of the widget. It was being formatted to 9E-3 in LatLonWidget.setLat(), I believe.

Thanks for the fix!

-- G

On Jul 15, 2010, at 5:36 PM, Don Murray wrote:

Hi Gail-

On 7/15/10 9:15 AM, Gail Dengel wrote:
Hi Guys --

I've noticed a bug setting latitude and longitude in LatLonWidget. Using
MSG as an example, setting the center
lat = 0.00904604
lon = -0.00898543

results in
lat = 9.0
lon = -8.0

I think the error lies in decoding using Misc.decodeLatLon(9E-3).

I'm not sure how the 9E-3 is getting in there, but the E was being decoded as East so the -3 was being lost. I checked in a fix (which will be in the nightly build), so you could now have 9E-3E if you want. ;-)

Don
--
NOAA/ESRL/PSD and CIRES
303-497-3596
http://www.esrl.noaa.gov/psd/people/don.murray/

_______________________________________________
idvdevelopers mailing list
idvdevelopers@xxxxxxxxxxxxxxxx
For list information, to unsubscribe, visit: http:// www.unidata.ucar.edu/mailing_lists/



  • 2010 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the idvdevelopers archives: