Little bug found

35 views
Skip to first unread message

Nathaniel Paust

unread,
May 1, 2014, 12:55:19 PM5/1/14
to astro...@googlegroups.com

I'm using astrometry.net-0.46 on my various computers and I was bitten by a little (probably easy to fix) bug yesterday.  I'm currently generating WCSs for ~10,000 images that I've taken for a variability project.  I have to say that the code works really amazingly well.  The problem is that it's leaving behind tmp.fits.?????? files in /tmp.  This would be no big deal in a normal situation, but for me it ends up choking my disk after a couple of days running.

I assume the problem is that there's just a simple "rm /tmp/tmp.fits.*" missing at the end of the code.

If it makes any difference, I'm feeding the code with ~1000x1500 pixel jpeg images.

Dustin Lang

unread,
May 1, 2014, 5:26:26 PM5/1/14
to astro...@googlegroups.com
Hmm, I thought it cleaned up all the temp files.  Could you please run with "-v" and see if you can figure out where in the processing the temp files are coming from?  The solve-field program runs a number of other scripts, so maybe one of those (fits2fits.py, eg) is leaving behind temp files.

thanks,
--dustin


Andrew Hood

unread,
May 1, 2014, 6:22:50 PM5/1/14
to astro...@googlegroups.com
I just stuck a job in cron:

#!/bin/bash
cd /tmp
find tmp.fits.* tmp.ppm.* tmp.sanitized.* tmp.uncompressed.* \
tmp.removelines.* tmp.sorted.* tmp.uniform.* tmp.xyls.* \
-maxdepth 0 -type f -mtime +1 -exec rm {} \;

If I find any new /tmp/tmp.* I add them to the job.
Andrew
> -- There's no point in being grown up if you can't be childish
> sometimes. -- Dr. Who

Nathaniel Paust

unread,
May 2, 2014, 1:44:16 PM5/2/14
to astro...@googlegroups.com
I'm executing the code with /usr/local/astrometry/bin/solve-field --skip-solved --crpix-center --scale-low 15.0 --scale-high 30.0 --scale-units degwidth NAME.jpg

The fits files are getting created very early.  Looking at the -v output, image2pnm.py creates a handful of tmp files (tmp.uncompressed.* and tmp.ppm.*) then an-pnmtofits creates the tmp.fits.* file.

It looks like most of the tmp files get deleted after the *.axy file gets created.

Then there's a whole bunch of matching stuff.

The very last line printed is "Deleting temp file /tmp/tmp.ppm.55ABAu"

It looks to me like there just needs to be one more line at the end to delete the /tmp/tmp.fits.* file.  It looks like all the other tmp files are being cleaned up.


Dustin Lang

unread,
May 2, 2014, 3:12:47 PM5/2/14
to astro...@googlegroups.com
Ok, so it's an-pnmtofits that's creating the lingering temp files?  That's interesting and helpful information.

Thanks!,
--dustin



Reply all
Reply to author
Forward
0 new messages