.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "gallery_examples/maps/read_map.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_gallery_examples_maps_read_map.py: .. _example_read_map: Read a FITS file with MadcubaMap ################################ Example showing how to read a fits map file as a `~madcubapy.io.MadcubaMap`. .. note:: Due to how MADCUBA saves some fits header cards, several astropy warnings can pop up when reading fits files. Usually these warnings are unexpected card names using non-standard conventions. .. GENERATED FROM PYTHON SOURCE LINES 15-21 .. code-block:: Python from madcubapy.io import MadcubaMap # Read fits file madcuba_map = MadcubaMap.read("../data/IRAS16293_SO_2-1_moment0_madcuba.fits") .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.019 seconds) .. _sphx_glr_download_gallery_examples_maps_read_map.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: read_map.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: read_map.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: read_map.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_