1
0
Fork 0

satorbit with lines not dots.

giza
Jeff Moe 2022-07-31 17:20:44 -06:00
parent 2c2570f5ef
commit eb43049517
1 changed files with 26 additions and 17 deletions

View File

@ -187,7 +187,8 @@ void plot_footprint(struct sat s)
} }
if (r0>XKMPER || (r0<XKMPER && z0>0.0)) { if (r0>XKMPER || (r0<XKMPER && z0>0.0)) {
cpgmove(x0,y0); cpgmove(x0,y0);
cpgpt1(x,y,1); cpgdraw(x,y);
cpgmove(x,y);
} }
if (z>0.0) if (z>0.0)
cpgpt1(x,y,4); cpgpt1(x,y,4);
@ -206,9 +207,10 @@ void plot_footprint(struct sat s)
if (flag==0) if (flag==0)
cpgmove(x,y); cpgmove(x,y);
else else {
cpgpt1(x,y,1); cpgdraw(x,y);
cpgmove(x,y);
}
if (z>0.0) if (z>0.0)
flag=1; flag=1;
else else
@ -370,7 +372,8 @@ void plot_track(void)
if (sqrt(x*x+y*y)<XKMPER && z<0.0) if (sqrt(x*x+y*y)<XKMPER && z<0.0)
cpgmove(x,y); cpgmove(x,y);
else else
cpgpt1(x,y,1); cpgdraw(x,y);
cpgmove(x,y);
} }
// Do timestep // Do timestep
@ -504,7 +507,8 @@ void plot_xyz(void)
if (sqrt(x*x+y*y)<XKMPER && z<0.0) if (sqrt(x*x+y*y)<XKMPER && z<0.0)
cpgmove(x,y); cpgmove(x,y);
else else
cpgpt1(x,y,1); cpgdraw(x,y);
cpgmove(x,y);
} }
mjd0=mjd; mjd0=mjd;
} }
@ -565,7 +569,8 @@ void plot_globe(void)
cpgmove(x,y); cpgmove(x,y);
flag=1; flag=1;
} else { } else {
cpgpt1(x,y,1); cpgdraw(x,y);
cpgmove(x,y);
} }
} else { } else {
flag=0; flag=0;
@ -593,9 +598,10 @@ void plot_grid(void)
if (flag==0) if (flag==0)
cpgmove(x,y); cpgmove(x,y);
else else {
cpgpt1(x,y,1); cpgdraw(x,y);
cpgmove(x,y);
}
if (z>0.0) if (z>0.0)
flag=1; flag=1;
else else
@ -614,9 +620,10 @@ void plot_grid(void)
if (flag==0) if (flag==0)
cpgmove(x,y); cpgmove(x,y);
else else {
cpgpt1(x,y,1); cpgdraw(x,y);
cpgmove(x,y);
}
if (z>0.0) if (z>0.0)
flag=1; flag=1;
else else
@ -902,9 +909,10 @@ void plot_terminator(void)
if (flag==0) if (flag==0)
cpgmove(x,y); cpgmove(x,y);
else else {
cpgpt1(x,y,1); cpgdraw(x,y);
cpgmove(x,y);
}
if (z>0.0) if (z>0.0)
flag=1; flag=1;
else else
@ -959,7 +967,8 @@ void plot_notam(char *filename)
cpgmove(x,y); cpgmove(x,y);
flag=1; flag=1;
} else { } else {
cpgpt1(x,y,z); cpgdraw(x,y);
cpgmove(x,y);
} }
} else { } else {
flag=0; flag=0;