23.04.2015 Views

ISOCAM Interactive Analysis User's Manual Version 5.0 - ISO - ESA

ISOCAM Interactive Analysis User's Manual Version 5.0 - ISO - ESA

ISOCAM Interactive Analysis User's Manual Version 5.0 - ISO - ESA

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

348 APPENDIX I. UPGRADING OLD CIA STRUCTURES<br />

CIA> restore, ’old_cvf.xdr’, /verb<br />

% RESTORE: Portable (XDR) SAVE/RESTORE file.<br />

% RESTORE: Save file written by LANDRIU@SAPI01, Thu Jun 12 17:11:05 1997.<br />

% RESTORE: Restored variable: OLD_CVF.<br />

CIA> help, old_cvf.astr, /str<br />

** Structure ASTR_STRUC, 8 tags, length=96:<br />

CD DOUBLE Array[2, 2]<br />

CDELT FLOAT Array[2]<br />

CRPIX FLOAT Array[2]<br />

CRVAL DOUBLE Array[2]<br />

CTYPE STRING Array[2]<br />

LONGPOLE FLOAT 180.000<br />

PROJP1 FLOAT -1.00000<br />

PROJP2 FLOAT -2.00000<br />

This time there are no problems – no other ASTR definition exist in the new CIA session.<br />

Now export old cvf as a FITS file and exit your second CIA session.<br />

CIA> struct2fits, old_cvf, name=’cvf.fits’<br />

CIA> exit<br />

I01[DELANEY]<br />

Returning to your original CIA session, you can now load the FITS file into IDL memory<br />

as a CVF PDS. fits2struct will initialize a new CVF PDS, fill it with data from the old<br />

CVF PDS, and in so doing correct the type of .ASTR.CDELT.<br />

CIA> fits2struct, ’cvf.fits’, hdr, new_cvf<br />

CIA> help, new_cvf.astr,/str<br />

** Structure ASTR_STRUC, 8 tags, length=104:<br />

CD DOUBLE Array[2, 2]<br />

CDELT DOUBLE Array[2]<br />

CRPIX FLOAT Array[2]<br />

CRVAL DOUBLE Array[2]<br />

CTYPE STRING Array[2]<br />

LONGPOLE FLOAT 180.000<br />

PROJP1 FLOAT -1.00000<br />

PROJP2 FLOAT -2.00000<br />

• Due to an error in the original FITS astrometry definition which was propagated into the<br />

ASTROLIB astrometry routines 1 and the CIA routines, roll to crota2 and fits header,<br />

CIA 1.0 CVF.ASTR.CD was defined incorrectly and the CD matrix in FITS files created<br />

1 CIA is distributed with debugged versions of the ASTROLIB astrometry routines: extast, putast, ad2xy,<br />

xy2ad. The location of the CIA version of these routines is placed before the ASTROLIB location on IDL’s<br />

!PATH (if CIA is installed correctly) to ensure that they are compiled first.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!