-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
String concatenation with //
doesn't work with .fits
files and with @
list processing
#409
Comments
I sit corrected. This did not fix the problem. |
Did you try this with using IRAFs ecl? Did it work correctly there? Which IRAF version do you use? What do you mean with
Can you write the sequence you got? |
Good suggestion, both cl and ecl do work inside an xterm.
Thanks for looking into this.
This trick makes reducing things easy, been using it for years.
At the end of the preliminary reductions it is not uncommon for
f_d_z_c_t_ to get prepended for processes of
trim, cr correction, zero and dark subtraction, and flat correction,
all for the same l.l list of files without trips to vi or several lines of
sed.
I just tested the concat operator // alone
imstat a11030_FlatLU_0s_011206m2.fits works
But! Ah Ha!
imstat t_//a11030_FlatLU_0s_011206m2.fits
stsci.tools.irafglobals.IrafError: Error running IRAF task imstatistics
IRAF task terminated abnormally
ERROR (1, "Image expansion/concatenation not yet supported.")
imstat t_//a11030_FlatLU_0s_011206m2.fits
Killing IRAF task `imstatistics'
Traceback (innermost last):
File "<CL script CL1>", line 1, in <module>
stsci.tools.irafglobals.IrafError: Error running IRAF task imstatistics
IRAF task terminated abnormally
ERROR (501, "segmentation violation")
Errors out before the "Image expansion/concatenation not yet supported."
message can appear.
So, on another note: within pyraf, in splot, snap does not work but
does from with cl and ecl. The snap thing seems to be related to
tkinter. I did not try pyraf splot and snap with the PYTHONGRAPHICS
set. I'm still working with that.
To be clear about pyraf, @l.l works where the concat and @ fail,
the @ gets recognized as an illegal character.
Last night I pounded on this by hacking the .py files on my distro
and changing the 'ascii' strings in relation to encoding. The programs
still worked, but the problem persisted. I put everything back.
It dawns on me, since I just got up, that there was a switch in the
parsing by pyraf to something Guido Rasmussen calls a PEG parser
a few gens of pyraf ago -- this does a look ahead until failure.
x//@ may have too far of a look-ahead.
…On Sat, Sep 14, 2024 at 3:28 AM Ole Streicher ***@***.***> wrote:
Did you try this with using IRAFs *ecl*? Did it work correctly there?
—
Reply to this email directly, view it on GitHub
<#409>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACXLYL3WO4WCNUN7H7RTAPLZWP6UZAVCNFSM6AAAAABOGFNCR2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJQHEZDSMBUGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
-- W
|
To have a minimal example using the file that comes with IRAF:
However:
works (implicitly adding But this all is part of imstatistics, not of pyraf. The same behaviour is in ecl:
|
Similar minimal example for
and the same for ecl:
So it seems to me that this is a problem (or limitation) in the concatenation in IRAF itself, not in PyRAF. |
Could you specify which IRAF version you used? |
Hi,
I am now sure that I am running NOIRLabs version, as the MOTD
is different from the latest stable Community edition I cloned yesterday.
More to follow, I have commitments later today.
--W
…On Sun, Sep 15, 2024 at 4:22 AM Ole Streicher ***@***.***> wrote:
Could you specify which IRAF version you used?
—
Reply to this email directly, view it on GitHub
<#409>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACXLYL2ST2UES6OK66VSAFDZWVNUTAVCNFSM6AAAAABOGFNCR2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJRGUYTQMRQGA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
-- W
|
I just updated to the new IRAF via building and installing the current clone image. All reported issues above have persisted through to here. I tried a simple concatenation at the command line with no use of a
This error is at:
Now to see what that means. Thanks for patience. I am working on coming up to speed with the build from source. |
Did you know that IRAF and PyRAF are part of Ubuntu 22.04 and you can install them with As I already wrote: the problem is not PyRAF, it is a problem with IRAF, and I am going to transfer the issue there. the direct
But the Because the issue appears in both the NOIRLab and the community IRAF forks, it is most probably already present in 2.16.1 and therefore not a regression. |
//
doesn't work with .fits
files and with @
list processing
What pragmatically helps is to set |
Also reported in #237 |
The error was first encountered with:
The
l.l
file could be calledl.txt
-- but Unix doesn't care about extensions andl.l
is easy to type on an American keyboard.So now I want to zero subtract a
zeromaster.fits
file from each original... and make a new filez_<basefilename>
using the concatenation sequence of//
for files in the list-file (@l.l
):but the at-cost (
@
) breaks this very old common usage pattern. The filename turns up with a Unicode sequence.I tried with cl and it was broken there too, under pyraf like
then
cl < foo.cl
the same error occurs.Fix:
adding
set LC_ALL=en_US.UTF-8
inloginuser.cl
, to fix the problem at the user level.Real question, given the legacy of cl and pyraf being strictly ASCII, should this be added to
login.cl
so the user does not have to figure out to make a~/.iraf
and come up with aloginuser.cl
file?The text was updated successfully, but these errors were encountered: