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

tweaking ranges for projection selection

git-svn-id: https://svn.ssec.wisc.edu/repos/glance/trunk@37 8a9318a1-56ba-4d59-b755-99d26321be01
parent 92fd345f
No related branches found
No related tags found
No related merge requests found
......@@ -77,8 +77,8 @@ class hdf(SD):
if (scaling_method == 0) :
return raw_data_copy
if not ((scaling_method is None) or (scaling_method > 1)) :
LOG.warn ('Scaling method of \"' + str(scaling_method) + '\" will be ignored in favor of hdf standard method. " \
+ "This may cause problems with data consistency')
LOG.warn ('Scaling method of \"' + str(scaling_method) + '\" will be ignored in favor of hdf standard method. '
+ 'This may cause problems with data consistency')
# create the scaled version of the data
scaled_data_copy = np.array(raw_data_copy, dtype=data_type)
......
......@@ -203,9 +203,9 @@ def _create_mapped_figure(data, latitude, longitude, boundingAxes, title,
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) :
if (longitudeRange > 180) :
kwargs['projection'] = 'merc' # use a mercator projection to show the whole world
elif (longitudeRange > 80) or (latitudeRange > 40) :
elif (longitudeRange > 80) or (latitudeRange > 80) :
kwargs['projection'] = 'ortho'
# otherwise the default is just fine!
......
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