Changeset 1399 for trunk/external/atnf/PKSIO/SDFITSwriter.cc
- Timestamp:
- 11/16/07 13:36:15 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/external/atnf/PKSIO/SDFITSwriter.cc
r1325 r1399 2 2 //# SDFITSwriter.cc: ATNF CFITSIO interface class for SDFITS output. 3 3 //#--------------------------------------------------------------------------- 4 //# Copyright (C) 2000-200 64 //# Copyright (C) 2000-2007 5 5 //# Mark Calabretta, ATNF 6 6 //# … … 27 27 //# AUSTRALIA 28 28 //# 29 //# $Id: SDFITSwriter.cc,v 19.1 0 2006/07/05 05:44:52 mcalabreExp $29 //# $Id: SDFITSwriter.cc,v 19.12 2007/11/12 03:37:56 cal103 Exp $ 30 30 //#--------------------------------------------------------------------------- 31 31 //# Original: 2000/07/24, Mark Calabretta, ATNF … … 76 76 double antPos[3], 77 77 char* obsMode, 78 char* bunit, 78 79 float equinox, 79 80 char* dopplerFrame, … … 113 114 break; 114 115 } 115 116 116 117 if (cNChan[iIF] != cNChan[0] || cNPol[iIF] != cNPol[0]) { 117 118 // Varying channels and/or polarizations, need a TDIM column at least. … … 159 160 char version[7]; 160 161 char date[11]; 161 sscanf("$Revision: 19.1 0$", "%*s%s", version);162 sscanf("$Date: 200 6/07/05 05:44:52$", "%*s%s", date);162 sscanf("$Revision: 19.12 $", "%*s%s", version); 163 sscanf("$Date: 2007/11/12 03:37:56 $", "%*s%s", date); 163 164 sprintf(text, "SDFITSwriter (v%s, %s)", version, date); 164 165 fits_write_key_str(cSDptr, "ORIGIN", text, "output class", &cStatus); … … 355 356 fits_insert_col(cSDptr, ++ncol, "TSYS", tform, &cStatus); 356 357 sprintf(tunit, "TUNIT%d", ncol); 357 fits_write_key_str(cSDptr, tunit, "Jy", "units of field", &cStatus);358 fits_write_key_str(cSDptr, tunit, bunit, "units of field", &cStatus); 358 359 359 360 // CALFCTR (additional, real). … … 396 397 397 398 sprintf(tunit, "TUNIT%d", ncol); 398 fits_write_key_str(cSDptr, tunit, "Jy", "units of field", &cStatus);399 fits_write_key_str(cSDptr, tunit, bunit, "units of field", &cStatus); 399 400 400 401 // FLAGGED (additional, logical). … … 444 445 445 446 sprintf(tunit, "TUNIT%d", ncol); 446 fits_write_key_str(cSDptr, tunit, "Jy", "units of field", &cStatus);447 fits_write_key_str(cSDptr, tunit, bunit, "units of field", &cStatus); 447 448 } 448 449 … … 743 744 744 745 746 //------------------------------------------------------ SDFITSwriter::history 747 748 // Write a history record. 749 750 int SDFITSwriter::history(char *text) 751 752 { 753 fits_write_history(cSDptr, text, &cStatus); 754 755 return cStatus; 756 } 757 745 758 //-------------------------------------------------- SDFITSwriter::reportError 746 759
Note: See TracChangeset
for help on using the changeset viewer.