2baae0a182c2d83cff4f6a2830ffdb3b077e0676,skyalignments.py,,,#,251
Before Change
observer.lat / ephem.degree,
observer.lon / ephem.degree,
observer.elevation)
print(observer)
print()
alignments = find_alignments(observer, waypoints, allpoints=args.allpoints)
if alignments:
After Change
else:
observer_point = None
if args.year:
year = args.year
else:
year = datetime.now().year
waypoints = []
for filename in args.waypointfiles:
if filename.lower().endswith("gpx"):
obs, wp = read_waypoint_file_GPX(filename)
elif filename.lower().endswith("csv"):
obs, wp = read_waypoint_file_CSV(filename)
else:
print("Unknown file type %s: skipping" % filename)
continue
if wp:
waypoints += wp
else:
print("No waypoints in", filename)
if obs:
observer_point = obs
if not waypoints:
parser.print_help()
sys.exit(1)
if not observer_point:
print("Using first waypoint for observer:", waypoints[0])
observer_point = waypoints[0]
if not args.allpoints:
waypoints = waypoints[1:]
observer = ephem.Observer()
// Observer will take degrees as a string, but if you pass it floats
// it expects radians, though that"s undocumented.
observer.lat = observer_point[1] * ephem.degree
observer.lon = observer_point[2] * ephem.degree
if len(observer_point) > 3:
observer.elevation = observer_point[3]
else:
observer.elevation = 500.0 // meters
if args.observername:
observer.name = args.observername
else:
observer.name = "%s %f, %f, %dm" % (observer_point[0],
observer.lat / ephem.degree,
observer.lon / ephem.degree,
observer.elevation)
// print(observer)
alignments = find_alignments(observer, waypoints,
year=year, allpoints=args.allpoints)
if alignments:
// pprint(alignments)
cur_observer = None
for a in alignments:
if a["observer"] != cur_observer:
cur_observer = a["observer"]
print("\nFrom %s:" % cur_observer)
print("%s, %s at %s (az %d +/- %.2f)"
% ( a["event"], a["target"],
a["time"],
a["azimuth"], a["slop"]))
// save_alignments_as_GPX(alignments)
else:
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: akkana/scripts
Commit Name: 2baae0a182c2d83cff4f6a2830ffdb3b077e0676
Time: 2019-04-29
Author: akkana@shallowsky.com
File Name: skyalignments.py
Class Name:
Method Name:
Project Name: akkana/scripts
Commit Name: 2baae0a182c2d83cff4f6a2830ffdb3b077e0676
Time: 2019-04-29
Author: akkana@shallowsky.com
File Name: skyalignments.py
Class Name:
Method Name:
Project Name: kbardool/keras-frcnn
Commit Name: 6ecffe54690da84be104cbb2ec8a709f6b2a7fd3
Time: 2017-02-03
Author: yannhenon@gmail.com
File Name: data_augment.py
Class Name:
Method Name: augment
Project Name: merenlab/anvio
Commit Name: ca8eeb16b304cdee02c5714f74d388e2c4b21b4b
Time: 2021-01-01
Author: samuelmiller10@gmail.com
File Name: anvio/__init__.py
Class Name:
Method Name: TABULATE
Project Name: akkana/scripts
Commit Name: 9aceadde003d2b200dc7d31ebd4d9ca1f1298603
Time: 2019-09-07
Author: akkana@shallowsky.com
File Name: check_monitors.py
Class Name: XDisp
Method Name: find_orphans