Commit Graph

9 Commits (85afd128acb4ce582d3aee5f7861679b727f66bd)

Author SHA1 Message Date
Jeff Moe 85afd128ac Add latest changes from cbassa dev branch 2022-08-22 13:35:01 -06:00
Chris Lewicki b7056d9329 Implements parallel processing of satobs, where multiple-threads are available
About 2x faster on a 2-core system, and 3-4x faster on an 8-core system
A balance between regular user feedback and maximum usage of CPUs results
in less-than-fastest possible performance.

For fastest performance, increase chunk size to a value larger than cpu_count.
(Perhaps make this a parameter?)

process.py
 - Implements a multiprocess worker pool of size os.cpu_count()
 - Batches processes in size os.cpu_count()
 - Creates pixel_catalog file using source FITS filename, instead of "test.cat"  - Forces single-threaded astropy IERS table update, if needed
 - Receives all file and screen output from children, so that it can be output
   in the order of the files processed
 - Changes display order of FITS file being processed (first) followed by
   SATIDs within
 - Adds temporary notice of empty input queue
 - Adds description of screen color codes

astrometry.py
 - Adds fall-back method of shutil.copyfile if PermissionError from copy2

extract.py
 - Removes terminal output, and instead returns results to calling processes
 - Tightens up file/io loops

satellite.py
 - Saves hough3dlines output to unique tmp file instead of /tmp/hough.dat
 - Removes temp file after processing
 - Adds FIXME note to review for unnecessary code

stars.py
 - Generates star catalog directly to destination file
 - Updates sextractor call to reference destination instead of tmp file
2019-12-12 14:54:46 -08:00
Cees Bassa 54b3baf681 Move processing parameters to config file (fixes #32) 2019-09-21 14:26:50 +02:00
Pierros Papadeas 0149ebc60d Fix in solve-field
Signed-off-by: Pierros Papadeas <pierros@papadeas.gr>
2019-07-22 13:30:53 +03:00
Pierros Papadeas 550399a360
Add calibrate.py for astrometric solving 2019-05-12 17:33:00 +03:00
Cees Bassa eaba87e686 Port to python 3 2019-04-28 11:01:31 +02:00
Cees Bassa 783558e640 Sanitized 3D Hough transform 2019-04-22 16:11:46 +02:00
Pierros Papadeas eedac86f08
Fix pycodestyle errors 2018-07-22 10:36:20 +03:00
Cees Bassa 658cc9e7c3 Rudimentary satellite predictions and line identification 2018-05-07 22:19:05 +02:00