Coder Social home page Coder Social logo

jlvdb / theliwrapper Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 214.83 MB

Command line wrapper for the THELI package for automated astronomical data reduction

License: GNU General Public License v3.0

Python 87.80% Shell 12.20%
astronomical-algorithms astronomical-images astronomy

theliwrapper's People

Contributors

jlvdb avatar

Watchers

 avatar  avatar

theliwrapper's Issues

jobs

Give name from GUI check box as headline in help

class Folder _index updating

##################  SCIENCE  ####################################################
Session info:       version 0.5.3, 4/4 CPU(s), 23 FRAMES
Instrument:         ACAM@WHT
Main folder:        /.../NewFolder
Bias folder:        BIAS
Flat folder:        FLAT
Science folder:     SCIENCE

> Splitting FITS, correcting headers (bias)
> Splitting FITS, correcting headers (flat)
> Splitting FITS, correcting headers (science)

> Processsing BIASes

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/astropy/io/fits/file.py", line 118, in __init__
    self.name, _ = urllib.request.urlretrieve(fileobj)
  File "/usr/lib/python3.4/urllib/request.py", line 186, in urlretrieve
    with contextlib.closing(urlopen(url, data)) as fp:
  File "/usr/lib/python3.4/urllib/request.py", line 161, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.4/urllib/request.py", line 448, in open
    req = Request(fullurl, data)
  File "/usr/lib/python3.4/urllib/request.py", line 266, in __init__
    self.full_url = url
  File "/usr/lib/python3.4/urllib/request.py", line 292, in full_url
    self._parse()
  File "/usr/lib/python3.4/urllib/request.py", line 321, in _parse
    raise ValueError("unknown url type: %r" % self.full_url)
ValueError: unknown url type: '/.../NewFolder/FLAT/r2293572.fit'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/.../bin/TheliWrapper/theli.py", line 20, in <module>
    getattr(project, job["func"])(*jobargs)
  File "/.../bin/TheliWrapper/system/reduction.py", line 524, in process_flats
    self.check_filters()
  File "/.../bin/TheliWrapper/system/reduction.py", line 201, in check_filters
    new = dfolder.filters()
  File "/.../bin/TheliWrapper/system/folder.py", line 166, in filters
    os.path.join(self.abs, f), ["FILTER"])[0])
  File "/.../bin/TheliWrapper/system/base.py", line 160, in get_FITS_header_values
    with pyfits.open(file) as fits:
  File "/usr/lib/python3/dist-packages/astropy/io/fits/hdu/hdulist.py", line 116, in fitsopen
    return HDUList.fromfile(name, mode, memmap, save_backup, **kwargs)
  File "/usr/lib/python3/dist-packages/astropy/io/fits/hdu/hdulist.py", line 248, in fromfile
    save_backup=save_backup, **kwargs)
  File "/usr/lib/python3/dist-packages/astropy/io/fits/hdu/hdulist.py", line 759, in _readfrom
    ffo = _File(fileobj, mode=mode, memmap=memmap)
  File "/usr/lib/python3/dist-packages/astropy/io/fits/file.py", line 126, in __init__
    raise IOError('File does not exist: %r' % fileobj)
OSError: File does not exist: '/.../NewFolder/FLAT/r2293572.fit'

TODO

-- implement photometry
-- header update/restore
-- const. sky subtraction helper
-- xtalk: verify ButtonIDs, better help, ...
-- revise help strings
-- identify unmatched parameters
-- extensive parameter testing
-- test MIR/NIR data, sequence handling, link creation/resolving

change list_filters implementation

list_filters does not work, if the instrument is not implemented explicitly. This will cause Reduction.init to terminate stating taht no valid FITS files are in the current folder

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.