https://github.com/cgosmeyer/analysis_tools
Various io, FITS file-handling, conversion, etc. tools for astronomical analysis work.
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
Repository
Various io, FITS file-handling, conversion, etc. tools for astronomical analysis work.
Basic Info
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
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_dirwill 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 '
' ' dir/>' '' ' ' '<orig '
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 anastropy.table.Tableand convert it to acollections.OrderedDict.build_table, which takes columns and column names and creates anastropy.table.Tablebecause I can never remember theastropysyntax (and that "names" is really "colnames", ugh).antitable, which is actually a decorator wrappingdecompose_table. For any function returning anastropy.table.Table, use the dectorator to convert it to acollections.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
- astropy *
- numpy *