Welcome to iraf.net Tuesday, April 23 2024 @ 09:10 AM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 FITCOORDS issue
   
ovince
 01/07/2018 08:52PM (Read 2209 times)  
++---
Junior

Status: offline


Registered: 05/16/2006
Posts: 15
Hi All,

I am having problems to run FITCOORDS task after successful IDENTIFY and REIDENTIFY tasks (Linux Mageia 5, KDE). This is the
unfortunate output:

longslit\$this->_split2($m[0]) fitcoords
Images whose coordinates are to be fit (mArc):
Fit mArc interactively (yes):

NOAO/IRAF V2.16.1 ovince@oliver-pc.aob.rs Sun 21:40:00 07-Jan-2018
Longslit coordinate fit name is mArc.
Longslit database is database.
Features from images:
mArc
ERROR: segmentation violation



The setup is according to "User's Guide to Reducing slit Spectra with IRAF" by Phil Massey et al. which is:

unlearn fitcoords
fitcoords.images="mArc" #Images whose coordinates are to be fit
fitcoords.fitname="" #Name for coordinate fit in the database
fitcoords.interactive=yes #Fit coordinates interactively?
fitcoords.combine=no #Combine input coordinates for a single fit?
fitcoords.database="database" #Database
fitcoords.deletions="deletions.db" #Deletion list file (not used if null)
fitcoords.function="chebyshev" #Type of fitting function
fitcoords.xorder=2 #X order of fitting function
fitcoords.yorder=2 #Y order of fitting function
fitcoords.logfiles="STDOUT,logfile" #Log files
fitcoords.plotfile="plotfile" #Plot log file
fitcoords.graphics="stdgraph" #Graphics output device
fitcoords.cursor="" #Graphics cursor input
fitcoords.mode="ql" #
fitcoords


I read previous post on FITCOORDS issues and none of them seems to me represents this one.


Thank you for help in advance
Oliver


 
Profile Email
 Quote
olebole
 01/08/2018 09:14PM  
++++-
Regular Member

Status: offline


Registered: 05/01/2014
Posts: 103
What version if IRAF do you use? The package that comes (came?) with Mageia? Astroconda? Or the original tarball from NOAO? 32 or 64 bit?

It would also be helpful if you could pit the mArc file somewhere so that one could try to reproduce the problem.

Cheers

Ole

 
Profile Email Website
 Quote
ovince
 01/09/2018 07:22PM  
++---
Junior

Status: offline


Registered: 05/16/2006
Posts: 15

thank for reply.

I use original NOAO IRAF 64bit version 2.16.1.

You may download mArc.fits along with 'steps.inf' file containing all the steps I perform which can copy-pasted directly to cl

https://www.dropbox.com/sh/ziefbx5v9mv8424/AAA1aTL2PrPXEJvBxHMDw-jxa?dl=0

 
Profile Email
 Quote
olebole
 01/09/2018 08:05PM  
++++-
Regular Member

Status: offline


Registered: 05/01/2014
Posts: 103
Could you also put the "database" file there?

 
Profile Email Website
 Quote
ovince
 01/09/2018 08:55PM  
++---
Junior

Status: offline


Registered: 05/16/2006
Posts: 15
yes, it is there ...

 
Profile Email
 Quote
olebole
 01/09/2018 09:04PM  
++++-
Regular Member

Status: offline


Registered: 05/01/2014
Posts: 103
Hmm, this doesn't look like the "database" file?

 
Profile Email Website
 Quote
olebole
 01/09/2018 09:06PM  
++++-
Regular Member

Status: offline


Registered: 05/01/2014
Posts: 103
At least, it is not called "database", while your parameter refers to a file called "database". And using it as database for me just results in "Warning: No coordinates found in database".


 
Profile Email Website
 Quote
ovince
 01/09/2018 09:52PM  
++---
Junior

Status: offline


Registered: 05/16/2006
Posts: 15
sorry, in which task and what parameter is referred to file called 'database'?

 
Profile Email
 Quote
olebole
 01/09/2018 10:06PM  
++++-
Regular Member

Status: offline


Registered: 05/01/2014
Posts: 103
PHP Formatted Code
fitcoords.database="database"         #Database


And I get an error message
PHP Formatted Code
longslit> fitcoords
Images whose coordinates are to be fit: mArc.fits
Fit mArc.fits interactively (yes):

NOAO/IRAF Debian 2.16.1+2017.12.28-2 Tue, 02 Jan 2018 08:00:45 +0000 ole@orrococo Tue 22:56:24 09-Jan-2018
  Longslit coordinate fit name is mArc.fits.
  Longslit database is database.
  Features from images:
    mArc.fits
Warning: Cannot open file (database)

Maybe this is your problem?

I am using a heavily fixed version, including a number of segmentation fault fixes; so your version may not properly handle the missing database.

 
Profile Email Website
 Quote
ovince
 01/10/2018 06:51AM  
++---
Junior

Status: offline


Registered: 05/16/2006
Posts: 15
maybe I am wrong, but I think that

fitcoords.database="database" #Database


refer to the name of the folder (not a file) where some files are stored. I my case, database folder was created automatically after running the identify task and 'idmArc' file (that I have attached in dropbox for you) was written into it.

 
Profile Email
 Quote
olebole
 01/10/2018 07:48AM  
++++-
Regular Member

Status: offline


Registered: 05/01/2014
Posts: 103
After moving the file idmArc to a database subdir,, the file names do not match:
longslit\$this->_split2($m[0]) fitcoords
Images whose coordinates are to be fit (mArc.fits):
Fit mArc.fits interactively (yes):

NOAO/IRAF Debian 2.16.1+2017.12.28-2 Tue, 02 Jan 2018 08:00:45 +0000 ole@orrococo Wed 08:43:37 10-Jan-2018
Longslit coordinate fit name is mArc.fits.
Longslit database is database.
Features from images:
mArc.fits
Warning: Cannot open file (database/idmArc.fits)

and when I rename idmArc to idmArc.fits, I still get "Warning: No coordinates found in database".
IMO something is wrong with the database file.

 
Profile Email Website
 Quote
ovince
 01/10/2018 08:10AM  
++---
Junior

Status: offline


Registered: 05/16/2006
Posts: 15
I am confused that your and my IRAF provide different error report.

Could you please check permissions for "database" folder and "idmArc" file (do not rename into idmArc.fits please)?


 
Profile Email
 Quote
olebole
 01/10/2018 09:51AM  
++++-
Regular Member

Status: offline


Registered: 05/01/2014
Posts: 103
Permissions of both are OK. My problem was that I used "mArc.fits" as image name. Using "mArc" without extension also shows the crash, which is for sure a bug. Maybe fitz can check this? I have no idea here.

 
Profile Email Website
 Quote
ovince
 01/10/2018 11:10AM  
++---
Junior

Status: offline


Registered: 05/16/2006
Posts: 15
could you please copy-paste the std output.

Thank you for help.

 
Profile Email
 Quote
olebole
 01/10/2018 11:15AM  
++++-
Regular Member

Status: offline


Registered: 05/01/2014
Posts: 103
Same as your:
PHP Formatted Code

[longslit> fitcoords
Images whose coordinates are to be fit: mArc
Fit mArc interactively (yes):

NOAO/IRAF Debian 2.16.1+2017.12.28-2 Tue, 02 Jan 2018 08:00:45 +0000 oles@orrococo Wed 12:12:22 10-Jan-2018
  Longslit coordinate fit name is mArc.
  Longslit database is database.
  Features from images:
    mArc
ERROR: segmentation violation
 

 
Profile Email Website
 Quote
olebole
 01/24/2018 12:22PM  
++++-
Regular Member

Status: offline


Registered: 05/01/2014
Posts: 103
OK, I have been looking into this to some detail.

Your file has basically the following header:

FITSHEADER Formatted Code
SIMPLE  =                    T / Fits standard
BITPIX  =                  -32 / Bits per pixel
NAXIS   =                    2 / Number of axes
NAXIS1  =                  961 / Axis length
NAXIS2  =                  191 / Axis length
EXTEND  =                    F / File may contain extensions
ORIGIN  = 'NOAO-IRAF FITS Image Kernel July 2003' / FITS file originator
IRAF-TLM= '2018-01-07T08:26:26' / Time of last modification
DATE-OBS= '6/25/2017' / date of data aquisition
DATE    = '2017-12-12T21:30:24' / date file was written
EXPTIME =                   0. / exposure time - seconds
WCSDIM  =                    3
LTV1    =                 -19.
LTV2    =                 -39.
LTM1_1  =                   1.
LTM2_2  =                   1.
LTM3_3  =                   1.
WAXMAP01= '1 0 2 0 0 0 '
WAT0_001= 'system=physical'
WAT1_001= 'wtype=linear'
WAT2_001= 'wtype=linear'
WAT3_001= 'wtype=linear'
IMCMB001= 'arc_1_bi_tr.fit'
IMCMB002= 'arc_2_bi_tr.fit'
IMCMB003= 'arc_3_bi_tr.fit'
IMCMB004= 'arc_4_bi_tr.fit'
IMCMB005= 'arc_5_bi_tr.fit'
NCOMBINE=                    5
CCDPROC = 'DONE    '
REFSPEC1= 'mArc    '
ARCTYPE = 'henear  '


The value I would question here is WCSDIM=3, which IMO makes no sense for a NAXIS=2 image.
Is there a good reason to have this value?
If you change that to WCSDIM=2, it seems to work.

What I however do not understand here is the code in noao$twodspec/longslit/transform/fcgetcoords.x, which basically causes the crash: The marked lines extract the number of dimensions from the image, but takes this number as the basis to operate on arrays (ltm, ltv) with the fixed length 2. I see no good reason for this; probably one should at least set i=2 if i\$this->_split2($m[0])2, if such files seem to be legal.


 
Profile Email Website
 Quote
ovince
 02/03/2018 09:53AM  
++---
Junior

Status: offline


Registered: 05/16/2006
Posts: 15
thank you for the solution, It works indeed for WCSDIM=2. I have no idea from where 3 comes from. In some of the IRAF reduction steps I have done previously.

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