From bdcae056f1d6cccf327fc5dce4b349976b2a9e60 Mon Sep 17 00:00:00 2001 From: Cees Bassa Date: Sun, 24 Aug 2014 17:48:25 +0200 Subject: [PATCH] Misc bug fixes --- measure.c | 20 ++++++++++++++++++++ skymap.c | 1 + 2 files changed, 21 insertions(+) diff --git a/measure.c b/measure.c index 6b3e884..cad9eca 100644 --- a/measure.c +++ b/measure.c @@ -727,6 +727,26 @@ int main(int argc,char *argv[]) ymin=0.0; ymax=img[iimg].naxis2; iimg=0; + + obs.satno=99999; + strcpy(obs.desig,"99999U"); + obs.cospar=atoi(env); + obs.conditions='G'; + strcpy(obs.nfd,"YYYYMMDDHHMMSSsss"); + obs.terr=0.2; + strcpy(obs.pos,"HHMMmmm+DDMMmm"); + strcpy(obs.iod_line,""); + obs.perr=0.1; + obs.epoch=5; + obs.type=2; + obs.behavior='S'; + obs.state=0; + obs.cospar=img[0].cospar; + + // Get fake designation + mjd=nfd2mjd(img[0].nfd); + doy=mjd2doy(mjd,&year); + sprintf(obs.desig,"%02d%03.0lfA",year-2000,doy+500); redraw=1; continue; } diff --git a/skymap.c b/skymap.c index 590d36f..d7a9d21 100644 --- a/skymap.c +++ b/skymap.c @@ -1526,6 +1526,7 @@ void skymap_plotsatellite(char *filename,int satno,double mjd0,double dt) // Plot satellites if (flag==0) { + cpgsch(0.8); if (s.age<25) cpgpt1(x,y,17); else if (s.age<50)