Coder Social home page Coder Social logo

mariocannistra / radio-astronomy-fftw Goto Github PK

View Code? Open in Web Editor NEW
31.0 31.0 7.0 26.83 MB

fftw3 based radio-astronomy data collection and dissemination (see project on hackster.io website)

Home Page: https://www.hackster.io/mariocannistra/radio-astronomy-with-rtl-sdr-raspberrypi-and-amazon-aws-iot-45b617

License: MIT License

Gnuplot 3.87% Python 94.73% Shell 1.40%
radio-astronomy rtl-power rtl-sdr sdr

radio-astronomy-fftw's People

Contributors

mariocannistra avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

radio-astronomy-fftw's Issues

Problems using jpredict.py in Australia

Hi Mario,

I've been trying to get jpredict.py to work and I'm not sure if the problems I'm having are because of the fact that I'm in Australia or because the underlying ephem library has changed and no longer correctly works with your program.

If I specify the location in radioConfig.py to be:

stationTimezone = "Australia/Melbourne"
stationLat = "37.97252 S"  # enter your station latitude here with this string format "00.00000 X"  where X is either N or S (North or Sud)
stationLon = "145.49552 E"  # enter your station longitude here with this string format "00.00000 X"  where X is either E or W (East or West)
stationElev = 300   # enter your station elevation in meters (above sea level)

Then after they've been set by:

ephempos.lon  = float(radioConfig.stationLon[0:-2])             #Note that lon should be in string format
ephempos.lat  = float(radioConfig.stationLat[0:-2])             #Note that lat should be in string format

I get what looks like nonsensical values if I print ephem.lon and ephem.lat with:

print (ephempos.lat)
print (ephempos.lon)

as it shows me:

2175:39:54.5
8336:16:45.2

I think there are two reasons for this.

  1. The code doesn't convert southerly values to negative (same for westerly I'd guess).
  2. The pyephem code seem to expect string values, so the float() conversion is probably wrong.

If instead I hardwire in my location to jpredict.py with:

# Quick hack
ephempos.lon = "-37.972525"
ephempos.lat = "145.49555"

which results in correct looking values for my lat/lon

145:29:44.0
-37:58:21.1

I instead get an error from pyephem that says:

ephem.NeverUpError: 'Jupiter' transits below the horizon at 2018/5/5 02:47:13

Which is wrong as Jupiter is visible in the nights sky here at the moment.

Any ideas? I'm not a Python programmer so I'm struggling here.. :-(

Thanks!
Chris

Rename radioConfig.py to radioConfig.py.example

Currently if you edit radioConfig.py to configure your location git will want to track those changes, and should the config file change in future you'll need to resolve that conflict.

It would be cleaner if the file in git was renamed to be radioConfig.py.example so that sites can copy it to be radioConfig.py and then modify it to suite. Then when changes happen they can merge them by hand without disturbing the state of the git repository locally.

How does that sound?

All the best!
Chris

Suggested additions to .gitignore

Hi Mario,
One final idea from myself, when I go "git status" I see:

Untracked files:
  (use "git add <file>..." to include in what will be committed)

        Leap_Second.dat
        de421.bsp
        deltat.data
        deltat.preds
        jup310.bsp
        jup310.bsp.download
        radioConfig.py

It might be an idea to add them to .gitignore to stop git complaining.

All the best!
Chris

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.