From 63ea7e368da8f1e7c1bf59a1c49ce1e182cdeee5 Mon Sep 17 00:00:00 2001 From: MARCHAND MANON Date: Wed, 18 Sep 2024 15:59:53 +0200 Subject: [PATCH] fix: rebase merged two cells --- examples/02_Base_Commands.ipynb | 41 ++++++++++++++++++++++++++++++--- 1 file changed, 38 insertions(+), 3 deletions(-) diff --git a/examples/02_Base_Commands.ipynb b/examples/02_Base_Commands.ipynb index acbef60..1eb1e01 100644 --- a/examples/02_Base_Commands.ipynb +++ b/examples/02_Base_Commands.ipynb @@ -54,6 +54,15 @@ "aladin.target = \"sgr a*\"" ] }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "aladin.layers" + ] + }, { "cell_type": "code", "execution_count": null, @@ -101,8 +110,8 @@ "metadata": {}, "outputs": [], "source": [ - "aladin.overlay_survey = \"P/allWISE/color\"\n", - "aladin.overlay_survey_opacity = 0.5" + "aladin.add_hips(\"P/allWISE/color\", name=\"overlay\")\n", + "aladin.set_layer_opacity(\"overlay\", 0.5)" ] }, { @@ -172,12 +181,38 @@ "aladin.add_fits(Path(\"images/m31.fits\"), name=\"M31\", opacity=0.5)" ] }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "aladin.layers" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "And the fits image can be removed (as any other layer except `base`) with:" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "aladin.remove_layer(\"M31\")" + ] + }, { "cell_type": "markdown", "metadata": {}, "source": [ "You can add markers to the view of the widget with custom popup title and description.\n", - "Here we will add markers for Messier objects M1 to M10." + "Here we will add markers for Messier objects M1 to M10.\n", + "You can get all layers identified by their name." ] }, {