Skip to content

Commit

Permalink
📝 Add hips2fits example in notebook 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Xen0Xys committed Jul 23, 2024
1 parent 33a9232 commit 1bde9ef
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion examples/2_Base_Commands.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"You can also add a FITS image to the view of the widget, either as a path (string of pathlib.Path object) or as an\n",
"You can add a FITS image to the view of the widget, either as a path (string of pathlib.Path object) or as an\n",
"astropy HDU object."
]
},
Expand All @@ -204,6 +204,18 @@
"source": [
"aladin.add_fits(Path(\"images/m31.fits\"), name=\"M31\", opacity=0.5)"
]
},
{
"metadata": {},
"cell_type": "markdown",
"source": "You can export a fits image of the current view from the hips you want, and save it to a file."
},
{
"metadata": {},
"cell_type": "code",
"outputs": [],
"execution_count": null,
"source": "fits = aladin.hips2fits(\"P/allWISE/color\", \"images/wise.fits\")"
}
],
"metadata": {
Expand Down

0 comments on commit 1bde9ef

Please sign in to comment.