https://github.com/cgosmeyer/analysis_tools

Various io, FITS file-handling, conversion, etc. tools for astronomical analysis work.

https://github.com/cgosmeyer/analysis_tools

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (8.9%) to scientific vocabulary

Keywords

astronomy decorators fits-files io nosetests
Last synced: 5 months ago · JSON representation

Repository

Various io, FITS file-handling, conversion, etc. tools for astronomical analysis work.

Basic Info
  • Host: GitHub
  • Owner: cgosmeyer
  • License: mit
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 36.1 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
astronomy decorators fits-files io nosetests
Created about 9 years ago · Last pushed over 8 years ago
Metadata Files
Readme License

README.md

analysis_tools

Various io, FITS file-handling, conversion, etc. tools for astronomical analysis work.

convert

Time and unit conversions, often just wrapping astropy functions in a format I can better remember.

dir

Modules for handling directories.

  • make_timestamp_dir will create a directory that is "time-stamped" to the current time as YYYY.MM.DD.

fits

Modules for handling FITS files. Many of these can be not only imported, but also executed on the command line. ```

To move FITS files based on a header key value:

python fetchfitsbykeyvalue.py '' '' '' '<origdir/>' ''

To print the key value of a given keyword, 'filter', for example:

python get_keyval.py --f 'example.fits' --kw 'filter'

To print out the HST dataset name of all FITS files in a directory:

python get_datasetname.py

To sort your FITS files by a keyword, so that they will be stored in directories named for that keyword:

python sortfitsby_keyword.py '' ```

io

Miss IDL's readcol and writecol? Try io.readcol and io.writecol.
You can set the line number (not counting blank lines) that a header begins and the data begins. For funzies, I wrote nosetests in the "tests" directory for these functions.

jitter

Some plotting and analysis scripts for the JIF and JIT engineering FITS files for the HST/WFC3 instrument.

statistics

Statistics is probably too dignified of a word for what's in here. For taking means, clipping, errors, and such.

tables

Ready to burn astropy.table? In tables.bybass_table find the functions

  • decompose_table, which will take an astropy.table.Table and convert it to a collections.OrderedDict.

  • build_table, which takes columns and column names and creates an astropy.table.Table because I can never remember the astropy syntax (and that "names" is really "colnames", ugh).

  • antitable, which is actually a decorator wrapping decompose_table. For any function returning an astropy.table.Table, use the dectorator to convert it to a collections.OrderedDict. For funzies.

@antitable out = function_creating_table(args) # "out" is now an OrderedDict

where

Playing with np.where, looking for ways to wrap it to be more IDL-like.

GitHub Events

Total
Last Year

Dependencies

setup.py pypi
  • astropy *
  • numpy *