{"id":17113056,"url":"https://github.com/emmt/astronomicaldetectors.jl","last_synced_at":"2025-04-09T21:45:34.230Z","repository":{"id":40242737,"uuid":"422296608","full_name":"emmt/AstronomicalDetectors.jl","owner":"emmt","description":"Julia package for calibrating astronomical detectors","archived":false,"fork":false,"pushed_at":"2023-10-12T10:35:54.000Z","size":57,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-23T23:34:34.850Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Julia","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/emmt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2021-10-28T17:28:53.000Z","updated_at":"2023-02-04T06:57:25.000Z","dependencies_parsed_at":"2024-12-01T02:40:36.586Z","dependency_job_id":"8c551b4a-2067-45a5-99e1-85ac4e9a95ba","html_url":"https://github.com/emmt/AstronomicalDetectors.jl","commit_stats":{"total_commits":25,"total_committers":5,"mean_commits":5.0,"dds":"0.43999999999999995","last_synced_commit":"9ae397b5ff228855c5c0e8c23eb346ba135db16f"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emmt%2FAstronomicalDetectors.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emmt%2FAstronomicalDetectors.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emmt%2FAstronomicalDetectors.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emmt%2FAstronomicalDetectors.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emmt","download_url":"https://codeload.github.com/emmt/AstronomicalDetectors.jl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248119439,"owners_count":21050754,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-14T17:02:38.000Z","updated_at":"2025-04-09T21:45:34.199Z","avatar_url":"https://github.com/emmt.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AstronomicalDetectors [![Build Status](https://travis-ci.com/emmt/AstronomicalDetectors.jl.svg?branch=main)](https://travis-ci.com/emmt/AstronomicalDetectors.jl) [![Build Status](https://ci.appveyor.com/api/projects/status/github/emmt/AstronomicalDetectors.jl?svg=true)](https://ci.appveyor.com/project/emmt/AstronomicalDetectors-jl) [![Coverage](https://codecov.io/gh/emmt/AstronomicalDetectors.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/emmt/AstronomicalDetectors.jl)\n\n`AstronomicalDetectors` is a Julia package to deal with the calibration files\nof astronomical detectors like those of the VLT/Sphere instrument.\n\nExample of usage:\n\n```julia\nusing AstronomicalDetectors, Glob\nlist = scan_calibrations(glob(\"SPHER.2015-12-2*\", dir))\ndata = read(CalibrationData{Float64}, list; roi=(501:580,601:650))\ncalib = ReducedCalibration(data)\n```\n\n## YAML configuration file\n\nTo deal with the numerous configuration of the different instruments, all calibrations files and keywords can be described in a YAML configuration file (see in the [config zoo folder](zoo)).\n\nUsage:\n\n```julia\nusing AstronomicalDetectors, ScientificDetectors\ndata = ReadCalibrationFiles(\"ymlfile.yml\"; dir=\"path/to/calib/folder\")\ncalib = ReducedCalibration(data)\n```\n\nA YAML file should be as follow :\n\n```yaml\nsuffixes: [.fits, .fits.gz,.fits.Z]\ninclude subdirectory: true\nexclude files: M.\n\nexptime: \"ESO DET1 SEQ1 DIT\"\n\nDATE-OBS:\n    min: 2022-04-01\n    max: 2022-04-13T12:24:10.003\n\ncategories:\n  DARK:\n    ESO DPR TYPE: DARK\n    sources: dark\n\n  FLAT:\n    ESO DPR TYPE: FLAT\n    ESO ANOTHER KEYWORD: VALUE\n    dir: my/flat/folder\n    sources: dark + flat\n\n  WAVE:\n    exptime: \"ESO OTHER DIT\"\n    ESO DPR TYPE:  [\"LAMP,WAVE\",\"WAVE,LAMP\"]\n    sources: dark + wave\n```\n\nThe mandatory keywords are:\n\n- `exptime` : the FITS keyword containing the integration time\n- `categories` : lists all calibration categories (e.g. FLAT, DARK,...)\n- `sources` : the sources corresponding to the parent category (mandatory for each category).\n\nIn this example, the calibration files are identified by their `ESO DPR TYPE` keyword.  If several values are allowed, they can be given in a array (as for the `WAVE` category in this example). If several keywords are given (as for the `FLAT` category) all of them must be valid. A date range can also be given, see more info below.\n\nOptional keywords are:\n\n- `dir` :  the folder containing the calibration files (default `pwd`),\n- `files` : list of files or pattern,\n- `suffixes` : suffixes of the files  (default `[.fits, .fits.gz,.fits.Z]`),\n- `include subdirectory` : if `true` parse all subdirectories\n- `exclude files` : patterns of files that must be excluded\n- `hdu` : name of the FITS HDU that contains the data (default `primary`).\n\nAll the keywords given in the root of the file are set for all the categories (as `suffixes` in the example) but this can be overiden by keywords in each category (as `exptime` in the example).\n\nIt is possible to restrict the calibration files by a range of dates:\n```yaml\nDATE-OBS:\n    min: 2022-04-01\n    max: 2022-04-13T12:24:10.003\n```\nOnly files respecting `min \u003c= file[\"DATE-OBS\"] \u003c max` are kept.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femmt%2Fastronomicaldetectors.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femmt%2Fastronomicaldetectors.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femmt%2Fastronomicaldetectors.jl/lists"}