ALMA FITS Keywords: Difference between revisions

From Italian ARC
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
 
The ALMA Keywords Filler   (AKF) CASA task is build to generate and eventually ingest in the headers the new FITS keywords that we suggest could be useful for a generic ALMA archive miner.  The AKF is a Python-based script that exploits existing CASA tasks and  toolkit (https://casa.nrao.edu/docs/CasaRef/CasaRef.html) .
The ALMA Keywords Filler (AKF) is a Python-based script that exploits existing CASA tasks and  toolkit (https://casa.nrao.edu/docs/CasaRef/CasaRef.html) <br>
Detailed information on the definition of the keywords provided by the AKF is presented in the  [[Media:AKF_v2.0.pdf|AKF_v2.0_manual ]]. <br>  
Detailed information on the definition of the keywords provided by the AKF is presented in the  [[Media:AKF_v1.0.pdf|AKF_v1.0_manual ]]. <br>  
 
 
A CASA task, the AKF, is build to generate and eventually ingest in the headers the FITS keywords discussed in the previous Sect. 3.  The AKF is a Python-based script that exploits existing CASA tasks and  toolkit1. It is downloadable (AKF.tar) from the Italian ALMA Regional Center web page  http://www.alma.inaf.it/index.php/ALMA_FITS_Keywords


In the following,  the instructions to install the task are described:
In the following,  the instructions to install the task are described:
* be sure that astropy, numpy and pyfits are installed  
* be sure that astropy, numpy and pyfits are installed  
 
* untar the AKF.tar file into a directory of your choice (e.g., YourHomeDir/ITALIAN_TOOLS)
* untar the AKF.tar file into a directory of your choice  
(e.g., YourHomeDir/ITALIAN_TOOLS)
 
* cd YourHomeDir/ITALIAN_TOOLS
* cd YourHomeDir/ITALIAN_TOOLS
 
* launch CASA and run "buildmytasks" in that directory (i.e. os.system(‘buildmytasks’))
* launch CASA and run "buildmytasks" in that directory
* rename mytasks.py in ITtask_AKF.py (i.e. mv mytasks.py ITtask_AKF.py)
(i.e. os.system(‘buildmytasks’))
 
* rename mytasks.py in ITtask_AKF.py  
(i.e. mv mytasks.py ITtask_AKF.py)
 
* execfile(‘YourHomeDir/ITALIAN_TOOLS/ITtask_AKF.py')
* execfile(‘YourHomeDir/ITALIAN_TOOLS/ITtask_AKF.py')
* you should be able to run the new task in CASA just doing:
* you should be able to run the new task in CASA just doing:
inp AKF  or  tget AKF
inp AKF  or  tget AKF

Revision as of 15:47, 17 July 2018

The ALMA Keywords Filler (AKF) CASA task is build to generate and eventually ingest in the headers the new FITS keywords that we suggest could be useful for a generic ALMA archive miner. The AKF is a Python-based script that exploits existing CASA tasks and toolkit (https://casa.nrao.edu/docs/CasaRef/CasaRef.html) . Detailed information on the definition of the keywords provided by the AKF is presented in the AKF_v2.0_manual .

In the following, the instructions to install the task are described:

  • be sure that astropy, numpy and pyfits are installed
  • untar the AKF.tar file into a directory of your choice (e.g., YourHomeDir/ITALIAN_TOOLS)
  • cd YourHomeDir/ITALIAN_TOOLS
  • launch CASA and run "buildmytasks" in that directory (i.e. os.system(‘buildmytasks’))
  • rename mytasks.py in ITtask_AKF.py (i.e. mv mytasks.py ITtask_AKF.py)
  • execfile(‘YourHomeDir/ITALIAN_TOOLS/ITtask_AKF.py')
  • you should be able to run the new task in CASA just doing:

inp AKF or tget AKF

The inputs of the task are:

  • imName: it is the input image to process and it is a mandatory parameter to provide;
  • kwdlist: it consists in the list of keywords to be calculated. The allowed keywords are those of Sect. 3. If the list is not given (kwdlist=[]), all the implemented keywords will be calculated.
  • outfile: the name of disk file to write the output could be given. If no outfile name is given, the results will be written only to the terminal;
  • include: it allows to ingest the calculated keywords in the FITS headers. The default is false which means that no keywords will be added to the headers.

Below the AKF CASA task
AKF.tar