From cdb4e26f85a80190f7cb001ba0eb3fab539c315d Mon Sep 17 00:00:00 2001
From: "(no author)" <(no author)@8a9318a1-56ba-4d59-b755-99d26321be01>
Date: Thu, 23 Jul 2009 21:56:44 +0000
Subject: [PATCH] minor corrections

git-svn-id: https://svn.ssec.wisc.edu/repos/glance/trunk@35 8a9318a1-56ba-4d59-b755-99d26321be01
---
 pyglance/glance/io.py   | 4 ++--
 pyglance/glance/plot.py | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/pyglance/glance/io.py b/pyglance/glance/io.py
index d3a6f13..19ee84a 100644
--- a/pyglance/glance/io.py
+++ b/pyglance/glance/io.py
@@ -42,7 +42,7 @@ class hdf(SD):
         scale_factor = 1.0
         add_offset = 0.0
         data_type = np.float32 # TODO temporary
-        scale_method = None
+        scaling_method = None
         
         # get the variable object and use it to
         # get our raw data and scaling info
@@ -59,7 +59,7 @@ class hdf(SD):
             if ('add_offset' in temp_attributes) :
                 add_offset = temp_attributes['add_offset']
             if ('scaling_method' in temp_attributes) :
-                scale_method = temp_attributes['scaling_method']
+                scaling_method = temp_attributes['scaling_method']
         SDS.endaccess(variable_object)
         
         # don't do lots of work if we don't need to scale things
diff --git a/pyglance/glance/plot.py b/pyglance/glance/plot.py
index 1c1ad01..d6ac5ea 100644
--- a/pyglance/glance/plot.py
+++ b/pyglance/glance/plot.py
@@ -200,8 +200,8 @@ def _create_mapped_figure(data, latitude, longitude, boundingAxes, title,
         kwargs['cmap'] = colorMap
     
     # set up the projection information
-    longitudeRange  = boundingAxes[1] - boundingAxes[0]
-    latitudeRange   = boundingAxes[3] - boundingAxes[2]
+    longitudeRange  = abs(boundingAxes[1] - boundingAxes[0])
+    latitudeRange   = abs(boundingAxes[3] - boundingAxes[2])
     # chose the projection based on the range we have to cover
     if (longitudeRange > 180) or (latitudeRange > 90) :
         kwargs['projection'] = 'merc' # use a mercator projection to show the whole world
-- 
GitLab