Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (8 sloc) 267 Bytes
import os
def main():
flist = open('files','r') #read file list
#batch processing
for FileName in flist.readlines():
FileName=FileName.rstrip()
os.system('sextractor '+FileName+'.g.fits'+' -c extract_main.sex -CATALOG_NAME '+'b'+FileName+'.fits')
main()