Collection of scripts and small programs used by the EVN Support Scientists at JIVE during the regular data processing of EVN observations.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
890 B

import sys
import argparse
description = """Converts a set of FITS IDI files into a single MS file by using the 'importfitsidi()'
function from CASA, with the standard parameters expected for EVN data.
- idifiles : str
A single word referring to the FITS IDI files to be read (using wildcards). Must start/end with quotes.
- msfile : str
Name of the MS file to be created.
help_idifiles = "FITS IDI files to be read. e.g. exp_1_1.IDI* to take all files related to exp_1_1."
parser = argparse.ArgumentParser(description=description, prog='', usage=usage)
parser.add_argument('idifiles', type=str, help=help_idifiles)
parser.add_argument('msfile', type=str, help='Name of the MS file to be created.')
args = parser.parse_args()"casa --nogui -c {idifiles} {msfile}", shell=True, capture_output=True)