Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (2)
Porjection name compatibility
· 3759a38d
Antonio Valentino
authored
Jan 23, 2020
3759a38d
Set distribution to unstable
· b4d6d34b
Antonio Valentino
authored
Jan 23, 2020
b4d6d34b
Show whitespace changes
Inline
Side-by-side
debian/changelog
View file @
b4d6d34b
pyresample (1.14.0-3) unstable; urgency=medium
* debian/patches:
- drop 0001-fix-proj4-initialization.patch,no longer necessary
- renumber all patches
- new 0007-Projection-names-compatibility.patch (CLoses: 949274)
-- Antonio Valentino <antonio.valentino@tiscali.it> Thu, 23 Jan 2020 07:50:04 +0000
pyresample (1.14.0-2) unstable; urgency=medium
* debian/patches:
...
...
debian/patches/000
2
-Skip-dask-related-tests-if-dask-is-not-available.patch
→
debian/patches/000
1
-Skip-dask-related-tests-if-dask-is-not-available.patch
View file @
b4d6d34b
...
...
@@ -9,7 +9,7 @@ Subject: Skip dask-related tests if dask is not available
3 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/pyresample/test/test_geometry.py b/pyresample/test/test_geometry.py
index
7ecb008..23f5df9
100644
index
295951f..50efd00
100644
--- a/pyresample/test/test_geometry.py
+++ b/pyresample/test/test_geometry.py
@@ -9,7 +9,8 @@
import numpy as np
...
...
debian/patches/0001-fix-proj4-initialization.patch
deleted
100644 → 0
View file @
b72fa321
From: Antonio Valentino <antonio.valentino@tiscali.it>
Date: Sat, 18 Jul 2015 10:33:21 +0000
Subject: fix proj4 initialization
---
pyresample/test/test_files/areas.cfg | 2 +-
pyresample/test/test_geometry.py | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/pyresample/test/test_files/areas.cfg b/pyresample/test/test_files/areas.cfg
index 063264d..620e665 100644
--- a/pyresample/test/test_files/areas.cfg
+++ b/pyresample/test/test_files/areas.cfg
@@ -28,7 +28,7 @@
REGION: ease_nh {
REGION: pc_world {
NAME: Plate Carree world map
PCS_ID: pc_world
- PCS_DEF: proj=eqc
+ PCS_DEF: proj=eqc, ellps=WGS84
XSIZE: 640
YSIZE: 480
AREA_EXTENT: (-20037508.342789244, -10018754.171394622, 20037508.342789244, 10018754.171394622)
diff --git a/pyresample/test/test_geometry.py b/pyresample/test/test_geometry.py
index 295951f..7ecb008 100644
--- a/pyresample/test/test_geometry.py
+++ b/pyresample/test/test_geometry.py
@@ -559,7 +559,7 @@
class Test(unittest.TestCase):
swath_def = geometry.SwathDefinition(lons, lats)
filter_area = geometry.AreaDefinition('test', 'test', 'test',
{'proj': 'eqc', 'lon_0': 0.0,
- 'lat_0': 0.0},
+ 'lat_0': 0.0, 'ellps': 'WGS84'},
8, 8,
(-20037508.34, -10018754.17, 20037508.34, 10018754.17))
filter = np.array([[1, 1, 1, 1, 0, 0, 0, 0],
@@ -584,7 +584,7 @@
class Test(unittest.TestCase):
data = np.array([1, 2, 3, 4])
filter_area = geometry.AreaDefinition('test', 'test', 'test',
{'proj': 'eqc', 'lon_0': 0.0,
- 'lat_0': 0.0},
+ 'lat_0': 0.0, 'ellps': 'WGS84'},
8, 8,
(-20037508.34, -10018754.17, 20037508.34, 10018754.17))
filter = np.array([[1, 1, 1, 1, 0, 0, 0, 0],
@@ -619,7 +619,7 @@
class Test(unittest.TestCase):
data = np.dstack((data1, data2, data3))
filter_area = geometry.AreaDefinition('test', 'test', 'test',
{'proj': 'eqc', 'lon_0': 0.0,
- 'lat_0': 0.0},
+ 'lat_0': 0.0, 'ellps': 'WGS84'},
8, 8,
(-20037508.34, -10018754.17, 20037508.34, 10018754.17))
filter = np.array([[1, 1, 1, 1, 0, 0, 0, 0],
@@ -688,7 +688,7 @@
class Test(unittest.TestCase):
def test_latlong_area(self):
area_def = geometry.AreaDefinition('', '', '',
- {'proj': 'latlong'},
+ {'proj': 'latlong', 'ellps': 'WGS84'},
360, 180,
[-180, -90, 180, 90])
lons, lats = area_def.get_lonlats()
debian/patches/000
3
-Make-xarray-optional-for-testing.patch
→
debian/patches/000
2
-Make-xarray-optional-for-testing.patch
View file @
b4d6d34b
...
...
@@ -9,7 +9,7 @@ Subject: Make xarray optional for testing
3 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/pyresample/test/test_geometry.py b/pyresample/test/test_geometry.py
index
23f5df9..4ac94d5
100644
index
50efd00..42d9269
100644
--- a/pyresample/test/test_geometry.py
+++ b/pyresample/test/test_geometry.py
@@ -24,6 +24,11 @@
if sys.version_info < (2, 7):
...
...
debian/patches/000
4
-Detect-broken-basemap.patch
→
debian/patches/000
3
-Detect-broken-basemap.patch
View file @
b4d6d34b
File moved
debian/patches/000
5
-Comapt-with-dask-1.0.patch
→
debian/patches/000
4
-Comapt-with-dask-1.0.patch
View file @
b4d6d34b
File moved
debian/patches/000
6
-Skip-test-on-deprecatet-basemap.patch
→
debian/patches/000
5
-Skip-test-on-deprecatet-basemap.patch
View file @
b4d6d34b
File moved
debian/patches/000
7
-Fix-tests-on-i386.patch
→
debian/patches/000
6
-Fix-tests-on-i386.patch
View file @
b4d6d34b
File moved
debian/patches/0007-Projection-names-compatibility.patch
0 → 100644
View file @
b4d6d34b
From: Antonio Valentino <antonio.valentino@tiscali.it>
Date: Thu, 23 Jan 2020 07:46:17 +0000
Subject: Projection names compatibility
---
pyresample/test/test_utils.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/pyresample/test/test_utils.py b/pyresample/test/test_utils.py
index 93104a4..9945fbb 100644
--- a/pyresample/test/test_utils.py
+++ b/pyresample/test/test_utils.py
@@ -474,7 +474,12 @@
class TestMisc(unittest.TestCase):
crs = CRS(init='epsg:3857')
source = tmptiff(crs=crs)
area_def = utils._rasterio.get_area_def_from_raster(source)
- self.assertEqual(area_def.proj_id, 'WGS 84 / Pseudo-Mercator')
+ #self.assertEqual(area_def.proj_id, 'WGS 84 / Pseudo-Mercator')
+ epsg3857_names = (
+ 'WGS_1984_Web_Mercator_Auxiliary_Sphere',
+ 'WGS 84 / Pseudo-Mercator',
+ )
+ self.assertIn(area_def.proj_id, epsg3857_names)
def test_get_area_def_from_raster_rotated_value_err(self):
from pyresample import utils
debian/patches/series
View file @
b4d6d34b
0001-
fix-proj4-initialization
.patch
0002-
Skip-dask-related-tests-if-dask-is-not-available
.patch
0003-
Make-xarray-optional-for-testing
.patch
0004-
Detect-broken-basemap
.patch
0005-
Comapt-with-dask-1.0
.patch
0006-
Skip
-test-on-
deprecatet-basemap
.patch
0007-
Fix-tests-on-i386
.patch
0001-
Skip-dask-related-tests-if-dask-is-not-available
.patch
0002-
Make-xarray-optional-for-testing
.patch
0003-
Detect-broken-basemap
.patch
0004-
Comapt-with-dask-1.0
.patch
0005-
Skip-test-on-deprecatet-basemap
.patch
0006-
Fix
-test
s
-on-
i386
.patch
0007-
Projection-names-compatibility
.patch