Comparing a FITS file with one in a subdirectory
See original GitHub issueI knew that when running fitsdiff to compare a file in the default directory with one of the same name in a subdirectory that it was necessary to explicitly give the name of the file in the subdirectory, but today I typed the following by mistake:
fitsdiff dms_230_491_refpix.fits today_prev/
and fitsdiff reported “No differences found.” However, I knew that the files did differ, so I ran fitsdiff again:
fitsdiff dms_230_491_refpix.fits today_prev/dms_230_491_refpix.fits
and fitsdiff showed several differences.
It’s probably relevant that there was only one file in today_prev/
.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Ubuntu Manpage: fitsdiff - compare two FITS image files and ...
fitsdiff is a command line script based on pyfits to compare two FITS image files and report the differences in header keywords and...
Read more >Reading FITS files from subdirectories : r/rust - Reddit
I am trying to implement the following python code in rust. It involves creating a list of files ending with S1D.fits, and extracting ......
Read more >Differs — Astropy v5.2
FITSDiff ¶ · The filename of a FITS file on disk, or an HDUList object to compare to the first file. · HDU...
Read more >In bash, how do I compare two folders to ensure they contain ...
I'm using find to generate lists of objects (files, directories); it fits here better than ls because its output contains only paths.
Read more >Using python script to search in multiple files and outputting ...
I am trying to get a program up and running that takes astronomical data files with the extension .fits and takes all of...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It sounds like
fitsdiff
should make sure that all of the file arguments are real files (i.e. not directories).@sushobhana - Yes, the fix should be simple enough (and the issue is quite well described above, ask if you need more specific precision). It will also need unit tests, you may want to read the developer documentation to get a better understanding of the process. The is also an attempt in #6993 but it seems to be stalled.