Minor changes

pull/17/head^2
Cees Bassa 2019-05-12 17:11:35 +02:00
parent c8d8256d2a
commit 84140cf28c
1 changed files with 6 additions and 6 deletions

View File

@ -73,8 +73,7 @@ if __name__ == "__main__":
# Create output dirs
path = args.file_dir
results_path = os.path.join(cfg.get('Common', 'results_path'),
os.path.split(args.file_dir)[-1])
results_path = path
if not os.path.exists(os.path.join(results_path, "classfd")):
os.makedirs(os.path.join(results_path, "classfd"))
if not os.path.exists(os.path.join(results_path, "catalog")):
@ -104,16 +103,17 @@ if __name__ == "__main__":
# Detect lines with 3D Hough transform
ids = find_hough3d_lines(fname)
# Get properties
ff = fourframe(fname)
# Extract tracks
extract_tracks(fname, trkrmin, drdtmin, trksig, ntrkmin, results_path)
if is_calibrated(ff):
extract_tracks(fname, trkrmin, drdtmin, trksig, ntrkmin, results_path)
# Stars available and used
nused = np.sum(pix_catalog.flag == 1)
nstars = pix_catalog.nstars
# Get properties
ff = fourframe(fname)
# Write output
output = "%s %10.6f %10.6f %4d/%4d %5.1f %5.1f %6.2f +- %6.2f"%(ff.fname, ff.crval[0], ff.crval[1], nused, nstars, 3600.0*ff.crres[0], 3600.0*ff.crres[1], np.mean(ff.zavg), np.std(ff.zavg))
if is_calibrated(ff):