Welcome to iraf.net Thursday, May 09 2024 @ 10:14 PM GMT
pskoda |
04/06/2007 02:09PM (Read 3978 times)
|
|
|
Status: offline
Registered: 12/20/2005
Posts: 23
|
I want to use image sections with listfile and it does not work
Is it possible to do this or have I to go to cycle file by file ?[code:1:f7e0efeeb9]
imcopy @tlist[-*,*], t//@tlist
[/code:1:f7e0efeeb9]complains : ERROR: Cannot open file tlist%%when using [code:1:f7e0efeeb9]
imcopy @tlist//[-*,*], t//@tlist
[/code:1:f7e0efeeb9]
works but the section is ignored The same with command sections[code:1:f7e0efeeb9]
sections "@tlist//[-*,*]" apl07008.fit
apl07013.fit
[/code:1:f7e0efeeb9] But if not using the section in appends, it works:[code:1:f7e0efeeb9]
sections "@tlist//ppp"apl07008ppp.fit
apl07013ppp.fit
[/code:1:f7e0efeeb9]The version with section works without concatenation mark, but only for templates without listfile:[code:1:f7e0efeeb9]
sections apl*.fit[-*,*]apl07008.fit[-*,*]
apl07013.fit[-*,*]
[/code:1:f7e0efeeb9]Is it a bug or feature ;-) ?Petr Skoda
|
|
|
|
fitz |
04/06/2007 02:09PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
Hi Petr,Not quite a bug or a feature, more like a strange interaction between two interfaces. The image template code is based on the more general file template code, except that the stuff in the braces is stripped/saved and the rest is passed to the file template for expansion. The @file syntax is a special case in the file template and doesn't interact well in some expressions.In any case, to get the behavior you want you need to do the escape in a completely non-intuitive manner, e.g.[code:1:50ca3c57e1]cl> sections @tlist//\[\-\*\,\*][/code:1:50ca3c57e1]Note that it's only the closing ']' that isn't escaped.Cheers,
-Mike
|
|
|
|
| |
|
Content generated in: 0.07 seconds |
|