iraf icon indicating copy to clipboard operation
iraf copied to clipboard

"Sections" sometimes does not work

Open olebole opened this issue 1 year ago • 1 comments

Taken from https://github.com/iraf-community/iraf/pull/276#issuecomment-1500970377 (@fakahle):

Building a file list from sections is sometimes buggy:

if ( images != "" ) {
                sections (images, option="fullname", > tmpin)
        } else {

Verifiying tmpin (below you'll find partial output from tmpin:

60EDf5.5_G2-1600_GCVS5_GM____Com_00013508_V_1x1.fit
60EDf5.5_G2-1600_GCVS5_GM____Com_00013509_R_1x1.fit
60EDf5.5_G2-1600_GCVS5_GM____Com_00013510_R_1x1.fit
**60EDf5.5_G2-1600_GCVS5_GM____Com_0001351**
Warning: Cannot open image (60EDf5.5_G2-1600_GCVS5_GM____Com_00013423_R_1x1.fi)
Warning: Cannot open image (60EDf5.5_G2-1600_GCVS5_GM____Com_0001351)
60EDf5.5_G2-1600_GCVS5_AR____Ari_00011679_V_1x1.fit
60EDf5.5_G2-1600_GCVS5_AR____Ari_00011680_V_1x1.fit

against ls -al *.fit in the source-directory shows, that individual lines sometimes get truncated:

-rw-r--r--     1 frank  staff  3153600 28 Feb  2022 60EDf5.5_G2-1600_GCVS5_GM____Com_00013508_V_1x1.fit
-rw-r--r--     1 frank  staff  3153600 28 Feb  2022 60EDf5.5_G2-1600_GCVS5_GM____Com_00013509_R_1x1.fit
-rw-r--r--     1 frank  staff  3153600 28 Feb  2022 60EDf5.5_G2-1600_GCVS5_GM____Com_00013510_R_1x1.fit
**-rw-r--r--     1 frank  staff  3153600 28 Feb  2022 60EDf5.5_G2-1600_GCVS5_GM____Com_00013511_R_1x1.fit**

Don't know, if the sections-cmd has been touched by the latest changes?

olebole avatar Apr 12 '23 12:04 olebole