Skip to content

Instantly share code, notes, and snippets.

@matshofman
matshofman / gist:4150213
Created November 26, 2012 19:48
Star data to JSON
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace RADECtoALTAZ
@matshofman
matshofman / gist:4145718
Created November 25, 2012 22:41
RA Dec to Alt Az converter
using System;
namespace RaDecToAltAz
{
/// <summary>
/// Explenation of the calculations at http://www.stargazing.net/kepler/altaz.html
/// </summary>
class RaDecToAltAz
{
double RA = 250.425; // 16 h 41.7 m * 15