def AUcat(disk=Adisk, first=1, last=1000): """ Catalog listing of AIPS UV data files on disk disk * disk = AIPS disk number to list * first = lowest slot number to list * last = highest slot number to list """ ################################################################ Adisk = disk AIPSDir.PListDir(disk, err, type=AIPSDir.UVType, first=first, last=last) OErr.printErrMsg(err, "Error with AIPS catalog")
def Acat(disk=Adisk, first=1, last=1000): """ Catalog listing of AIPS files on disk disk The class remembers the last disk accessed * disk = AIPS disk number to list * first = lowest slot number to list * last =highest slot number to list """ ################################################################ Adisk = disk AIPSDir.PListDir(disk, err, first=first, last=last) OErr.printErrMsg(err, "Error with AIPS catalog")
# Test AIPS directory listing import Obit, OSystem, OErr, AIPSDir, Image, ODisplay # Init Obit err=OErr.OErr() ObitSys=OSystem.OSystem ("Imager", 1, 100, 1, ["/DATA/LUSUS_1/"], 1, ["../PythonData/"], 1, 0, err) OErr.printErrMsg(err, "Error with Obit startup") from Obit import Bomb disk=1 # list directory AIPSDir.PListDir(disk, err) a=Image.newPACNO(1,4,True,err) d=ODisplay.ODisplay("ObitView","ObitView",err) ODisplay.PImage(d,a,err) # Shutdown Obit OErr.printErr(err) del ObitSys