satorbit with lines not dots.
parent
2c2570f5ef
commit
eb43049517
43
satorbit.c
43
satorbit.c
|
@ -187,7 +187,8 @@ void plot_footprint(struct sat s)
|
|||
}
|
||||
if (r0>XKMPER || (r0<XKMPER && z0>0.0)) {
|
||||
cpgmove(x0,y0);
|
||||
cpgpt1(x,y,1);
|
||||
cpgdraw(x,y);
|
||||
cpgmove(x,y);
|
||||
}
|
||||
if (z>0.0)
|
||||
cpgpt1(x,y,4);
|
||||
|
@ -206,9 +207,10 @@ void plot_footprint(struct sat s)
|
|||
|
||||
if (flag==0)
|
||||
cpgmove(x,y);
|
||||
else
|
||||
cpgpt1(x,y,1);
|
||||
|
||||
else {
|
||||
cpgdraw(x,y);
|
||||
cpgmove(x,y);
|
||||
}
|
||||
if (z>0.0)
|
||||
flag=1;
|
||||
else
|
||||
|
@ -370,7 +372,8 @@ void plot_track(void)
|
|||
if (sqrt(x*x+y*y)<XKMPER && z<0.0)
|
||||
cpgmove(x,y);
|
||||
else
|
||||
cpgpt1(x,y,1);
|
||||
cpgdraw(x,y);
|
||||
cpgmove(x,y);
|
||||
}
|
||||
|
||||
// Do timestep
|
||||
|
@ -504,7 +507,8 @@ void plot_xyz(void)
|
|||
if (sqrt(x*x+y*y)<XKMPER && z<0.0)
|
||||
cpgmove(x,y);
|
||||
else
|
||||
cpgpt1(x,y,1);
|
||||
cpgdraw(x,y);
|
||||
cpgmove(x,y);
|
||||
}
|
||||
mjd0=mjd;
|
||||
}
|
||||
|
@ -565,7 +569,8 @@ void plot_globe(void)
|
|||
cpgmove(x,y);
|
||||
flag=1;
|
||||
} else {
|
||||
cpgpt1(x,y,1);
|
||||
cpgdraw(x,y);
|
||||
cpgmove(x,y);
|
||||
}
|
||||
} else {
|
||||
flag=0;
|
||||
|
@ -593,9 +598,10 @@ void plot_grid(void)
|
|||
|
||||
if (flag==0)
|
||||
cpgmove(x,y);
|
||||
else
|
||||
cpgpt1(x,y,1);
|
||||
|
||||
else {
|
||||
cpgdraw(x,y);
|
||||
cpgmove(x,y);
|
||||
}
|
||||
if (z>0.0)
|
||||
flag=1;
|
||||
else
|
||||
|
@ -614,9 +620,10 @@ void plot_grid(void)
|
|||
|
||||
if (flag==0)
|
||||
cpgmove(x,y);
|
||||
else
|
||||
cpgpt1(x,y,1);
|
||||
|
||||
else {
|
||||
cpgdraw(x,y);
|
||||
cpgmove(x,y);
|
||||
}
|
||||
if (z>0.0)
|
||||
flag=1;
|
||||
else
|
||||
|
@ -902,9 +909,10 @@ void plot_terminator(void)
|
|||
|
||||
if (flag==0)
|
||||
cpgmove(x,y);
|
||||
else
|
||||
cpgpt1(x,y,1);
|
||||
|
||||
else {
|
||||
cpgdraw(x,y);
|
||||
cpgmove(x,y);
|
||||
}
|
||||
if (z>0.0)
|
||||
flag=1;
|
||||
else
|
||||
|
@ -959,7 +967,8 @@ void plot_notam(char *filename)
|
|||
cpgmove(x,y);
|
||||
flag=1;
|
||||
} else {
|
||||
cpgpt1(x,y,z);
|
||||
cpgdraw(x,y);
|
||||
cpgmove(x,y);
|
||||
}
|
||||
} else {
|
||||
flag=0;
|
||||
|
|
Loading…
Reference in New Issue