diff --git a/pyglance/glance/io.py b/pyglance/glance/io.py index 43da00134bed99e45e6fadd5e87f06793542ea2a..0e695be914bcbbe7674fa76cbbf55579ea04b377 100644 --- a/pyglance/glance/io.py +++ b/pyglance/glance/io.py @@ -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) diff --git a/pyglance/glance/plot.py b/pyglance/glance/plot.py index d6ac5ea3a1c2ea9f24652bd0a96703364bcd286e..4c266930400273b5dfd2b7c2bdb04284ea4bbd80 100644 --- a/pyglance/glance/plot.py +++ b/pyglance/glance/plot.py @@ -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!