Difference between revisions of "PythonsOnSHIPs"

From CoolWiki
Jump to navigationJump to search
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
  
 
===Using Python===
 
===Using Python===
Some, but not all, operations for which we will use Python for:
+
Some examples for which we can use Python for NITARP:
* Read an APT output table file.
+
* Convert an APT photometry table file into a ds9 region file.
* Write a DS9 region file.
+
* Merge photometry tables.  
* Read SHIPs ASCII format data table.
+
* Analyze photometry tables.
* Write SHIPs ASCII format data table.
 
* Merge photometry tables.  This may be complicated for simple.  We will need to decide.
 
 
* Create 2-dimensional plots of various types: scatter plots, line plots, histograms.  These plots may have multiple data sets on them.
 
* Create 2-dimensional plots of various types: scatter plots, line plots, histograms.  These plots may have multiple data sets on them.
 
* Save plots to a JPG, PNG or similar graphic format file.
 
* Save plots to a JPG, PNG or similar graphic format file.
 +
* Work directly with FITS images (advanced).

Latest revision as of 20:49, 26 April 2014

The Python programming environment is a relatively easy to use tool that has gained considerable acceptance and use in astronomical data processing. We will use Python on an experimental basis to cover some basic work for SHIPs work.

Python distribution to use

Based on our requirements of Windows+MacOS+Linux, the choice is Anaconda python.


Using Python

Some examples for which we can use Python for NITARP:

  • Convert an APT photometry table file into a ds9 region file.
  • Merge photometry tables.
  • Analyze photometry tables.
  • Create 2-dimensional plots of various types: scatter plots, line plots, histograms. These plots may have multiple data sets on them.
  • Save plots to a JPG, PNG or similar graphic format file.
  • Work directly with FITS images (advanced).