Welcome to iraf.net Friday, May 17 2024 @ 04:42 AM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 openning a fits file.
   
dbrenner
 02/08/2010 06:39PM (Read 1466 times)  
++++-
Regular Member

Status: offline


Registered: 05/05/2006
Posts: 115
I created a fits file in c using the latest cfitsio library. I can open the file from the command line
rotate result01 tmp.fits rotation = 18.3but not from a script
ERROR: Cannot open image (result01.fits)
"nyblock=nyblock, verbose=verbose)"
line 48: imgeom$imlintran.cl
called as: `rotate (input=result01.fits, output=result01.fits[0,overwrite], rotation=-18.3, verbose=no)'
"rotate (input = image, output = image//"[0,overwrite]", rotation = - ..."Ideas?

 
Profile Email
 Quote
fitz
 02/08/2010 06:39PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Without seeing the image, all I can say is that it works for me either from the commandline or in script mode.The difference in your posting is that the cmdline version used 'tmp.fits' as output, but in the script your overwrite the input image. Is the FITS file and MEF? If so, does the primary extension already have an image or is it just a PHU with image extensions? If you IMCOPY the file to a new name and allow the IRAF FITS kernel to write it out does it make a difference (i.e. maybe a missing EXTEND keyword in your CFITSIO-generated file is the issue?) ?-Mike

 
Profile Email
 Quote
dbrenner
 02/08/2010 06:39PM  
++++-
Regular Member

Status: offline


Registered: 05/05/2006
Posts: 115
Thanks.
It was a "cockpit error"

 
Profile Email
 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