EOVSA Data Analysis Tutorial: Difference between revisions

From EOVSA Wiki
Jump to navigation Jump to search
Line 5: Line 5:
* [https://casa.nrao.edu/casa_obtaining.shtml Obtaining CASA]; [https://casaguides.nrao.edu CASA Guides]
* [https://casa.nrao.edu/casa_obtaining.shtml Obtaining CASA]; [https://casaguides.nrao.edu CASA Guides]


==SunCASA==
==SunCASA (for Spectral Imaging)==
===Connecting to our AWS server===
===Connecting to our AWS server===
This is an Amazon AWS Lightsail server for testing purposes. The server has 2 CPUs, 8 GB RAM, and 160 GB SSD storage. It runs CentOS 7 (1901-01) Linux. Please limit your usage to '''LIGHTWEIGHT DATA PROCESSING ONLY'''.
This is an Amazon AWS Lightsail server for testing purposes. The server has 2 CPUs, 8 GB RAM, and 160 GB SSD storage. It runs CentOS 7 (1901-01) Linux. Please limit your usage to '''LIGHTWEIGHT DATA PROCESSING ONLY'''.

Revision as of 11:15, 5 May 2019

Software

Here are some basic information on CASA and the software we are developing:

  • SunCASA A wrapper around CASA for imaging and visualizing spectral imaging data of the Sun. ONLY AVAILABLE on UNIX-BASED PLATFORMS (MacOS High-Sierra and later, REDHAT 6 & 7 and equivalents)
  • GSFIT
  • Obtaining CASA; CASA Guides

SunCASA (for Spectral Imaging)

Connecting to our AWS server

This is an Amazon AWS Lightsail server for testing purposes. The server has 2 CPUs, 8 GB RAM, and 160 GB SSD storage. It runs CentOS 7 (1901-01) Linux. Please limit your usage to LIGHTWEIGHT DATA PROCESSING ONLY.

NOTE: THE ACCOUNT IS ONLY INTENDED FOR THE EOVSA TUTORIAL, BUT *NOT* FOR CARRYING OUT ACTUAL DATA REDUCTION

  • Obtain SSH Key from Bin Chen
  • Put it under a secure location on your own machine.
  • Follow remaining directions depending on your client machine.

Linux / Mac

Recommend to use "~/.ssh" (create if it does not exist by "mkdir ~/.ssh").

  • Edit the permission of ~/.ssh and the key (here I use ~/.ssh as the directory to place your key)
chmod 700 ~/.ssh
chmod 400 ~/.ssh/guest-virgo.pem
  • Log on to test AWS server (password-less)
ssh -X -i ~/.ssh/guest-virgo.pem guest@virgo.arcs.az.njit.edu

Enter SunCASA

[guest@ip-172-26-5-203 ~]$ suncasa

Windows (MobaXterm)

Recommend to use "Documents\MobaXterm\home\.ssh", which should exist if you have already installed the free MobaXterm[1].

  • Create new session, click SSH, enter virgo.arcs.az.njit.edu for Remote host, guest for username.
  • On advanced SSH settings tab, click Use private key, navigate to and select file guest_key.pem
  • Close setup window and click the new sessions icon, which will log you in.

Enter SunCASA

[guest@ip-172-26-5-203 ~]$ suncasa

Setup SunCASA on your own machine

MacOS

  • Download SunCASA disk image (SunCASA-0.7.4_Pre-release.OSX.dmg).
  • The disk image has been tested to work under Mojave (macOS v10.14). YMMV for earlier versions of macOS.
  • If you do not have Java SE Development Kit (JDK) installed on your Mac, please download from the official site and install it before SunCASA installation. The latest version (JDK 12) was tested to work properly. Earlier versions may also work but YMMV.
  • Open the disk image file (if your browser does not do so automatically).
  • Drag the SunCASA application to the Applications folder of your hard disk.
  • Eject the SunCASA disk image.
  • Double-click the SunCASA application to run it for the first time. If the OS does not allow you to install apps from non-Apple sources, please Change the settings in "System Preferences-> Security & Privacy -> General" and "Allow applications downloaded from: Mac App store and identified developers". If the OS still reports that the app is damaged, please turn off the OS Gatekeeper for now by running command sudo spctl --master-disable in Terminal. Then double-click the SunCASA application again.
  • Initialize SunCASA. To do so, run !install_suncasa from a SunCASA prompt. This step also allow you to create symbolic links to the SunCASA version and its executables (Administrator privileges are required), which will allow you to run suncasa, casaviewer, casaplotms, etc. from any terminal command line.
  • Important: Make sure to turn the OS Gatekeeper back on after the installation by running sudo spctl --master-enable in Terminal.
  • Optional: To update the data repository, run !update-data from the SunCASA prompt.
  • Restart SunCASA by exiting the current SunCASA prompt, and run suncasa in Terminal or double-click the SunCASA application icon.
  • Now SunCASA has been up and running on your Mac.

Unix (REL 6 or 7)

  • To install SunCASA for Linux, we have packaged up a binary distribution of SunCASA which is available as a downloadable tar file. We have tested the package under Scientific Linux 6 (derived from RHEL 6) and CentOS 7 (equivalent to RHEL 7). They may work under some other Linux distributions (e.g. Ubuntu), but YMMV.
  • Download the packages
  • Untar the package
tar -xzvf SunCASA-release-##version##.tar.gz

You do not have to have root or sudo permission to install or run SunCASA. The package is self-contained in the (untarred) directory "SunCASA-release-##version##". You can move/delete the SunCASA directory as you wish. But to use the executables, do the following:

  • All executables, including suncasa are in the SunCASA-release-##version##/bin directory. Include these executables to your path (examples below are in bash)
cd SunCASA-release-##version##/bin
PATH=`pwd`:$PATH 
  • Then you can initialize SunCASA with the command in bash
install_suncasa
  • Optional: To update the data repository, run !update-data from the SunCASA prompt.
  • Now SunCASA has been successfully installed on your machine. Open a new Terminal and run suncasa.

Microwave Spectral Fitting with gsfit

We have developed a IDL-widget(GUI)-based spectral fitting package called gsfit, which provides a user-friendly display of EOVSA image cubes and an interface to fast fitting codes (via platform-dependent shared-object libraries). Fits to individual spectra can be done quickly for manual investigation, while parallel/multi-core batch processing of selected blocks of data can also be performed. A helper routine called gsfitview allows further display and investigation of the fitting results.

Run gsfit

To start the GUI on the

Imaging