This repository has been archived by the owner on Feb 12, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:ktisha/python2012
- Loading branch information
Showing
306 changed files
with
203,822 additions
and
20 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
__author__ = 'Kirill Kononov, Sergey Karashevich' | ||
|
||
import re, os | ||
from os.path import join | ||
|
||
class Parser: | ||
|
||
def __init__(self, proclogFileName): | ||
self.proclog = list() | ||
self.info = dict() | ||
|
||
with open(proclogFileName, 'r') as input_file: | ||
for line in input_file: | ||
self.proclog.append(line) | ||
|
||
|
||
def parse(self, info_prefix, info_id, info_postfix): | ||
for line in self.proclog: | ||
name_prefix = re.search(info_prefix + "\s*", line) | ||
|
||
if name_prefix: | ||
name = line[name_prefix.end() : line.find(info_postfix, name_prefix.end())] | ||
self.info[info_id] = name.strip() | ||
|
||
return | ||
|
||
def printParser(self): | ||
for k, v in self.info.iteritems(): | ||
print k + " " * (20 - len(k)) + "\"" + v + "\"" | ||
|
||
def fillDict(self): | ||
self.parse("Processing image \"", "IMG_NAME", "\"") | ||
self.parse("exposure =", "EXPOSURE", "s") | ||
self.parse("CCD temperature =", "CCD_TEMP", "K") | ||
self.parse("filter \"", "FILTER", "\"") | ||
self.parse("Observation target:", "OBJECT", "\n") | ||
self.parse("Mid-exposure time:", "EXPTIME", "UTC") | ||
self.parse("Latitude:", "LAT", "\n") | ||
self.parse("Longitude:", "LONG", "\n") | ||
self.parse("Altitude:", "ALT", "m") | ||
self.parse("Reference catalog:", "CAT_ASTR", "\n") | ||
self.parse("Image center RA", "IMG_CENTER_RA", " ") | ||
self.parse("Image center Dec", "IMG_CENTER_DEC", " ") | ||
|
||
def process(self): | ||
self.fillDict() | ||
self.printParser() | ||
|
||
|
||
def isProclog(str): | ||
if str.endswith(".proclog"): | ||
return True | ||
else: | ||
return False | ||
|
||
|
||
def main(): | ||
|
||
for root, dirs, files in os.walk("."): | ||
for name in files: | ||
if isProclog(name): | ||
print (join(root, name)) | ||
parser = Parser(join(root, name)) | ||
parser.process() | ||
del parser | ||
|
||
main() |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
Date: 2008-04-27 | ||
Telescope: ZA-320 Mirror Astrograph (Pulkovo Observatory [084], Observational astronomy lab) | ||
Camera: IMG1001E | ||
Observations started at: 19:00 UTC | ||
Temperature: +5.0 degC | ||
Air pressure: 1025.0 hPa | ||
Relative humidity: 38.0 % | ||
Moon disk illumination: 58.2 % | ||
Moon elevation: -39.8 deg | ||
Sun elevation: -8.1 deg | ||
Observer(s): O. V. Krakosevich | ||
|
||
----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
Frame Start (UTC) Duration Type Object Filt RA J2000.0 Dec J2000.0 HA A z dMoon Temp. Press. R.hum | ||
h m s s h m s d m s h d d d degC hPa % | ||
----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
-30.3deg.full.bias 19:06:46.491 0.00 Bias "Bias frame" - | ||
-30.3deg.5s.full.dark 19:07:31.854 5.00 Dark "Dark frame" - | ||
-30.3deg.240s.full.dark 19:08:02.211 240.00 Dark "Dark frame" - | ||
-30.3deg.80s.full.dark 19:16:23.262 80.00 Dark "Dark frame" - | ||
-30.3deg.120s.full.dark 19:19:23.219 120.00 Dark "Dark frame" - | ||
-30.3deg.180s.full.dark 19:23:44.167 180.00 Dark "Dark frame" - | ||
-30.3deg.300s.full.dark 19:30:06.728 300.00 Dark "Dark frame" - | ||
-30.3deg.60s.full.dark 19:40:28.136 60.00 Dark "Dark frame" - | ||
-30.3deg.40s.full.dark 19:42:47.275 40.00 Dark "Dark frame" - | ||
-30.3deg.30s.full.dark 19:44:26.042 30.00 Dark "Dark frame" - | ||
-30.3deg.10s.full.dark 19:45:44.513 10.00 Dark "Dark frame" - | ||
-30.3deg.20s.full.dark 19:46:22.890 20.00 Dark "Dark frame" - | ||
137170.20080427.195047 19:50:52.898 240.00 Obj 137170 - 18 00 33.58 +51 13 45.5 -5.665579 +61.03409 45.47212 79.4 +5.0 1025.0 38.0 | ||
137170.20080427.195501 19:55:06.500 240.00 Obj 137170 V 18 00 33.87 +51 13 48.1 -5.594501 +61.69971 45.00065 79.4 +5.0 1025.0 38.0 | ||
137170.20080427.195915 19:59:19.883 240.00 Obj 137170 V 18 00 33.77 +51 13 51.7 -5.523758 +62.36321 44.52830 79.4 +5.0 1025.0 38.0 | ||
137170.20080427.200328 20:03:33.404 240.00 Obj 137170 V 18 00 33.17 +51 13 55.0 -5.454332 +63.01576 44.06198 79.4 +5.0 1025.0 38.0 | ||
137170.20080427.200744 20:07:49.442 240.00 Obj 137170 V 18 00 33.53 +51 13 58.6 -5.379788 +63.71806 43.55826 79.4 +5.0 1025.0 38.0 | ||
137170.20080427.201158 20:12:03.401 240.00 Obj 137170 R 18 00 33.68 +51 14 01.8 -5.311516 +64.36293 43.09425 79.4 +5.0 1025.0 38.0 | ||
137170.20080427.201612 20:16:17.074 240.00 Obj 137170 R 18 00 33.92 +51 14 05.5 -5.242154 +65.01971 42.62017 79.3 +5.0 1025.0 38.0 | ||
137170.20080427.202025 20:20:30.762 240.00 Obj 137170 R 18 00 33.84 +51 14 09.0 -5.167903 +65.72504 42.10995 79.4 +5.0 1025.0 38.0 | ||
137170.20080427.202439 20:24:44.376 240.00 Obj 137170 R 18 00 33.79 +51 14 11.7 -5.097252 +66.39857 41.62195 79.3 +5.0 1025.0 38.0 | ||
137170.20080427.202852 20:28:57.963 240.00 Obj 137170 R 18 00 34.32 +51 14 15.9 -5.028155 +67.05906 41.14196 79.3 +5.0 1025.0 38.0 | ||
137170.20080427.203345 20:33:50.529 240.00 Obj 137170 V 18 00 26.74 +51 15 46.4 -4.947335 +67.80745 40.56173 79.3 +5.0 1025.0 38.0 | ||
137170.20080427.203759 20:38:04.337 240.00 Obj 137170 V 18 00 27.00 +51 15 49.6 -4.874830 +68.50621 40.05305 79.3 +5.0 1025.0 38.0 | ||
137170.20080427.204212 20:42:18.039 240.00 Obj 137170 V 18 00 27.49 +51 15 53.4 -4.804924 +69.18260 39.56014 79.3 +5.0 1025.0 38.0 | ||
137170.20080427.204626 20:46:31.921 240.00 Obj 137170 V 18 00 28.14 +51 15 57.2 -4.734883 +69.86336 39.06407 79.3 +5.0 1025.0 38.0 | ||
137170.20080427.205040 20:50:45.516 240.00 Obj 137170 V 18 00 27.85 +51 16 00.1 -4.661690 +70.57865 38.54355 79.3 +5.0 1025.0 38.0 | ||
137170.20080427.205454 20:54:59.090 240.00 Obj 137170 V 18 00 27.89 +51 16 04.7 -4.591647 +71.26615 38.04295 79.3 +5.0 1025.0 38.0 | ||
137170.20080427.205927 20:59:32.150 240.00 Obj 137170 R 18 00 28.48 +51 16 07.8 -4.517842 +71.99527 37.51358 79.3 +5.0 1025.0 38.0 | ||
137170.20080427.210340 21:03:45.757 240.00 Obj 137170 R 18 00 28.66 +51 16 11.8 -4.443799 +72.73092 36.98011 79.3 +5.0 1025.0 38.0 | ||
137170.20080427.210754 21:07:59.576 240.00 Obj 137170 R 18 00 28.73 +51 16 14.9 -4.374468 +73.42435 36.47878 79.3 +5.0 1025.0 38.0 | ||
137170.20080427.211208 21:12:13.399 240.00 Obj 137170 R 18 00 27.68 +51 16 18.5 -4.304567 +74.12790 35.97139 79.3 +5.0 1025.0 38.0 | ||
137170.20080427.213216 21:32:21.215 240.00 Obj 137170 V 18 00 23.33 +51 17 35.1 -3.965307 +77.59458 33.47469 79.3 +5.0 1025.0 38.0 | ||
137170.20080427.213629 21:36:34.706 240.00 Obj 137170 V 18 00 23.34 +51 17 39.5 -3.894919 +78.33606 32.95417 79.3 +5.0 1025.0 38.0 | ||
137170.20080427.214043 21:40:48.075 240.00 Obj 137170 V 18 00 23.68 +51 17 43.5 -3.824762 +79.08229 32.43401 79.3 +5.0 1025.0 38.0 | ||
137170.20080427.214456 21:45:01.483 240.00 Obj 137170 V 18 00 23.47 +51 17 47.0 -3.754054 +79.84222 31.90855 79.3 +5.0 1025.0 38.0 | ||
137170.20080427.214910 21:49:15.076 240.00 Obj 137170 V 18 00 24.16 +51 17 50.8 -3.684640 +80.59601 31.39141 79.3 +5.0 1025.0 38.0 | ||
137170.20080427.215327 21:53:32.866 240.00 Obj 137170 R 18 00 24.18 +51 17 55.5 -3.610430 +81.41086 30.83719 79.3 +5.0 1025.0 38.0 | ||
137170.20080427.215741 21:57:46.402 240.00 Obj 137170 R 18 00 23.96 +51 17 58.8 -3.543238 +82.15780 30.33451 79.3 +5.0 1025.0 38.0 | ||
137170.20080427.220155 22:01:59.916 240.00 Obj 137170 R 18 00 24.29 +51 18 03.2 -3.472876 +82.94903 29.80698 79.4 +5.0 1025.0 38.0 | ||
137170.20080427.220608 22:06:13.342 240.00 Obj 137170 R 18 00 23.60 +51 18 06.9 -3.401472 +83.76291 29.27083 79.4 +5.0 1025.0 38.0 | ||
137170.20080427.221022 22:10:27.586 240.00 Obj 137170 R 18 00 23.77 +51 18 10.6 -3.332184 +84.56348 28.74975 79.4 +5.0 1025.0 38.0 | ||
137170.20080427.221850 22:18:55.726 240.00 Obj 137170 V 18 00 21.42 +51 18 54.6 -3.186087 +86.27234 27.64291 79.4 +5.0 1025.0 38.0 | ||
137170.20080427.222304 22:23:09.074 240.00 Obj 137170 V 18 00 20.77 +51 18 59.4 -3.116189 +87.11735 27.11521 79.4 +5.0 1025.0 38.0 | ||
137170.20080427.222717 22:27:22.563 240.00 Obj 137170 V 18 00 20.68 +51 19 02.7 -3.045409 +87.98817 26.58071 79.5 +5.0 1025.0 38.0 | ||
137170.20080427.223130 22:31:35.924 240.00 Obj 137170 V 18 00 20.75 +51 19 06.0 -2.975055 +88.86908 26.04913 79.5 +5.0 1025.0 38.0 | ||
137170.20080427.223544 22:35:49.348 240.00 Obj 137170 V 18 00 20.54 +51 19 10.0 -2.903139 +89.78608 25.50548 79.5 +5.0 1025.0 38.0 | ||
137170.20080427.223957 22:40:02.636 240.00 Obj 137170 V 18 00 20.30 +51 19 14.8 -2.831689 +90.71483 24.96519 79.5 +5.0 1025.0 38.0 | ||
137170.20080427.224416 22:44:21.068 240.00 Obj 137170 R 18 00 20.67 +51 19 18.4 -2.764750 +91.60285 24.45925 79.5 +5.0 1025.0 38.0 | ||
137170.20080427.224829 22:48:34.504 240.00 Obj 137170 R 18 00 20.99 +51 19 22.6 -2.690766 +92.60529 23.90027 79.6 +5.0 1025.0 38.0 | ||
137170.20080427.225242 22:52:47.873 240.00 Obj 137170 R 18 00 20.82 +51 19 26.1 -2.620284 +93.58270 23.36827 79.6 +5.0 1025.0 38.0 | ||
137170.20080427.225656 22:57:01.354 240.00 Obj 137170 R 18 00 21.10 +51 19 29.7 -2.553108 +94.53557 22.86169 79.6 +5.0 1025.0 38.0 | ||
137170.20080427.230917 23:09:22.856 240.00 Obj 137170 R 18 00 17.36 +51 20 20.9 -2.343104 +97.64267 21.27652 79.7 +5.0 1025.0 38.0 | ||
137170.20080427.231331 23:13:36.333 240.00 Obj 137170 R 18 00 17.45 +51 20 25.3 -2.271727 +98.76552 20.74233 79.7 +5.0 1025.0 38.0 | ||
137170.20080427.232753 23:27:58.178 240.00 Obj 137170 V 18 00 16.85 +51 20 38.9 -2.032008 +102.80264 18.96198 79.7 +5.0 1025.0 38.0 | ||
137170.20080427.233206 23:32:11.737 240.00 Obj 137170 V 18 00 17.04 +51 20 42.6 -1.960891 +104.09095 18.43905 79.8 +5.0 1025.0 38.0 | ||
137170.20080427.233620 23:36:25.316 240.00 Obj 137170 - 18 00 17.00 +51 20 47.2 -1.890063 +105.42076 17.92104 79.8 +5.0 1025.0 38.0 | ||
137170.20080427.234033 23:40:38.836 240.00 Obj 137170 - 18 00 17.45 +51 20 50.8 -1.819601 +106.79514 17.40922 79.8 +5.0 1025.0 38.0 | ||
137170.20080427.234447 23:44:52.571 240.00 Obj 137170 - 18 00 17.73 +51 20 54.0 -1.751996 +108.16562 16.92172 79.8 +5.0 1025.0 38.0 | ||
----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
Bias frames: 1 | ||
Dark frames: 11 | ||
Flatfield frames: 0 | ||
Object frames: 47 | ||
Objects observed: 1 | ||
|
||
Observations finished at: 23:59 UTC | ||
Temperature: +5.0 degC | ||
Air pressure: 1025.0 hPa | ||
Relative humidity: 38.0 % | ||
Moon elevation: -4.9 deg | ||
Sun elevation: -12.0 deg |
Oops, something went wrong.