Loading jupyter/CartoCosmos/CartoCosmos.py +3 −2 Original line number Diff line number Diff line Loading @@ -139,7 +139,8 @@ class planetary_maps: lng = -180 + (abs(lng) % 180) if self.gui.get_longitude_range().value == "0 to 360": lng += 180 if(lng < 0): lng += 360 if self.gui.get_lat_domain().value == "Planetographic": converted_latitude = Math.radians(lat) Loading @@ -152,7 +153,7 @@ class planetary_maps: if(self.gui.get_longitude_range().value == "-180 to 180"): lng *= -1 else: lng = Math.fabs(lng - 360) lng = 360 - lng self.gui.get_lat_lon_label().value = "Lat, Lon: " + \ str(round(lat, 2)) + ", " + str(round(lng, 2)) Loading jupyter/CartoCosmos/planetary_maps.py +1 −1 Original line number Diff line number Diff line Loading @@ -142,7 +142,7 @@ class planetary_maps: lng = -180 + (abs(lng) % 180) if self.gui.get_longitude_range().value == "0 to 360": if(lng < 0): if(lng > 0): lng += 360 if self.gui.get_lat_domain().value == "Planetographic": Loading jupyter/docs/usage.rst +7 −0 Original line number Diff line number Diff line Loading @@ -44,3 +44,10 @@ USGS has researched. moons/vesta .. toctree:: :caption: Well-Known Text :maxdepth: 2 wktExample jupyter/docs/wktExample.rst 0 → 100644 +12 −0 Original line number Diff line number Diff line Well Known Text Example ===== .. jupyter-execute:: import CartoCosmos as l map = l.planetary_maps('mars') map.add_wkt("POLYGON ((-116.946445 -12.134743, -116.946445 15.25898, -75.456603 15.25898, -75.456603 -12.134743, -116.946445 -12.134743))") map.display_map() jupyter/setup.py +1 −1 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ with open("README") as f: setup ( name = 'CartoCosmos', version = '1.0.1', version = '1.0.5', description = 'Virtual planetary mapping', long_description = long_description, author = 'CartoComos Development Team', Loading Loading
jupyter/CartoCosmos/CartoCosmos.py +3 −2 Original line number Diff line number Diff line Loading @@ -139,7 +139,8 @@ class planetary_maps: lng = -180 + (abs(lng) % 180) if self.gui.get_longitude_range().value == "0 to 360": lng += 180 if(lng < 0): lng += 360 if self.gui.get_lat_domain().value == "Planetographic": converted_latitude = Math.radians(lat) Loading @@ -152,7 +153,7 @@ class planetary_maps: if(self.gui.get_longitude_range().value == "-180 to 180"): lng *= -1 else: lng = Math.fabs(lng - 360) lng = 360 - lng self.gui.get_lat_lon_label().value = "Lat, Lon: " + \ str(round(lat, 2)) + ", " + str(round(lng, 2)) Loading
jupyter/CartoCosmos/planetary_maps.py +1 −1 Original line number Diff line number Diff line Loading @@ -142,7 +142,7 @@ class planetary_maps: lng = -180 + (abs(lng) % 180) if self.gui.get_longitude_range().value == "0 to 360": if(lng < 0): if(lng > 0): lng += 360 if self.gui.get_lat_domain().value == "Planetographic": Loading
jupyter/docs/usage.rst +7 −0 Original line number Diff line number Diff line Loading @@ -44,3 +44,10 @@ USGS has researched. moons/vesta .. toctree:: :caption: Well-Known Text :maxdepth: 2 wktExample
jupyter/docs/wktExample.rst 0 → 100644 +12 −0 Original line number Diff line number Diff line Well Known Text Example ===== .. jupyter-execute:: import CartoCosmos as l map = l.planetary_maps('mars') map.add_wkt("POLYGON ((-116.946445 -12.134743, -116.946445 15.25898, -75.456603 15.25898, -75.456603 -12.134743, -116.946445 -12.134743))") map.display_map()
jupyter/setup.py +1 −1 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ with open("README") as f: setup ( name = 'CartoCosmos', version = '1.0.1', version = '1.0.5', description = 'Virtual planetary mapping', long_description = long_description, author = 'CartoComos Development Team', Loading