Spring 2006 a Guide to Using Cygwin, DS9, and IRAF

Total Page:16

File Type:pdf, Size:1020Kb

Spring 2006 a Guide to Using Cygwin, DS9, and IRAF ASTR 330/FC 30 – Spring 2006 A Guide to using Cygwin, DS9, and IRAF – PART I I. Introduction This document has been designed to introduce you to the basics of logging into cecilia, the MHC astronomy department server, using Cygwin, an X-terminal emulator. Once you have successfully logged in, we will learn some of the basics of the software package IRAF (Image Reduction and Analysis Facility) in preparation for your project involving spectroscopic data reductions. II. Logging Into Cecilia using Cygwin At many of the PCs available in the Library and Dwight Hall at Mount Holyoke College, one will find the X-terminal emulator, Cygwin, located on the C: drive under “My Computer”. Cygwin is a Linux-like envirnment for Windows. A convenient guide for using Cygwin is located at http://cygwin.com/cygwin-ug-net/cygwin-ug-net.html. Procedure 1. Double-click on the computer icon on the desktop. This will open up a folder. 2. Double-click on the Local Disk (C:). 3. Locate and double-click on the folder entitled “cygwin”. 4. Locate and double-click on the file “cygwin.bat”. This will open a terminal window. 5. In this terminal window, at the prompt, type: $ startx and then wait… a) If you see a firewall message, click on “UNBLOCK” to allow communication between cecilia and your PC. b) You will be greeted with 3 screens. To keep your screen relatively free of clutter, you will want to get rid of the 2 screens on the right. Simply type “exit” at the prompts. c) Place the left mouse button in the upper right hand corner of the remaining window. Resize the window by dragging your cursor in such a fashion as to make the window smaller. 6. Now that you have your cygwin terminal up and running, you need to tell it to accept displays from cecilia. At the prompt, type: $ xhost + cecilia.mtholyoke.edu It will tell you that cecilia is being added to the control list. 7. Now you are ready to log onto cecilia. We do this using a secure shell environment. In your cygwin window, type the following: $ ssh cecilia.mtholyoke.edu –l username –X It should ask you if you want to continue connecting. Type in “yes” at the prompt. Then it will prompt you for your password. Enter the password that was given to you by the Help Desk. 8. You should now be logged on and in your home directory on cecilia. Cecilia is a Linux (Unix)-based environment and therefore requires the use of special commands to navigate the directories and examine files. At the prompt type: $ ls This command will display a list of files in the current directory. You should have a directory called iraf/. 9. In order to do anything with IRAF, you need to be in the directory called iraf/. To get there, type the following command at your prompt: $ cd iraf This will allow you to “change directories” from /home/username to /home/username/iraf. 10. At the prompt, type: $ pwd This will show you the “path of working directory”. Basically, this will tell you where you are in the directory structure. It should say “/home/username/iraf” at the prompt. 11. Next, we need to create IRAF. To do this, type: $ mkiraf It will then ask you which terminal type we wish to work with. Type xgterm and hit return. 12. Next, type: $ ls. This time, you should see that your iraf/ directory contains 2 items: one file called “login.cl”, and another directory called, uparm/. The uparm directory is the depository for the “user’s parameters”. Within the IRAF environment, there are a number of different tasks that can be used to manipulate the raw data obtained at the telescope (more on this later…). Each task has a list of parameters that may be edited to correspond to your particular data. When these parameters are edited, they are saved in the uparm directory. 13. Now we need to edit your login.cl file. The login.cl file tells IRAF which packages to load upon startup, as well as how big to set the display for your images. In this particular case, you can use a couple of different editors to accomplish this task. vi and emacs are two different kinds of available editors. At any rate, lets work with vi. I have placed a useful cheat sheet of vi commands on the course homepage. At the prompt, type: $ vi login.cl IRAF will have automatically set your username, home directory, image directory, and parameter file directory in the login.cl file, but you should check that it looks right. The pertinent lines in the login.cl file should look something like this: home = "/home/username/iraf/" imdir = "/bak/imdirs/username/" uparm= "home/username/iraf/uparm/" userid = "username" The commented-out set commands in the login.cl can be uncommented to indicate some preferences to IRAF. For instance, what editor do you want to use when editing within IRAF? Just delete the # symbol at the beginning of the first set command, and enter the name of the editor you like. To do this in vi, move your cursor with the arrow keys down to the line that starts: # set stdimage = imt512 Typing an ‘x’ will delete a single character. Try getting rid of the # symbol at the beginning of this line. Next, we will need to change the stdimage setting to "imt2048". This will set the image display appropriately for the 1200x800 Loral CCD chip used with the B&C spectrograph at the 2.3-m Steward Observatory Bok Telescope. To do this, move your cursor with the arrow keys until it is at the “5”. Next, hit the “x” key 3 times. This will delete the 5, then the 1, then the 2. Next, you want to input “2048”. To do this, type the letter “i”, move your cursor over one space with the arrow key, and then type in “2048”. When you are finished, you must be sure to hit the “esc” key to exit the “input” mode. Check to make sure that your imtype and imextn are set to fits. When you are finished, type: “:wq” to write, and quit the editor. This will over-write the file with your fresh edits. If you decide that you do not want to keep the changes you have made, type: “:q!” instead. This will allow you to quit the file without saving any changes. 14. Now that your login.cl file has been edited, you are almost ready to begin using IRAF. But first we need to get you some data! I would like you to create a directory for your class work, within the iraf/ directory. To do this, type: $ mkdir Spectra mkdir is the Unix command to make a new directory. Type “ls” to make sure that it is there. 15. Now we will transfer the data provided on the CD to the appropriate directory on cecilia. a) Place the CD into the drive on your PC. b) From the Start menu, go to Programs and locate WinSCP or WinSCP2. Click on the executable file. c) This will bring up a new window that will prompt you for the host you wish to connect to. Where it says “Host name”, enter: cecilia.mtholyoke.edu. Enter your username and password in the appropriate boxes and then click on “Login”. You will be prompted to accept the host key. Click on Yes. d) You are now connected to cecilia. In the right hand side of the window, you will see your directory iraf. Open it by double-clicking on the folder. Inside of that, you should see 2 more folders representing your Spectra directory, and the uparm directory. Double-click on your Spectra directory. e) Next, change the current directory displayed on the left hand side of the screen to D: by clicking on the drive selector. f) Click on the first file on your CD (a0006.fits). Then, from the top tool bar, select Mark, and choose Select All. g) Then, under Command, select Copy. This will bring up another window, asking you if the directory shown is the correct directory to which you wish to copy your files. If so, click on Copy and wait for the operation to finish. h) When it has finished (it took me 1:15 minutes to transfer the data), close out the session by clicking the red-X in the upper right hand corner of the screen. Confirm the termination of your session by clicking on Yes. 16. Now we can start looking at some data and familiarizing ourselves with IRAF. Learning How to Start IRAF and Display Images We left off logged into cecilia, in our iraf/ directory. Now we need to find out how to start our IRAF session and how to display our images. We will be using the astronomical imaging and data visualization application called SAOImage DS9 or DS9 for short. DS9 may be used in conjunction with IRAF or in stand-alone mode. To start DS9: At your prompt, type: $ ds9 & The ampersand is important because it ensures that DS9 will be run as a background job, leaving your xterm window free for other tasks. Once DS9 opens, you will want to re-size it by using the left mouse button and the upper right corner of the window. The images acquired at the telescope are recorded in fits (Flexible Image Transport System) format. This is currently the standard format for recording astronomical data, developed by D.
Recommended publications
  • KING-MPIA-DOC-DET-004 Short Title KING 70 Cm Rocon Issue 2.169 Date June 18, 2021
    KING { 70cm Telescope { RoCon Software Manual Doc. No. KING-MPIA-DOC-DET-004 Short Title KING 70 cm Rocon Issue 2.169 Date June 18, 2021 Prepared . .Richard . .J. Mathar . .. .([email protected], . .382) . .June . 18, . .2021 . Name Date Signature Approved ...................................................................N. Surname Name Date Signature Released . .N. Surname . Name Date Signature ii KING-MPIA-DOC-DET-004 { KING 70 cm Rocon { Issue 2.169 Change Record Issue Date Sect. Reason/Initiation/Documents/Remarks 1.055 2020-02-24 all created 2.169 June 18, 2021 all SVN version 44M KING-MPIA-DOC-DET-004 { KING 70 cm Rocon { Issue 2.169 iii Contents 1 OVERVIEW 1 1.1 Acronyms..........................................1 1.2 References..........................................2 2 OBSERVER 2 2.1 Basics of Operation.....................................2 2.2 Info pages..........................................2 2.3 Prerequisites........................................ 19 2.3.1 ccdread....................................... 19 2.3.2 Temperature log.................................. 22 2.4 FITS output........................................ 22 2.5 Temperatures........................................ 23 2.6 PyRAF........................................... 24 2.7 Jupyter........................................... 24 2.8 Pointing Model....................................... 25 2.8.1 Refractive index.................................. 25 2.8.2 Model Fit...................................... 26 2.9 Dome Slit Model.....................................
    [Show full text]
  • News from the Society for Astronomical Sciences
    eu News from the Society for Astronomical Sciences Vol. 14 No.3 (November, 2016) Getting Ready for SAS- 2017 The 2017 SAS Symposium will be held on June 15-16-17, 2017, at the Ontario Airport Hotel. There will be Work- shops on topics of interest to the small-telescope research community, Technical Papers on research results and project plans, and our Sponsors will have new products on display. The SAS Program Committee is pre- paring the details of the Symposium and looking into some new features. Here’s what you can start doing now: Block the dates (June 15-16-17, 2017) on your calendar. Make travel reservations. Keep working on your projects, and decide which one you would like to present. Start preparing your Abstract Invite your colleagues who are interested in small-telescope re- Reminders ... search activities. Membership Renewal: Even if you Workshop Videos: Video recordings of can’t attend the annual Symposium, most of the Workshops from recent years are available from SAS. If you Kudos or Criticisms? we value your support of the Society for Astronomical Sciences, and your were registered for the Workshop, then the recording is free. If you were not a We are looking forward to seeing re- interest in small-telescope science. registered attendee, then the price is sults on a wide diversity of projects You can renew your membership on $50 per workshop. Contact Bob and objects at SAS-2017! If you have the SAS website (SocAstroSci.org), by Buchheim ([email protected]) for any questions or ideas for the Sympo- going to the MEMBERSHIP/REGISTRATION the details.
    [Show full text]
  • Ucam Installation Manual
    UCam Installation Manual Version 0.3 Stewart McLay 5th March 2010 Acknowledgements Professor Vikram Dhillon who was P.I. for the UltraCam instrument the project from which UCam was born. The UCam development team has involved several members of UK ATC staff. Valuable contributions were made by: David Atkinson, Steven Beard, Derek Ives, Stewart McLay, Chris Tierney and Andy Vick. The Enhanced Machine Controller (EMC) project for their knowledge base wiki which has been a valuable source of information for installing RTAI on Debian Linux. 2 Table of Contents 1Introduction........................................................................................................................................5 1.1About UltraCam..........................................................................................................................5 1.2About ARC Controller................................................................................................................5 1.3About UK Astronomy Technology Centre.................................................................................6 1.4Acronyms And Abbreviations.....................................................................................................6 1.5Stylistic Conventions..................................................................................................................6 2How To Install Debian Linux.............................................................................................................8 2.1Debian Releases..........................................................................................................................8
    [Show full text]
  • Data Reduction Helpdesk First Responder Guidelines Kathleen Labrie
    Data Reduction Helpdesk First Responder Guidelines Kathleen Labrie Science Users Support Department V2.0 – 14 November 2019 Revision History V1.0 – 16 January 2018 Kathleen Labrie V1.1 – 12 March 2018 Kathleen Labrie V2.0 – 14 November 2019 Kathleen Labrie Document ID: DPSG-USER-101_DRHDFirstResponderGuidelines Document Purpose This document aims to help the Tier 1 assignee respond to the data reduction tickets in a manner that will gather the necessary information for understanding and debugging the problem reported by the users in a timely manner. Intended Audience This document is intended primarily for Tier 1 Data Reduction Helpdesk assignee, who are often NGO members. Members of the Science Users Support Department new to handling data reduction tickets should also read this. Table of Contents 1. Introduction ............................................................................................................................. 2 2. Preparations – Assembling your First-aid Kit .......................................................................... 2 2.1 Choosing a platform ....................................................................................................... 2 2.2 AstroConda .................................................................... Error! Bookmark not defined. 2.3 IRAF and Gemini IRAF .................................................................................................. 3 2.3.1 IRAF ..........................................................................................................................
    [Show full text]
  • The Significant Properties of Software: a Study
    The Significant Properties of Software: A Study Brian Matthews, Brian McIlwrath, David Giaretta, Esther Conway STFC Rutherford Appleton Laboratory Chilton OX11 0QX UK December 2008 Significant Properties of Software Revision History: Version Date Authors Sections Affected / Comments 0.1 18/02/2008 BMM Outline 0.5 05/03/2008 BMM First Draft 0.6 09/03/2008 DG DG added section on OAIS/CASPAR 0.7 11/03/2008 BMM Added section on StarLink + revisions. 0.8 23/03/2008 BMcI, EC, BMM Expanded use cases 1.0 28/03/2008 BMM, BMcI First Complete release version 1.1 23/12/2008 BMM Final Revision 2 Significant Properties of Software Executive Summary ...................................................................................................... 5 Recommendations ..................................................................................................................... 6 1 Background to the Study ....................................................................................... 9 1.1 Introduction ................................................................................................................... 9 1.2 Significant Properties .................................................................................................. 10 2 Scope of Study .................................................................................................... 12 2.1 Definition of Software ................................................................................................ 12 2.2 Diversity of Software .................................................................................................
    [Show full text]
  • Pyraf FAQ Pyraf Pyraf FAQ
    1/12/2018 PyRAF FAQ PyRAF PyRAF FAQ Last edited: 6 Jan 2017. 0. Support Status Due to reduced budgets for HST, we can only provide minimal pyraf support. If you have a problem that cannot be solved quickly by our first tier support, we may be unable to help. This is unfortunate, but it is the best we can do with the resources available. 1. Installation 1.1. How do I download and install PyRAF? 1.2. I am on a Mac. Can I use PyRAF with/without running X11? 1.3. Can I run PyRAF without IRAF? 1.4. What are the errors about Python.h / numpy.h ? 1.5. Can I run PyRAF with the 64-bit version of IRAF (v2.15.*)? 1.6. Does PyRAF run on OSX Mountain Lion (10.8)? 1.7. How do I run PyRAF on Windows? 1.8. Does PyRAF work under Python 3? 1.9. What is "X11/X.h: No such file or directory"? 1.10. Does PyRAF work within IPython Notebook? 1.11. Do you support other downloads of PyRAF? 2. Startup 2.1. How do I execute a Python script during startup? 2.2. How can I make my PyRAF session start up faster? 2.3. Why do I get messages about the "CL script cache" when I start up? 2.4. Why does PyRAF fail on startup with a message about togl.so? 2.5. How can I tell PyRAF that I want to run without graphics? 2.6. Why do I see "Could not import aqutil"? What's that? 2.7.
    [Show full text]
  • Advanced Bash-Scripting Guide
    Advanced Bash−Scripting Guide An in−depth exploration of the art of shell scripting Mendel Cooper <[email protected]> 4.0 18 June 2006 Revision History Revision 3.8 26 Feb 2006 Revised by: mc 'BLAEBERRY' release: Minor Update. Revision 3.9 15 May 2006 Revised by: mc 'SPICEBERRY' release: Minor Update. Revision 4.0 18 May 2006 Revised by: mc 'WINTERBERRY' release: Major Update. This tutorial assumes no previous knowledge of scripting or programming, but progresses rapidly toward an intermediate/advanced level of instruction . all the while sneaking in little snippets of UNIX® wisdom and lore. It serves as a textbook, a manual for self−study, and a reference and source of knowledge on shell scripting techniques. The exercises and heavily−commented examples invite active reader participation, under the premise that the only way to really learn scripting is to write scripts. This book is suitable for classroom use as a general introduction to programming concepts. The latest update of this document, as an archived, bzip2−ed "tarball" including both the SGML source and rendered HTML, may be downloaded from the author's home site. A pdf version is also available. See the change log for a revision history. Dedication For Anita, the source of all the magic Advanced Bash−Scripting Guide Table of Contents Chapter 1. Why Shell Programming?...............................................................................................................1 Chapter 2. Starting Off With a Sha−Bang.......................................................................................................3
    [Show full text]
  • PAPI Documentation Release 2.0.20200122115013
    PAPI Documentation Release 2.0.20200122115013 J.M.Ibáñez-Mengual (IAA-CSIC) Feb 04, 2020 CONTENTS 1 Caveat 3 2 Contents 5 2.1 Installation & Configuration.....................................5 2.1.1 Requirements and Supported Platforms..........................5 2.1.1.1 System Requirements...............................5 2.1.1.2 Software Requirements..............................5 2.1.2 Download..........................................6 2.1.3 Environment Installation..................................6 2.1.4 PAPI Installation......................................8 2.1.5 Installing for developers..................................8 2.1.6 Building the documentation................................9 2.1.7 Bug reports.........................................9 2.1.8 Release Notes........................................9 2.2 PANIC Quick-Look Tool (PQL)...................................9 2.2.1 Purpose...........................................9 2.2.2 FITS files and headers................................... 10 2.2.3 Starting PQL........................................ 10 2.2.4 Configuration files..................................... 11 2.2.5 PQL’s main window.................................... 12 2.2.5.1 Menu bar...................................... 12 2.2.5.2 Tool bar...................................... 12 2.2.5.3 Main panel..................................... 12 2.2.5.4 Current night checkbox.............................. 14 2.2.5.5 Use GEIRS file.................................. 14 2.2.5.6 Filename filter..................................
    [Show full text]
  • IRAF Paso a Paso
    IRAF Paso a Paso Forewords This is a brief, introductory course on IRAF, written by a IRAF user, rather than by an IRAF programmer. I have tried to clarify those points which may present problems to first-time users. The course is focused on the IRAF structure and language, and won't provide any info on how to process and analyze astronomical images and data. I suggest that you try the various examples presented here, experiment freely with similar IRAF tasks, different combinations of parameters, on a variety of image formats and types, etc. These pages might also be used as a quick reference, even if they are not exhaustive or complete at all. This manual is in constant evolution, as existing topics may be revised or new contents added. I will be happy to receive comments, critics and suggestions on how to improve this presentation. Also, if you would like me to add (or expand on) a specific subject, just send me an email: [email protected] This course is found in: http://www.iac.es/sieinvens/SINFIN/CursoIraf/Intro.php Note : This presentation has been formatted using Cascading Style Sheets (CSS). If you are using a non standard-compliant browser, you may notice inconsistencies or errors in the rendering of these pages. Table of Contents 1. Basic Notions 1. A quick ID of IRAF 2. Getting started happily 3. Do I need anything else? 4. Know and customize your IRAF environment 5. Quick look at the IRAF structure 2. Packages and tasks 1. Start: load and use packages 2.
    [Show full text]
  • Astroconda Documentation Release 0.0.1
    AstroConda Documentation Release 0.0.1 Space Telescope Science Institute Apr 23, 2021 Contents 1 System Requirements 3 2 Powered by Conda 5 2.1 Getting Started..............................................6 2.2 Selecting a Software Stack........................................7 2.3 Updating a Software Stack........................................8 2.4 Further Reading............................................. 10 2.5 Pipeline Releases............................................. 12 2.6 Compatibility Notices.......................................... 14 2.7 F.A.Q................................................... 18 2.8 Contributing Guide............................................ 23 2.9 Packages................................................. 30 2.10 Resources................................................. 73 2.11 General Disclaimer............................................ 74 i ii AstroConda Documentation, Release 0.0.1 AstroConda is a free Conda channel maintained by the Space Telescope Science Institute (STScI) in Baltimore, Mary- land. This channel provides tools and utilities required to process and analyze data from the Hubble Space Telescope (HST), James Webb Space Telescope (JWST), and others. Contents 1 AstroConda Documentation, Release 0.0.1 2 Contents CHAPTER 1 System Requirements • 64-bit Intel/AMD processor (x86_64) • 64-bit Linux (glibc 2.12) or Mac OS X ( 10.7) • BASH or ZSH as your default shell environment (T/CSH is NOT supported) 3 AstroConda Documentation, Release 0.0.1 4 Chapter 1. System Requirements CHAPTER
    [Show full text]
  • ASTRONOMICAL DATA PROCESSING Using DS9, Python, and IRAF ASTR 230 - 2021 Spring Semester DUE DATE: TUESDAY, April 13, 7PM
    ASTRONOMICAL DATA PROCESSING using DS9, python, and IRAF ASTR 230 - 2021 Spring Semester DUE DATE: TUESDAY, April 13, 7PM 1 Overview and Purpose. This laboratory is intended to give you a working knowledge of astronomical image processing. Astronomy is at a crossroads, and there are several ways to reduce images. One of the primary packages developed for decades by the National Observatories for imaging and spectral reduction is known as IRAF (Image Reduction and Analysis Facility). IRAF is powerful and there is a package to do just about anything you want. However, its internal programming language has never caught on, its ways of plotting data are rather arcane, and its system administration is not necessarily straightforward. Most importantly, funding to support it has dried up, program developers see it as based on an old framework, and its future is unclear. Nonetheless, it is the language that remains prevalent at many observatories around the world. If you are using a professional telescope, there is a good chance that IRAF is there, and if it is an NOAO facility, it probably is how you assess whether or not your data are any good. You are at a significant disadvantage if you have no facility with its workings. IDL is a powerful analysis package that has enjoyed widespread usage in many areas of astronomy. However, it is not free, not owned by astronomical interests, and its use seems to be slowly waning. The statistics package R is free and is as powerful as IDL, but astronomers are generally unfamiliar with it. MATLAB is similar to R and to IDL, with a more mathematical flavor, and Mathematica is another option along those lines.
    [Show full text]