Welcome to iraf.net Wednesday, April 24 2024 @ 02:58 AM GMT


 Forum Index > Help Desk > Applications New Topic Post Reply
 imexpr file name parsing problems
   
dougmink
 02/06/2007 09:16PM (Read 3344 times)  
++---
Junior

Status: offline


Registered: 12/09/2005
Posts: 17
This is either a shell bug or an imexpr bug. When you give imexpr a command
such as the following:im > imexpr "a-b" out.fits a.fits b.fitsit fails with the messageError: bad image parameter reference b.fitsbutim > imexpr "a-b" out.fits ./a.fits ./b.fitsworks just fine. From further testing, it looks like a.fits and b.fits are taken to be
references to files assigned to imexpr.a and imexpr.b if not preceded by "/" and
the self-reference crashes the program. Can this be fixed?-Doug

 
Profile Email Website
 Quote
fitz
 02/06/2007 09:16PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Hi Doug,The confusion is because the task allows an expression parameter to be referenced as a keyword in an image, e.g. "a.itime" means the ITIME keyword from the image 'a'. The task is seeing your "a.fits" an looking for a FITS keyword of the image 'a'. In general, avoid simple single-char image names like this, but specifying the image without the extension will also work.[quote:31f6d198fa]Can this be fixed? [/quote:31f6d198fa]Yes, rename your images 8-) Modifying the task to allow the keyword syntax and a special case of 26 filenames is a little more difficult.
Cheers,
-Mike

 
Profile Email
 Quote
dougmink
 02/06/2007 09:16PM  
++---
Junior

Status: offline


Registered: 12/09/2005
Posts: 17
It's actually a bit more complicated than single character file names. Any file
with the format [a-z].nnnn.fits fails in the same way. We realize that this would
not be an easy problem to fix, so we're working around it, but it's not just single
character file names.-Doug

 
Profile Email Website
 Quote
   
Content generated in: 0.10 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login