

Then we do likewise with the other two match tables.Įach crossmatch table contains a lot of columns (all the columns in both catalogues). We change "match(7,6)" (meaning "match of tables 7 and 6") to "MILES vs GBS" and click enter. In order to do that we just select one of them and change the "Label" on the right. The problem with this is that it simply opens the program, and doesn't allow for me to tell it which file to take in and what type it happens to be.Ĭould somebody tell me what I'm doing incorrectly here? I've also looked into the shell=True option and it doesn't seem to be doing any better.We could prefer to rename the crossmatch tables so that we remember better what they contain.

However, I can get topcat to open if I run this: import subprocess

Even doing a simple call like: import subprocessĭoesn't work. I've tried both subprocess.call and os.system, and they don't seem to know of the existence of the topcat alias for some reason.

The problem comes about when I try to call these commands while in my python script. The problem is that when I make a call to the program it tells me: OSError: No such file or directoryġ) The way I usually open up topcat through the command line is through the alias I have created: alias topcat='java -jar /home/username/topcat/topcat-full.jar'Ģ) If I'd like to open TOPCAT with a file in mind (let's use a csv file since that's what I'd like it to work with), I would type this into the command line: topcat -f csv /home/username/path_to_csv_file/file.csvĪnd that also works just fine. I'm trying to incorporate the program TOPCAT (which has really amazing plotting capabilities) into a python script I have written.
