I hereby claim:
- I am aquatiko on github.
- I am rkumar_yb (https://keybase.io/rkumar_yb) on keybase.
- I have a public key ASBstspHbIEk5_nvVI_2_ixrJVfyX4zaZPeKIcNV4pwJDwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
package main | |
import ( | |
"bufio" | |
"bytes" | |
"fmt" | |
"net" | |
"os/exec" | |
"strconv" | |
"time" |
# first of all import the socket library | |
import socket | |
import os | |
# next create a socket object | |
s = socket.socket() | |
print("Socket successfully created") | |
# reserve a port on your computer in our | |
# case it is 12345 but it can be anything |
using AstroImages, GtkReactive, Gtk.ShortNames, Graphics, Gtk, Colors, IntervalSets, Cairo | |
using AstroImages: render | |
using WCS, FITSIO | |
function ui(img::AstroImage, indx = 1) | |
header = WCS.to_header(img.wcs[indx]) | |
win = Window("Image", 700,700) | |
g = Grid() | |
push!(win, g) | |
using SkyCoords: lon, lat | |
using FITSIO, WCS, SkyCoords, Interpolations | |
function wcs_to_celestial_frame(wcs::WCSTransform) | |
if wcs.latpole == -1 && wcs.lonpole == -1 # or lat/lng ? | |
return nothing | |
end | |
radesys = wcs.radesys | |
if !isnan(wcs.equinox) | |
equinox = wcs.equinox |
# creates a zoom-able window with feature to view coordinate of AstroImage by hovering mouse over it | |
using AstroImages, GtkReactive, Gtk.ShortNames, Graphics, Gtk, Colors, IntervalSets, Cairo | |
using AstroImages: render | |
function ui(img::AstroImage{T,C}) where {T,C} | |
win = Window("Image") | |
g = Grid() | |
push!(win, g) | |
l1 = Label("X =") | |
l2 = Label("Y =") | |
g[1,2] = l1 |