Package: astro-scripts
Install=======Try install many of the scripts with::pip install astro-scriptsThis is still under development though, but it does work!To check the installation run ``plot_fits`` in the terminal.WARNING=======Look at the wiki instead:https://github.com/DanielAndreasen/astro\_scripts/wiki It's not done,but I will gradually move documentation to the wiki.Small tools for an astronomer=============================Small scripts to make my life easier.The tools are mainly (if not exclusive) for spectroscopy. All the smallscripts are fairly well documented, and the python scripts use themodule ``argparse`` which means you can run them like::python numpy2moog -hand get some fancy help information on how to use them. The shellscripts have a block comment in top of the file.I recommend putting this folder in your PATH so the scripts are easilyaccesible. To do so depends on your system. I am sure`google <http://www.google.com>`__ can help you ;)Dependencies-------------  `Matplotlib <http://matplotlib.org/>`__-  `Astropy <http://astropy.org>`__-  `numpy <http://numpy.org>`__-  `argparse <https://docs.python.org/3/library/argparse.html>`__-  `PyAstronomy <http://www.hs.uni-hamburg.de/DE/Ins/Per/Czesla/PyA/PyA/index.html>`__plot\_fits----------This I find to be a very powerful and handy python script. It simplyplot a fits file and leave you in pan mode (matplotlib). More over ithas the feature to plot a part of the solar spectrum and telluric lines,and finally redshift the spectrum.For this script one needs to use the telluric and solar spectrumprovided here and change the path in ``plot_fits`` in line 46 and line57.The wavelength vector is created from the fits (which should be 1D). Ituses the keywords - CRVAL1: The beginning of the wavelength. - CDELT1:The step in wavelength. - NAXIS: The length of the wavelength vector... figure:: figure1.png:alt: An example of using plot_fits with matplotlibExamplenumpy2moog----------This is a python script that converts ASCII arrays into the format for`MOOG <http://www.as.utexas.edu/~chris/moog.html]>`__. It can be a bittricky, but I will provide examples in the future.VALDextraction--------------This script is used to send emails to ``extract all`` from the VALDdatabase. A central wavelength should be inputted with the ``-h`` flag,and the half range should be given with the ``-s`` flag.Example^^^^^^^::VALDextraction -w 6743 -s 3This will open a new email (Thunderbird) with the syntax required forVALD (no reason to delete the signature) in a 6Å window centered on thewavelength 6743Å.splotCommenter.sh-----------------This one-liner I have saved in a script put a ``#`` on all the linescontaining a ``center`` from a IRAF files after using the ``splot``routine. This allows to easy read the ``splot.log`` with python usingsomething like ``np.loadtxt``. One probably need to remove date strings.This should be easy to implement I guess.VALDprepare.sh--------------This bash script unpack a linelist from`VALD <http://vald.astro.univie.ac.at/~vald3/php/vald.php>`__ when thedownload option is set to FTP. The downloadable file is ``.gz``. Thisfile is unpacked and saved in an optional ``output`` argument (see theblock comment in the script). The references is saved in a seperatefile, and the final file is relatively easy to read with ``np.loadtxt``.CONTRIBUTE----------Feel free to open an issue with suggestions or bugs.LICENCE-------Read the LICENCE file.