Commit 02db3cb4 authored by John Whelan's avatar John Whelan
Browse files

Pulsar_CrossCorr_v2: added extraction of timestamps from SFTs

Original: 64f62aabde987251cf9e21c0aec7b1e72b6af5a2
parent 9b650880
......@@ -87,8 +87,9 @@ int main(int argc, char *argv[]){
/* sft related variables */
MultiSFTVector *inputSFTs = NULL;
MultiPSDVector *psd = NULL;
SFTIndexList *sftIndices;
SFTPairIndexList *sftPairs;
MultiLIGOTimeGPSVector *gpsTimes = NULL;
SFTIndexList *sftIndices = NULL;
SFTPairIndexList *sftPairs = NULL;
REAL8 fMin, fMax; /* min and max frequencies read from SFTs */
REAL8 deltaF, Tsft; /* frequency resolution and time baseline of SFTs */
......@@ -133,6 +134,12 @@ int main(int argc, char *argv[]){
return 1;
}
/* read the timestamps from the SFTs*/
if ((gpsTimes = XLALExtractMultiTimestampsFromSFTs ( inputSFTs )) == NULL){
LogPrintf ( LOG_CRITICAL, "%s: XLALExtractMultiTimestampsFromSFTs() failed with errno=%d\n", __func__, xlalErrno );
return 1;
}
/* calculate the psd and normalize the SFTs */
if (( psd = XLALNormalizeMultiSFTVect ( inputSFTs, uvar.rngMedBlock )) == NULL){
LogPrintf ( LOG_CRITICAL, "%s: XLALNormalizeMultiSFTVect() failed with errno=%d\n", __func__, xlalErrno );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment