{"id":38903941,"url":"https://github.com/cgosmeyer/analysis_tools","last_synced_at":"2026-01-17T15:05:41.163Z","repository":{"id":275072755,"uuid":"75637045","full_name":"cgosmeyer/analysis_tools","owner":"cgosmeyer","description":"Various io, FITS file-handling, conversion, etc. tools for astronomical analysis work. ","archived":false,"fork":false,"pushed_at":"2017-07-26T17:50:18.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-10T00:31:50.135Z","etag":null,"topics":["astronomy","decorators","fits-files","io","nosetests"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cgosmeyer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-05T15:15:08.000Z","updated_at":"2017-06-27T18:37:13.000Z","dependencies_parsed_at":"2025-01-31T02:35:19.950Z","dependency_job_id":"b6433c43-7ce0-4b88-8194-cf20dd9f65a6","html_url":"https://github.com/cgosmeyer/analysis_tools","commit_stats":null,"previous_names":["cgosmeyer/analysis_tools"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cgosmeyer/analysis_tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cgosmeyer%2Fanalysis_tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cgosmeyer%2Fanalysis_tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cgosmeyer%2Fanalysis_tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cgosmeyer%2Fanalysis_tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cgosmeyer","download_url":"https://codeload.github.com/cgosmeyer/analysis_tools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cgosmeyer%2Fanalysis_tools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28510928,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["astronomy","decorators","fits-files","io","nosetests"],"created_at":"2026-01-17T15:05:40.210Z","updated_at":"2026-01-17T15:05:41.151Z","avatar_url":"https://github.com/cgosmeyer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# analysis_tools\nVarious io, FITS file-handling, conversion, etc. tools for astronomical analysis work. \n\n## convert\nTime and unit conversions, often just wrapping `astropy` functions in a format I can better remember. \n\n## dir\nModules for handling directories. \n\n* `make_timestamp_dir` will create a directory that is \"time-stamped\" to the current time as YYYY.MM.DD.\n\n## fits\nModules for handling FITS files. Many of these can be not only imported, but also executed on the command line.\n```\n# To move FITS files based on a header key value:\n\u003e\u003e\u003e python fetch_fits_by_keyvalue.py '\u003ckeyvalue\u003e' '\u003ckeyword\u003e' '\u003cfits type\u003e' '\u003corig_dir/\u003e' '\u003cdest_dir/\u003e'\n\n# To print the key value of a given keyword, 'filter', for example:\n\u003e\u003e\u003e python get_keyval.py --f 'example.fits' --kw 'filter'\n\n# To print out the HST dataset name of all FITS files in a directory:\n\u003e\u003e\u003e python get_datasetname.py\n\n# To sort your FITS files by a keyword, so that they will be stored in directories named for that keyword:\n\u003e\u003e\u003e python sort_fits_by_keyword.py '\u003ckeyword\u003e'\n```\n\n## io\nMiss IDL's `readcol` and `writecol`?  Try `io.readcol` and `io.writecol`.  \nYou 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. \n\n## jitter\nSome plotting and analysis scripts for the `JIF` and `JIT` engineering FITS files for the HST/WFC3 instrument. \n\n## statistics\nStatistics is probably too dignified of a word for what's in here. For taking means, clipping, errors, and such. \n\n## tables\nReady to burn `astropy.table`?  In `tables.bybass_table` find the functions\n\n* `decompose_table`, which will take an `astropy.table.Table` and convert it to a `collections.OrderedDict`.\n\n* `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).  \n\n* `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. \n\n```\n    @antitable\n    out = function_creating_table(args)  # \"out\" is now an OrderedDict\n```\n\n## where\nPlaying with `np.where`, looking for ways to wrap it to be more IDL-like.  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcgosmeyer%2Fanalysis_tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcgosmeyer%2Fanalysis_tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcgosmeyer%2Fanalysis_tools/lists"}