Expansion to planetary bodies? #27
Comments
Hum hum. Jupiter first. :-)
…On Feb 8, 2017 17:12, "K.-Michael Aye" ***@***.***> wrote:
How hard would it be to expand this to other planets, most urgently Mars?
I'm a Mars surface scientist and any way to have easy Mars surface
displays inside Jupyter would be awesome.
Is there a list of things that are required somewhere? Like basemaps in
that format stored here, etc...
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#27>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AAUez98Oxe3KOygf5K7G7wRGTt3HXF9dks5ramgGgaJpZM4L7lIm>
.
|
It should be possible, but not without a bit of work. You would need to load in a (raster) Mars tileset instead of the current Earth political tileset (something like what Google has done here. This would provide the underlying map layer. I am not sure where such a tileset might be found. GeoJSON itself is a vector format, so whatever data you would be plotting on top of the map tileset would have to be convertable to that (I think that GDAL can do it for a number of formats, for instance). |
@Carreau yeah, not much of a surface at Jupiter. ;) I know where to get tilesets, they are being produced for the public by the USGS, so that's not a problem. And if there's format problems, I have colleagues there that can help out. Where can I find the Earth tileset reading/storing mechanism? I tried to browse the code to find it but can't see anything relevant? |
The relevant link is in |
I think this is really cool that someone is exploring doing Mars surface analysis in Jupyter using the leaflet plugin. I'd love to see an example notebook at some point using this. |
Here is a branch that swaps out the OpenStreetMap political tileset with a Martian one. The server that provides the tileset appears to be set up through openplanetary/whereonmars. |
Awesome sauce. |
i am an admin member of OpenPlanetary, will discuss it with the guys. ;) Thanks a lot! |
Question: Which protocols are supported via this Leaflet? Only tiled WMS? Or also traditional WMS? (I'm a WMS noob so excuse my ignorance ;) ) |
FYI, I'm working on an update to the GeoJSON display class (which is moving to ipython BTW) that will accept additional Leaflet-specific arguments, e.g.: from IPython.display import GeoJSON
GeoJSON(data={
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [-81.327, 296.038]
},
"properties": {
"name": "Inca City"
}
},
url_template="http://s3-eu-west-1.amazonaws.com/whereonmars.cartodb.net/{basemap_id}/{z}/{x}/{y}.png",
layer_options={
"basemap_id": "celestia_mars-shaded-16k_global",
"attribution" : "Celestia/praesepe",
"minZoom" : 0,
"maxZoom" : 18,
}) |
oh, that's nice, then I can store a catalog of urls, and mix and match things! ;) |
Ya, the Leaflet's URL template should not be hard-coded because there are obviously so many different sources of tilesets. |
This is implemented with #30! It depends on jupyterlab@0.17.0 (or master). |
Closed by #30. Give it a try!! |
How hard would it be to expand this to other planets, most urgently Mars?
I'm a Mars surface scientist and any way to have easy Mars surface displays inside Jupyter would be awesome.
Is there a list of things that are required somewhere? Like basemaps in that format stored here, etc...
The text was updated successfully, but these errors were encountered: