Merge branch 'master' of https://github.com/cbassa/stvid
commit
257392f950
|
@ -163,7 +163,7 @@ if __name__ == '__main__':
|
|||
tend=trise
|
||||
elif (trise>=tset):
|
||||
dt=np.floor((tset-tnow).to(u.s).value)
|
||||
print("The sun is above the horizon. Waiting %.0f seconds."%dt)
|
||||
print("The sun is above the horizon. Sunset at %s.\nWaiting %.0f seconds."%(tset.isot,dt))
|
||||
tend=trise
|
||||
try:
|
||||
time.sleep(dt)
|
||||
|
|
|
@ -305,11 +305,11 @@ def extract_tracks(fname,trkrmin,drdtmin,trksig,ntrkmin,path):
|
|||
print(iod_line)
|
||||
|
||||
if id.catalog.find("classfd.tle")>0:
|
||||
outfname="classfd.dat"
|
||||
outfname=path+"/classfd/classfd.dat"
|
||||
elif id.catalog.find("inttles.tle")>0:
|
||||
outfname="inttles.dat"
|
||||
outfname=path+"/classfd/inttles.dat"
|
||||
else:
|
||||
outfname="catalog.dat"
|
||||
outfname=path+"/catalog/catalog.dat"
|
||||
|
||||
f=open(outfname,"a")
|
||||
f.write("%s\n"%iod_line);
|
||||
|
@ -325,7 +325,7 @@ def extract_tracks(fname,trkrmin,drdtmin,trksig,ntrkmin,path):
|
|||
ppgplot.pgmtxt("T",6.0,0.0,0.0,"UT Date: %.23s COSPAR ID: %04d"%(ff.nfd,ff.site_id))
|
||||
ppgplot.pgmtxt("T",4.8,0.0,0.0,"R.A.: %10.5f (%4.1f'') Decl.: %10.5f (%4.1f'')"%(ff.crval[0],3600.0*ff.crres[0],ff.crval[1],3600.0*ff.crres[1]))
|
||||
ppgplot.pgmtxt("T",3.6,0.0,0.0,"FoV: %.2f\\(2218)x%.2f\\(2218) Scale: %.2f''x%.2f'' pix\\u-1\\d"%(ff.wx,ff.wy,3600.0*ff.sx,3600.0*ff.sy))
|
||||
ppgplot.pgmtxt("T",2.4,0.0,0.0,"Stat: %5.1f+-%.1f (%.1f-%.1f)"%(np.mean(ff.zmax),np.std(ff.zmax),ff.vmin,ff.vmax))
|
||||
ppgplot.pgmtxt("T",2.4,0.0,0.0,"Stat: %5.1f+-%.1f (%.1f-%.1f)"%(np.mean(ff.zmax),np.std(ff.zmax),ff.zmaxmin,ff.zmaxmax))
|
||||
ppgplot.pgmtxt("T",0.3,0.0,0.0,iod_line)
|
||||
|
||||
ppgplot.pgsch(1.0)
|
||||
|
|
Loading…
Reference in New Issue