question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Comparing a FITS file with one in a subdirectory

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
drdavellacommented, Oct 17, 2017

It sounds like fitsdiff should make sure that all of the file arguments are real files (i.e. not directories).

0reactions
saimncommented, Jan 15, 2018

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found