[Kst] kdeextragear-2/kst/kst
Andrew Walker
arwalker at sumusltd.com
Mon Oct 25 19:15:04 CEST 2004
CVS commit by arwalker:
Add ability to interpret AIT (Planck) times.
M +10 -0 kst2dplot.cpp 1.288
M +4 -2 kstplotdefines.h 1.5
--- kdeextragear-2/kst/kst/kst2dplot.cpp #1.287:1.288
@@ -1198,4 +1198,8 @@ double Kst2DPlot::convertTimeValueToJD(d
value += JD_RJD;
break;
+ case X_AXIS_INTERP_AIT:
+ value -= 86400.0 * (365.0 * 12.0 + 3.0) - 32.0; // difference (seconds) between standard C time and AIT
+ value /= 24.0 * 60.0 * 60.0;
+ value += JD1970;
default:
break;
@@ -1219,4 +1223,8 @@ double Kst2DPlot::convertTimeDiffValueTo
case X_AXIS_INTERP_MJD:
case X_AXIS_INTERP_RJD:
+ break;
+ case X_AXIS_INTERP_AIT:
+ diff /= 24.0 * 60.0 * 60.0;
+ break;
default:
break;
@@ -1559,4 +1567,6 @@ void Kst2DPlot::genAxisTickLabels(QPaint
range *= 24.0 * 60.0 * 60.0;
break;
+ case X_AXIS_INTERP_AIT:
+ break;
}
--- kdeextragear-2/kst/kst/kstplotdefines.h #1.4:1.5
@@ -29,5 +29,6 @@ enum KstXAxisInterpretation { X_AXIS_INT
X_AXIS_INTERP_JD,
X_AXIS_INTERP_MJD,
- X_AXIS_INTERP_RJD };
+ X_AXIS_INTERP_RJD,
+ X_AXIS_INTERP_AIT };
enum KstXAxisDisplay { X_AXIS_DISPLAY_YEAR,
@@ -55,5 +56,6 @@ const XAxisInterpretation XAxisInterpret
{ I18N_NOOP2("Julian Date", "JD"), X_AXIS_INTERP_JD },
{ I18N_NOOP2("Modified Julian Date", "MJD"), X_AXIS_INTERP_MJD },
- { I18N_NOOP2("Reduced Julian Date", "RJD"), X_AXIS_INTERP_RJD }
+ { I18N_NOOP2("Reduced Julian Date", "RJD"), X_AXIS_INTERP_RJD },
+ { I18N_NOOP2("Time format specific to Planck project", "AIT (Planck)"), X_AXIS_INTERP_AIT }
};
More information about the Kst
mailing list