telescope-term 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/telescope +20 -17
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ec5fe7e67a8718b893359293e5effc26ab0231dbb1140f9e7a3bcd27daaf595
|
4
|
+
data.tar.gz: 2843d0b8045b3a9792c8da5da2fcec973bf52a5157dd704ef7d42ac87ac2d057
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0b2674b2f1a89074cf8a07da2bf519bf9c3bec13b75b1162331b174dbf55386e4224d8167707a9d6febcebb61da7dd75e13eeeeda6eafc30b367d45619c20bd
|
7
|
+
data.tar.gz: 5cc9d3afc791fa9faa5e8c8aa27471404422dff3d5657ec99c1f030077ff49e184d08b075768caa6b1ca555bf520e3ee824a6b5233d006ef2841f5b9da81c8fd
|
data/bin/telescope
CHANGED
@@ -55,6 +55,9 @@ class Numeric # NUMERIC CLASS EXTENSION
|
|
55
55
|
def deg
|
56
56
|
self * Math::PI / 180
|
57
57
|
end
|
58
|
+
def dec2
|
59
|
+
"%.2f" % self
|
60
|
+
end
|
58
61
|
end
|
59
62
|
class Curses::Window # CLASS EXTENSION
|
60
63
|
# General extensions (see https://github.com/isene/Ruby-Curses-Class-Extension)
|
@@ -389,36 +392,36 @@ def w_ts_show
|
|
389
392
|
attr = Curses::A_BOLD
|
390
393
|
attr = attr | Curses::A_REVERSE if @tsmark == i
|
391
394
|
attr = attr | Curses::A_UNDERLINE if @tstag.include?(i)
|
392
|
-
@w_ts.pa(254, 0, attr, out)
|
395
|
+
@w_ts.pa(254, 0, attr, out) # Basic info (Name, APP, FL)
|
393
396
|
out = (f.to_f/d.to_f).truncate(1).to_s.rjust(6)
|
394
|
-
@w_ts.pa(254, 0, 0, out)
|
397
|
+
@w_ts.pa(254, 0, 0, out) # F/?
|
395
398
|
out = (5 * Math::log(d/10, 10) + 7.5).truncate(1).to_s.rjust(6)
|
396
|
-
@w_ts.pa(229, 0, 0, out)
|
399
|
+
@w_ts.pa(229, 0, 0, out) # <MAG
|
397
400
|
out = (d**2/49).to_i.to_s.rjust(6)
|
398
|
-
@w_ts.pa(229, 0, 0, out)
|
401
|
+
@w_ts.pa(229, 0, 0, out) # xEYE
|
399
402
|
out = magx(d, f, 1/7.to_f)
|
400
|
-
@w_ts.pa(194, 0, 0, out)
|
403
|
+
@w_ts.pa(194, 0, 0, out) # MINx
|
401
404
|
out = magx(d, f, 2)
|
402
|
-
@w_ts.pa(194, 0, 0, out)
|
405
|
+
@w_ts.pa(194, 0, 0, out) # MAXx
|
403
406
|
out = magx(d, f, 1/6.4)
|
404
|
-
@w_ts.pa(189, 0, 0, out)
|
407
|
+
@w_ts.pa(189, 0, 0, out) # *FIELD
|
405
408
|
out = magx(d, f, 1/3.6)
|
406
|
-
@w_ts.pa(189, 0, 0, out)
|
409
|
+
@w_ts.pa(189, 0, 0, out) # GX/NEB
|
407
410
|
out = magx(d, f, 1/2.1)
|
408
|
-
@w_ts.pa(189, 0, 0, out)
|
411
|
+
@w_ts.pa(189, 0, 0, out) # PL/GCL
|
409
412
|
out = magx(d, f, 1/1.3)
|
410
|
-
@w_ts.pa(189, 0, 0, out)
|
413
|
+
@w_ts.pa(189, 0, 0, out) # PLd/2*
|
411
414
|
out = magx(d, f, 1/0.7)
|
412
|
-
@w_ts.pa(189, 0, 0, out)
|
413
|
-
out = (115.824/d).truncate(2).to_s.rjust(7)
|
414
|
-
@w_ts.pa(219, 0, 0, out)
|
415
|
-
out = (3600*Math::asin(671E-6/d)*180/Math::PI).truncate(2).to_s.rjust(8)
|
416
|
-
@w_ts.pa(219, 0, 0, out)
|
415
|
+
@w_ts.pa(189, 0, 0, out) # TGHT2*
|
416
|
+
out = (115.824/d).truncate(2).dec2.to_s.rjust(7)
|
417
|
+
@w_ts.pa(219, 0, 0, out) # DL-SEP
|
418
|
+
out = (3600*Math::asin(671E-6/d)*180/Math::PI).truncate(2).dec2.to_s.rjust(8)
|
419
|
+
@w_ts.pa(219, 0, 0, out) # RC-SEP
|
417
420
|
moon = (384E6*Math::tan((Math::PI/180*115.824/d)/3600))
|
418
421
|
out = moon.to_i.to_s.rjust(6) + "m"
|
419
|
-
@w_ts.pa(225, 0, 0, out)
|
422
|
+
@w_ts.pa(225, 0, 0, out) # MOON
|
420
423
|
out = (moon/2.5668).to_i.to_s.rjust(5) + "km"
|
421
|
-
@w_ts.pa(225, 0, 0, out)
|
424
|
+
@w_ts.pa(225, 0, 0, out) # SUN
|
422
425
|
@w_ts.p("\n")
|
423
426
|
end
|
424
427
|
@w_ts.clr_from_cur_line
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: telescope-term
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geir Isene
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-11-
|
11
|
+
date: 2021-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: curses
|
@@ -32,8 +32,8 @@ dependencies:
|
|
32
32
|
version: 1.3.2
|
33
33
|
description: 'With this program you can list your telescopes and eyepieces and get
|
34
34
|
a set of calculations done for each scope and for the combination of scope and eyepiece.
|
35
|
-
Easy interface. Run the program, then hit ''?'' to show the help file. New in v0.5.
|
36
|
-
|
35
|
+
Easy interface. Run the program, then hit ''?'' to show the help file. New in v0.5.2:
|
36
|
+
Minor fixes.'
|
37
37
|
email: g@isene.com
|
38
38
|
executables:
|
39
39
|
- telescope
|