Created
June 11, 2012 21:41
-
-
Save Muon/2912916 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with open("tyc_main.dat", mode="rt") as tycho_database: | |
num_close = 0 | |
for line in tycho_database: | |
plx = line[79:86].strip() | |
if line[267] != 'P' and plx and float(plx) > 200 and line[349] != 'K' and int(line[260]) <= 4: | |
num_close += 1 | |
print(num_close) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment