![]() Type or copy/paste the following bit in the Terminal: # Download image in DS9ĭs9 -dsseso M31 -dsseso size 60 60 arcmin -save img/test.fits -exitĬongratulations! You’ve just downloaded a FITS file image centred on the Andromeda galaxy with dimensions of 60×60 square-arcminutes in area, and you have just written your first DS9 script! How wonderful is that! DS9 Scripting – easy If you do not have any FITS file at hand, do not worry! DS9 will provide you some! (you will need to be connected to the internet). Let’s fire this up by opening a FITS file: # Open image in DS9 This should work and give you the path to your installation. Test your installation by doing which ds9 Refresh the terminal by doing source ~/.bashrc bashrc file): #DS9ver8.0.1Įxport PATH = /Applications/ds9ver8:$PATH profile file where you would put the following lines (I assume you are using bash and you know how to change your. Create the folder ‘ds9ver8’ and move the two files there. You should now place these two files in the folder of your choice. Which will produce the files ‘ds9’ and ‘ds9.zip’. Unpack it from the Terminal: gunzip ds9.darwinmojave.8.0.1.tar.gzĪnd then untar it tar -xvzf ds9.darwinmojave8.0.1.tar The installation procedure is always the same.Ĭhoose the version that suits you and download it. but it is recommended that you download the most recent version. We install here, as an example, a more antiquated version v7.5. DS9 scripting – hard (link to command line options)Īs of this writing, the latest version of DS9 is at v8.0.1.In this tutorial, we will see the following: Learning how to script in DS9 will save you a lot of time, especially if you are doing repetitive tasks. This is incredibly powerful especially if you have a large amount of files and you do not wish to use the mouse to click on the same set of buttons over and over again. That is, you can launch specific commands from the Terminal that will automatically run and do things in DS9. One of the powerful aspects of DS9 is that it is easily scriptable. Instead, I will focus on giving you a starting point on how to use this software so that it serves your needs and to do interesting things with it. Here, I will not delve into all the functions of this software. It can also do much more than viewing these FITS image files. One of them is the SAOImage DS9 software (available on multiple platforms including Mac OS, Windows, and Linux), provided for free by the Smithsonian Astrophysical Observatory. To open and view such a file, one needs a FITS-file viewer. fts called a ‘FITS file’, which stands for Flexible Imaging Transport System. Images from professional astronomical observations come from various telescopes and instruments but are commonly saved in the same file format with extensions written as.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |