Giter Club home page Giter Club logo

astronomydatasetforml's Introduction

This is the early project of cs 289 in Fall 2020.

In this dataset, we used some modern datasets from NASA and processed them into the format used by Liu Hong. Our dataset is catered for further exploring the ideological source of Liu Hong's study, and constructing a mathematical prediction model with modern Machine Learning techniques.

We first collected the moon ephemerides data from NASA HORIZONS System. The main entries of concern include date, right ascension, and declination of the Moon with respect to the observing site in the International Celestial Reference Frame. The dates we used are from 2019-Oct-21 to 2020-Oct-20. In order to cover cities of different latitudes and longitudes, we choose as the observing sites:

  • Adelaide, Australia (138°35'00.0''E, 34°55'00.0''S);
  • Beijing, China (116°22'59.9''E, 39°54'59.8''N);
  • Addis Ababa, Ethiopia (38°43'59.9''E, 9°00'00.0''N);
  • London, England ( 0°07'00.1''W, 51°30'00.0''N);
  • Brasilia, Brazil (47°55'00.1''W, 15°52'00.1''S); and
  • Berkeley, CA (122°16'15.6''W, 37°52'09.8''N).

Input data

Name Description
TIME UTC times for observation, YYYY-Mon-DD HH:MM e.g.2020-Oct-20 00:00
R.A. Astrometric right ascension of the target center with respect to the observing site (coordinate origin) in the reference frame of the planetary ephemeris (ICRF).RA in hours-minutes-seconds of time, HH MM SS.ff{ffff}
DEC Declination of the target center. DEC in degrees-minutes-seconds of arc, sDD MN SC.f{ffff}
dRA*cosD/dt The angular rate of change in aparent RA of the target
d(DEC)/dt The angular rate of change in aparent DEC of the target
APmag Moon's approximate apparent visual magnitude
S-brt Moon's approximate surface brightness

Output data

The time for each day is 00:00 UTC.

Name Description
DATE UTC time for observation YYYY-Mon-Day
RA in arc degrees
DEC in arc degrees
Parts Parts of Lunar Motion, gives the Moon’s daily motion in (1/19) du in Liu Hong’s table and in arc degrees in our dataset.
dRA daily RA change
dDEC daily DEC change
RLI Rate of Lessening or Increase (RLI), gives the difference between Parts of Lunar Motion and the mean daily motion of 254/19 du in Liu Hong’s table and in arc degrees in our data
CRLI Cummulative Rate of Lessening or Increase, gives the accumulated sum of the RLI

11/6 Update

We modified generate_csv.py from Team JNA to make the data generation process more automatic. By procedurally sending an email request to the Horizons system, it allows easy customizability with regards to observer location and time frame. Users may change the following parameters:

username = "[email protected]"
password = ''  # can also hardcode the pwd
site_coord = "'116.383300,39.9166000,0.0000000'" # Set observation site, e.g. Beijing's coord is used here
start_time = "'2019-10-21'"
stop_time = "'2020-10-20'"
output_name = 'Beijing' 

Note: site_coord needs to be the coordinate of an observatory that is in the Horizons database, e.g. the six cities we listed above. Users may want to refer to the website to see the available site candidates.

The output is the daily observation of lunar movements. It contains 3 columns: Date and time in UTC, astrometric RA and DEC.

The file data_process.py is created to standardize the data processing procedure. It takes a filename as input (which should be the output from generate_csv.py) and generates the processed dataset.

The former Data Process.ipynb was renamed as data_visualization.ipynb since its function is only left with visualizing the datasets we generated before.

Example of Usage

Get raw data from Horizon: (don't forget to rename output file name)

python3 generate_csv.py

python3 data_process.py Beijing.csv

The output file should be named as data_Beijing.csv.

Contributors

Chenhui Hao, Kaijing Ding, Ke Liu and Zishan Cheng

astronomydatasetforml's People

Contributors

zcheng233 avatar haochenhui97 avatar kesusan avatar kaijingd avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.