.. _pre analysis: Before reduction and analysis ----------------------------- 0. Create a directory where you will store all the MuSCAT2 analyses. This isn't strictly necessary, but makes life easier in the future. I'll call this directory ``M2ROOT`` from now on, but the name doesn't matter. 1. Execute ``m2init >target_name>`` in the root directory to create an analysis directory ```` with the default directory structure .. code-block:: bash > cd M2ROOT > m2init 2. Copy the photometry from each night to ``/photometry/`` subdirectories. 3. Move into the analysis directory and execute ``m2nbtemplate`` to create a template notebook .. code-block:: bash > cd > m2nbtemplate 4. Open the template notebook in Jupyter. It's a good practice to run a Jupyter notebook server from the ``M2ROOT`` so that you don't need to start a new server for each analyses. So, if you don't have a server running, do .. code-block:: bash > cd M2ROOT > jupyter notebook