JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for STARLINK Archives


STARLINK Archives

STARLINK Archives


STARLINK@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

STARLINK Home

STARLINK Home

STARLINK  February 2011

STARLINK February 2011

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: losing astrometry in NDF2FITS

From:

"Malcolm J. Currie" <[log in to unmask]>

Reply-To:

Starlink Software User Support <[log in to unmask]>

Date:

Mon, 21 Feb 2011 17:22:28 +0000

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (88 lines)

Ciara kindly let me take a copy of the original FITS file.  There was 
confusion regarding which FITS file's headers to search.

Here's what I've gleaned so far.  The original FITS file has kosher WCS 
headers using RA---SIN, DEC--SIN, and VELO-LSR types.  GAIA reads the 
WCS fine both in the original FITS file and after conversion to NDF with 
NDF2FITS.  The NDF's current WCS is a SKY-SPECTRUM with axes for right 
ascension, declination, and radio velocity in m/s.

After NDF2FITS has converted back to FITS, it adds a secondary WCS for 
the AXIS that has the A suffix.

CUNIT3  = 'm/s     '           / Units for axis 3
MJD-OBS =     51544.4992571308 / Modified Julian Date of observation
DATE-OBS= '2000-01-01T11:58:55.816'/ Date of observation
PV1_3   =                180.0 / Projection parameter
PV1_4   =    -51.6511306762695 / Projection parameter
SPECSYS = 'LSRK    '           / Standard of rest for spectral axis
VELOSYS =     6490.60691973352 / [m/s] Topo. apparent velocity of rest frame
WCSNAMEA= 'AXIS    '           / Reference name for the coord. frame
CRPIX1A =                  0.0 / Reference pixel on axis 1
CRPIX2A =                  0.0 / Reference pixel on axis 2
CRPIX3A =                  0.0 / Reference pixel on axis 3
CRVAL1A =     126.565551757812 / Value at ref. pixel on axis 1
CRVAL2A =    -51.6544647216797 / Value at ref. pixel on axis 2
CRVAL3A =          72808.53125 / Value at ref. pixel on axis 3
CTYPE1A = 'RA---TAB'           / Type of co-ordinate on axis 1
CTYPE2A = 'DEC--TAB'           / Type of co-ordinate on axis 2
CTYPE3A = 'VELO-TAB'           / Type of co-ordinate on axis 3
CDELT1A =                  1.0 / Pixel size on axis 1
CDELT2A =                  1.0 / Pixel size on axis 2
CDELT3A =                  1.0 / Pixel size on axis 3
PS1_0A  = 'WCS-TAB '           / Projection parameter
PS1_1A  = 'COORDS1 '           / Projection parameter
PS2_0A  = 'WCS-TAB '           / Projection parameter
PS2_1A  = 'COORDS2 '           / Projection parameter
PS3_0A  = 'WCS-TAB '           / Projection parameter
PS3_1A  = 'COORDS3 '           / Projection parameter


I have no idea where the DATE-OBS/MJD-OBS originated.  As far as I can 
see the original FITS file only has one date and that's in the HISTORY
headers.

There is a WCS-TAB extension storing the AXIS co-ordinates.

This is the error GAIA generates for me.

  !! AST: Error at line 176 in file ./generic/GaiaFITS.C.
  !  astRead(FitsChan): FITS keyword 'CTYPE1A' refers to an unknown projection type '-TAB'.


So I presume this is due to David's recent addition to provide partial 
support for -TAB arrays of co-ordinates, but GAIA doesn't recognise the 
-TAB projection type.  This was using the default encoding and explicit 
encoding=FITS-WCS.  David: why is there an additional WCS stored given 
the regular projection?  A better question is why does FITS2NDF generate 
an AXIS structure (Ciara these are lookup tables of co-ordinates) in 
addition to the WCS to provide the same co-ordinates.  Is there no way 
to disable these headers for tools that do not recognise the -TAB 
projection type?

Trying some other encodings failed except FITS-AIPS++ generated a 
primary HDU without the additional A-set of WCS headers, but it still 
wrote a WCS-TAB extension.  That looks like a bug.  However, it does 
mean that GAIA recognises the WCS.

These tests were with the latest build incorporating -TAB changes to AST 
and CONVERT by David in the last ten days.

> Does anyone know how I can fix this?

While

   ndf2fits encoding=fits-aip++

will work, it's better to erase the NDF axis with KAPPA:SETAXIS

   setaxis ndf_name mode=del

substituting your NDF's name for "ndf_name" because there will not be a 
WCS-TAB extension and your WCS header style is unchanged.  Then run 
NDF2FITS as you did before.

Meanwhile we can investigate the -TAB issues.

Malcolm

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

December 2023
November 2023
August 2023
July 2023
May 2023
April 2023
March 2023
February 2023
January 2023
November 2022
October 2022
August 2022
July 2022
June 2022
April 2022
January 2022
December 2021
October 2021
May 2021
February 2021
November 2020
October 2020
August 2020
July 2020
June 2020
February 2020
November 2019
October 2019
September 2019
July 2019
June 2019
May 2019
April 2019
March 2019
December 2018
November 2018
October 2018
September 2018
July 2018
June 2018
April 2018
January 2018
December 2017
October 2017
August 2017
July 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
September 2016
July 2016
June 2016
April 2016
March 2016
February 2016
December 2015
November 2015
October 2015
September 2015
May 2015
April 2015
March 2015
February 2015
October 2014
August 2014
July 2014
June 2014
May 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
January 2007
November 2006
October 2006
September 2006
August 2006
July 2006
April 2006
March 2006
February 2006
December 2004
September 2004


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager