.. _example_sn1_sn2: Example SN1 & SN2 ================= This example is the much condensed version of our basic example for those of us already familiar with the parameters and how `LUCI` works. Let's get started! You can find the data used in this tutorial at the CADC database ([http://www.cadc-ccda.hia-iha.nrc-cnrc.gc.ca/en/search](http://www.cadc-ccda.hia-iha.nrc-cnrc.gc.ca/en/search)) searching for M33_FIELD7 SN1 and SN2. .. code-block:: python # Imports import sys sys.path.insert(0, '/media/carterrhea/carterrhea/SIGNALS/LUCI/') # Location of Luci from LuciBase import Luci import LUCI.LuciPlotting as lplt We now will set the required parameters. We are also going to be using our machine learning algorithm to get the initial guesses for SN1 only. .. code-block:: python #Set Parameters # Using Machine Learning Algorithm for Initial Guess Luci_path = '/media/carterrhea/carterrhea/SIGNALS/LUCI/' cube_dir = '/media/carterrhea/carterrhea/M33' # Path to data cube cube_name = 'M33_Field7_SN1.merged.cm1.1.0' # don't add .hdf5 extension object_name = 'M33_Field7_SN1' redshift = -0.0006 # Redshift of M33 resolution = 5000 We intialize our LUCI object .. code-block:: python # Create Luci object cube = Luci(Luci_path, cube_dir+'/'+cube_name, cube_dir, object_name, redshift, resolution) The output will look something like this: .. image:: ReadingIn.png :alt: Luci Initialization Output Let's quickly create a deep frame .. code-block:: python # Create Deep Image cube.create_deep_image() We now fit part of our cube defined by the bounding box 1000