Control: tags -1 patch Hi,
I just found that this is fixed upstream and extracted the changes that are required. Would you consider creating a new Debian release that included this patch? Thank you Ole
--- a/gwcs/utils.py +++ b/gwcs/utils.py @@ -161,15 +161,24 @@ """ if isinstance(skycoord, coords.SkyCoord): lat = skycoord.spherical.lat + unit = u.deg else: - lat = skycoord[1] - if isinstance(projection, projections.Zenithal): - if lat < 0: - lon_pole = 180 + lon, lat = skycoord + if isinstance(lat, u.Quantity): + unit = u.deg else: + unit = None + if isinstance(projection, projections.Zenithal): + lon_pole = 180 + elif isinstance(projection, projections.Cylindrical): + if lat >= 0: lon_pole = 0 + else: + lon_pole = 180 else: raise UnsupportedProjectionError("Projection {0} is not supported.".format(projection)) + if unit is not None: + lon_pole = lon_pole * unit return lon_pole