Code Monkey home page Code Monkey logo

astro_scripts's Introduction

Hi there ๐Ÿ‘‹

I'm a former astronomer with research interests in stellar high precision spectroscopy. Now I'm a bioinformatician with an interest in especially somatic sequencing.

Daniel's Github Stats

astro_scripts's People

Contributors

danielandreasen avatar jason-neal avatar pyup-bot avatar snyk-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

astro_scripts's Issues

Add UVES to plot_fits

Here is a sample that might help read UVES data

def read_uves(filename):
    hdulist = pyfits.open(filename)
    header = hdulist[0].header #read header
    spec = hdulist['SPECTRUM'].data
    wave = spec['WAVE'][0]
    flux = spec['FLUX_REDUCED'][0]
    return wave, flux

Detect fits instrument / help text hidden behind boxes in gooey

It could be easier for quick excecution if plot_fits.py detected the instrument type in the header instead of the drop down list.

Having it default to ARES I have missed changing it to CRIRES in a hurry and therefore get the error.

Traceback (most recent call last):
  File "..Repos/astro_scripts/plot_fits.py", line 566, in <module>
    main(fname, **opts)
  File "..Repos/astro_scripts/plot_fits.py", line 334, in main
    w = get_wavelength(hdr)
UnboundLocalError: local variable 'hdr' referenced before assignment

The CRIRES header has a value INSTRUMENT= 'CRIRES' (I assume ARES would be similar), which would be simple enough to check for example something like ...

if hdr["INSTRUMENT"] is "CRIRES ":
    do this    
elif hdr["INSTRUMENT"] is "ARES":
    do that

Also a bug:
The help text gets hidden behind the Gooey boxes for model and lines. Also a spelling mistake in model help.

Wiki/homepage

Since some of the scripts is working nice, maybe a web page with tutourials and examples would be nice, so other people start using it.

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.