Last change
on this file since 19713 was 19518, checked in by Daniela Dorner, 5 years ago |
added (script to plot visibility)
|
-
Property svn:executable
set to
*
|
File size:
1.1 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | export LC_ALL="en_US.UTF-8"
|
---|
4 |
|
---|
5 | ra=$1
|
---|
6 | dec=$2
|
---|
7 | name=$3
|
---|
8 |
|
---|
9 | date=`date +%d-%m-%Y`
|
---|
10 |
|
---|
11 | echo $date": "$name
|
---|
12 | echo "RA: "$ra" deg"
|
---|
13 | echo "Dec: "$dec" deg"
|
---|
14 |
|
---|
15 | rah=`echo " $ra / 360.0 * 24.0 " | bc -l `
|
---|
16 | echo "RA: "$rah" h"
|
---|
17 |
|
---|
18 | rahh=`echo $rah | cut -d. -f1`
|
---|
19 | #echo "RA: "$rahh
|
---|
20 |
|
---|
21 | ram=`echo " ( $rah - $rahh )*60 " | bc -l`
|
---|
22 | ramm=`echo $ram | cut -d. -f1`
|
---|
23 |
|
---|
24 | ras=`echo " ( $ram - $ramm ) * 60 " | bc -l`
|
---|
25 | rass=`echo $ras | cut -d. -f1`
|
---|
26 | rasr=`printf "%0.2f" $ras `
|
---|
27 |
|
---|
28 | echo "RA: "$rahh":"$ramm":"$rasr
|
---|
29 |
|
---|
30 | decdd=`echo $dec | cut -d. -f1`
|
---|
31 | decm=`echo " ( $dec - $decdd )*60 " | bc -l`
|
---|
32 | decmm=`echo $decm | cut -d. -f1`
|
---|
33 | decs=`echo " ( $decm - $decmm )*60 " | bc -l`
|
---|
34 | decsr=`printf "%0.2f" $decs `
|
---|
35 |
|
---|
36 | echo "Dec: "$decdd":"$decmm":"$decsr
|
---|
37 |
|
---|
38 | #if [ "$short"=="yes" ]
|
---|
39 | #then
|
---|
40 | # exit
|
---|
41 | #fi
|
---|
42 |
|
---|
43 | link="http://tevcat.uchicago.edu/visplot.cgi?tname="$name"&ra="$rahh"%20"$ramm"%20"$rasr"&dec="$decdd"%20"$decmm"%20"$decsr"&lat=28.76&date="$date"&lon=-17.88&mode=1"
|
---|
44 |
|
---|
45 | firefox -new-window $link
|
---|
46 |
|
---|
47 | sleep 3
|
---|
48 |
|
---|
49 | winnum=`xwininfo -tree -root | grep TeVCat | grep -E -o '\ [0-9a-z]{9}\ '`
|
---|
50 | screenshot=$HOME/Pictures/vis$name-auto.png
|
---|
51 | import -window $winnum $screenshot
|
---|
52 | echo "find a screenshot of the visibility at "$screenshot
|
---|
53 |
|
---|
54 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.