Skip to content
Snippets Groups Projects
Commit cdb4e26f authored by (no author)'s avatar (no author)
Browse files

minor corrections

git-svn-id: https://svn.ssec.wisc.edu/repos/glance/trunk@35 8a9318a1-56ba-4d59-b755-99d26321be01
parent 0ab15753
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment