From 66ed1830e840102a999682c131cc1a09e4ad678c Mon Sep 17 00:00:00 2001 From: Cees Bassa Date: Tue, 16 Aug 2022 22:25:29 +0200 Subject: [PATCH] Add COSPAR to output --- satpredict.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/satpredict.c b/satpredict.c index a9c99f7..8e9d9ec 100644 --- a/satpredict.c +++ b/satpredict.c @@ -268,7 +268,7 @@ void compute_positions(char *tlefile,FILE *file,double ra0,double de0,double rad // TLE age age=p[i].mjd+2400000.5-SGDP4_jd0; - fprintf(file,"%05d,%014.8lf,%010.6lf,%+010.6lf,%s,%s,%.3f\n",orb.satno,p[i].mjd,ra,de,state,tlefile,age); + fprintf(file,"%05d,%s,%014.8lf,%010.6lf,%+010.6lf,%s,%s,%.3f\n",orb.satno,orb.desig,p[i].mjd,ra,de,state,tlefile,age); } } @@ -416,7 +416,7 @@ int main(int argc,char *argv[]) // Open output file file=fopen(outfile,"w"); - fprintf(file,"satno,mjd,ra,dec,state,tlefile,age\n"); + fprintf(file,"satno,cospar,mjd,ra,dec,state,tlefile,age\n"); // Compute positions for (i=0;i