.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "generated/gallery/arcade-rtv.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_generated_gallery_arcade-rtv.py: Modeling an Arcade of Loops with the RTV Scaling Laws ===================================================== This example shows how to model AIA emission from an arcade of semi-circular loops who's thermal structure is modeled using the RTV scaling laws. .. GENERATED FROM PYTHON SOURCE LINES 9-21 .. code-block:: Python import astropy.time import astropy.units as u from astropy.coordinates import SkyCoord from sunpy.coordinates import get_earth import synthesizAR from synthesizAR.instruments.sdo import InstrumentSDOAIA from synthesizAR.interfaces import RTVInterface from synthesizAR.models import semi_circular_arcade .. GENERATED FROM PYTHON SOURCE LINES 22-23 First, set up the coordinates for loops in the arcade. .. GENERATED FROM PYTHON SOURCE LINES 23-27 .. code-block:: Python obstime = astropy.time.Time('2022-11-14T22:00:00') pos = SkyCoord(lon=15*u.deg, lat=25*u.deg, radius=1*u.AU, obstime=obstime, frame='heliographic_stonyhurst') arcade_coords = semi_circular_arcade(80*u.Mm, 5*u.deg, 50, pos, inclination=10*u.deg) .. GENERATED FROM PYTHON SOURCE LINES 28-29 Next, assemble the arcade. .. GENERATED FROM PYTHON SOURCE LINES 29-32 .. code-block:: Python strands = [synthesizAR.Strand(f'strand{i}', c) for i, c in enumerate(arcade_coords)] arcade = synthesizAR.Skeleton(strands) .. GENERATED FROM PYTHON SOURCE LINES 33-35 We can make a quick plot of what these coordinates would look like as viewed from Earth. .. GENERATED FROM PYTHON SOURCE LINES 35-39 .. code-block:: Python earth_observer = get_earth(obstime) arcade.peek(observer=earth_observer, axes_limits=[(150, 300)*u.arcsec, (275, 425)*u.arcsec]) .. image-sg:: /generated/gallery/images/sphx_glr_arcade-rtv_001.png :alt: arcade rtv :srcset: /generated/gallery/images/sphx_glr_arcade-rtv_001.png :class: sphx-glr-single-img .. GENERATED FROM PYTHON SOURCE LINES 40-41 Next, model the thermal structure of each loop using the RTV scaling laws. .. GENERATED FROM PYTHON SOURCE LINES 41-44 .. code-block:: Python rtv = RTVInterface(heating_rate=1e-6*u.Unit('erg cm-3 s-1')) arcade.load_loop_simulations(rtv) .. GENERATED FROM PYTHON SOURCE LINES 45-46 Finally, compute the LOS integrated AIA emission. .. GENERATED FROM PYTHON SOURCE LINES 46-49 .. code-block:: Python aia = InstrumentSDOAIA([0, 1]*u.s, earth_observer, pad_fov=(40, 40)*u.pixel) maps = aia.observe(arcade) .. rst-class:: sphx-glr-script-out .. code-block:: none Files Downloaded: 0%| | 0/1 [00:00` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: arcade-rtv.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: arcade-rtv.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_