Welcome to iraf.net Monday, May 06 2024 @ 11:51 PM GMT


 Forum Index > Help Desk > Applications New Topic Post Reply
 displaying image of hst data
   
rocker_milan
 08/28/2009 12:28AM (Read 2792 times)  
++---
Junior

Status: offline


Registered: 08/15/2009
Posts: 15
hey, it's me again.. Smile
hope you all don't mind i asked a few question again.. LOLi have a problem in displaying image from HST data. the data is compressed in .gz format, and i already have it unzip using gunzip. when i want to displaying it under cl task, the file cannot be opened. but when i try to displaying the data straight with ds9, it can appear.
i just wanna know, why is that happening?
and for one who have taking a data from hst --> is it the extension of the data are not include in the file name when you have uncompressed it?thank you for the answer.. i really appreciate..
best regard..

 
Profile Email
 Quote
fitz
 08/28/2009 12:28AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
DS9 physically opens the image to determine what type of file it is, IRAF relies on the filename extension to use the appropriate image kernel. If the filenames have no extension but you know they are e.g. FITS files, you can add an extension automatically using[code:1:d864eb1504]cl> rename foo* fits field=extn[/code:1:d864eb1504]You should then be able to use DISPLAY (or MSCDISPLAY for multi-extension files) to display the image.-Mike

 
Profile Email
 Quote
rocker_milan
 08/28/2009 12:28AM  
++---
Junior

Status: offline


Registered: 08/15/2009
Posts: 15
thanks for your suggestion, but it seems that way didn't work.
when i read about the explanation about the data type on the HST Data Handbook, there are 2 kind of data type, a GEIS and FITS file. how can i check the data type from the hst that i acquired in iraf/stsdas? because it's confusing me...a lot. i can do nothing about it before i know what kind of this data type?Cry Cry i can't analyze it, or display it, or anything else.
please help me..Cry Cry

 
Profile Email
 Quote
fitz
 08/28/2009 12:28AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Define "didn't work". Did the '.fits' extension get put on the filename? Was there an error message of some kind when you tried to display it?Chances are you have a FITS file, GEIS files have extensions like ".hhh' and '.c0h'. Somehow page the file, if it begins with "SIMPLE = T" then it is FITS.

 
Profile Email
 Quote
rocker_milan
 08/28/2009 12:28AM  
++---
Junior

Status: offline


Registered: 08/15/2009
Posts: 15
i'm sorry..
didn't work means that the file extension was not change or adding .fits at all. so, i bagen to read the manual on Data Handbook. i found that, my data was somekind of FITS type called Multi-Extension FITS. and i tried to followed the step on that handbook. but then again, when i tried to display using this task like this example:
[code:1:934200f801]tv> display fname.fits[11] 1 (FITS extension 11)[/code:1:934200f801]
i've got this message:
[quote:934200f801]tv> display o5ax01010_x1d.fits [1]
ERROR: may not convert string to other types[/quote:934200f801]so, what i'm suppose to do to get this problem fixed??
thanks again for your help...
best regard, Big Grin

 
Profile Email
 Quote
fitz
 08/28/2009 12:28AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
There is no space between the 'foo.fits' and '[1]' to specify the extension number.

 
Profile Email
 Quote
rocker_milan
 08/28/2009 12:28AM  
++---
Junior

Status: offline


Registered: 08/15/2009
Posts: 15
mr/mrs fitz, the problem still can not be solved. Cry
i have followed your suggestion, no space between the '[1]' . but, i still can not open the image..
[code:1:9120da3459]tv> display o5ax01010_x2d.fits[sci,1]
ERROR: Cannot open image (o5ax01010_x2d.fits[1])[/code:1:9120da3459]
any other suggestion? Cry

 
Profile Email
 Quote
fitz
 08/28/2009 12:28AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Try without the 'sci' extension name and just specify the number. Otherwise, you said the RENAME didn't add a .fits extension, did you do it yourself some other way (i.e. the image can't be opened because there isnt' a file called 'o5ax01010_x2d.fits', just 'o5ax01010_x2d').

 
Profile Email
 Quote
   
Content generated in: 0.26 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