From 76aba72f045983c71f049a86b67096ccad2c8941 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@8a9318a1-56ba-4d59-b755-99d26321be01> Date: Thu, 23 Jul 2009 15:35:52 +0000 Subject: [PATCH] not sure I want to use a different projection yet, also calculating percentage instead of fraction, oops git-svn-id: https://svn.ssec.wisc.edu/repos/glance/trunk@32 8a9318a1-56ba-4d59-b755-99d26321be01 --- pyglance/glance/compare.py | 2 +- pyglance/glance/plot.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyglance/glance/compare.py b/pyglance/glance/compare.py index 024bd0f..5e7738a 100644 --- a/pyglance/glance/compare.py +++ b/pyglance/glance/compare.py @@ -308,7 +308,7 @@ def _check_lon_lat_equality(longitudeA, latitudeA, lon_lat_not_equal_mask = ((abs(longitudeDiff) > llepsilon) | (abs(latitudeDiff) > llepsilon)) & (~combinedIgnoreMask) \ & finiteLatitudeMask & finiteLongitudeMask lon_lat_not_equal_points_count = sum(lon_lat_not_equal_mask.ravel()) - lon_lat_not_equal_points_percent = float(lon_lat_not_equal_points_count) / float(lon_lat_not_equal_mask.size) + lon_lat_not_equal_points_percent = (float(lon_lat_not_equal_points_count) / float(lon_lat_not_equal_mask.size)) * 100.0 # if we have unequal points, create user legible info about the problem if (lon_lat_not_equal_points_count > 0) : diff --git a/pyglance/glance/plot.py b/pyglance/glance/plot.py index 5bcc2c1..a63ef92 100644 --- a/pyglance/glance/plot.py +++ b/pyglance/glance/plot.py @@ -200,7 +200,7 @@ def _create_mapped_figure(data, latitude, longitude, boundingAxes, title, kwargs['cmap'] = colorMap # draw our data placed on a map - bMap, x, y = maps.mapshow(longitudeCleaned, latitudeCleaned, data, boundingAxes, projection='merc', + bMap, x, y = maps.mapshow(longitudeCleaned, latitudeCleaned, data, boundingAxes, #projection='merc', **kwargs) # and some informational stuff -- GitLab