{"id":15735778,"url":"https://github.com/simonrw/ngts-error-contributions","last_synced_at":"2025-03-31T04:15:36.971Z","repository":{"id":1864554,"uuid":"2789706","full_name":"simonrw/NGTS-error-contributions","owner":"simonrw","description":"For calculating the NGTS error contributions","archived":false,"fork":false,"pushed_at":"2017-02-17T12:24:44.000Z","size":776,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-06T08:45:20.344Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simonrw.png","metadata":{"files":{"readme":"README.mkd","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-11-16T17:47:09.000Z","updated_at":"2017-02-13T14:51:43.000Z","dependencies_parsed_at":"2022-09-07T15:21:15.483Z","dependency_job_id":null,"html_url":"https://github.com/simonrw/NGTS-error-contributions","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonrw%2FNGTS-error-contributions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonrw%2FNGTS-error-contributions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonrw%2FNGTS-error-contributions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonrw%2FNGTS-error-contributions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonrw","download_url":"https://codeload.github.com/simonrw/NGTS-error-contributions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246413237,"owners_count":20773053,"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-04T01:14:57.306Z","updated_at":"2025-03-31T04:15:36.946Z","avatar_url":"https://github.com/simonrw.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cmeta charset='utf-8'\u003e\u003c/meta\u003e\n\n\n# README\n\nHere I break down what the scripts in this directory do. I may unite them with some form of interface script which is a huge waste of time but will make me feel better.\n\nThe scripts can roughly be broken down into a few categories\n\n* configuration\n* Noise model\n* Saturation estimation\n* Field numbers\n\n\n## Configuration \n\n### Config.py \n\nThis is the settings file for any NGTS specific settings. This sets such things as the read time and sky background.\n\n\n### ConfigWASP.py \n\nThis is the same as `Config.py` but with WASP specific settings\n\n\n\n## Noise model \n\n### ErrorContributions.py \n\nThis plots the noise model contributions for a given `Config`, by assuming an exposure time, calculating the noise contributions and binning up to a configurable total exposure (by default 3600 seconds, 1 hour).\n\nThe main configurable parameter is the magnitude, allowing an exposure time vs fractional error plot to be created.\n\n    usage: ErrorContributions.py [-h] [-o Filename] -m magnitude\n                                 [-s {bright,dark}] [-z ZEROPOINT] [-r RENDER]\n    \n    optional arguments:\n      -h, --help            show this help message and exit\n      -o Filename, --output Filename\n                            Image filename\n      -m magnitude, --targetmag magnitude\n                            Target magnitude\n      -s {bright,dark}, --skylevel {bright,dark}\n                            Sky type (bright or dark\n      -z ZEROPOINT, --zeropoint ZEROPOINT\n                            Custom zero point\n      -r RENDER, --render RENDER\n                            Render tables file\u003e \n\n\n### TheoryNoiseWithBinning.py \n\n(Also including `TheoryNoiseWithBinningWASP.py`)\n\nThis script takes the other slice dimension through the magnitude/exposure time/fractional error cube from `ErrorContributions.py` and takes an exposure time from the user and plots the more normal fractional rms type plot with the noise model and contributions.\n\n\n    usage: TheoryNoiseWithBinning.py [-h] [-t TOTALTIME] -e EXPTIME\n                                     [-s {bright,dark}] [-d DEVICE] [-w] [-n] [-S]\n    \n    optional arguments:\n      -h, --help            show this help message and exit\n      -t TOTALTIME, --totaltime TOTALTIME\n                            Total integration time\n      -e EXPTIME, --exptime EXPTIME\n                            Science exposure time\n      -s {bright,dark}, --skylevel {bright,dark}\n                            Sky type (bright or dark\n      -d DEVICE, --device DEVICE\n                            PGPLOT device\n      -w, --plotwasp        Overlay some WASP staring data\n      -n, --plotngts        Overlay some NGTS prototype data\n      -S, --satlimit        Do not plot saturation limit\n\n\n\n\n## Saturation estimation \n\n### FractionVsCentre.py \n\nCalculate the distribution of fractions in the centre pixel for a psf of given\nsize as the psf is moved away from the centre pixel\n\n### OffsetDistribution.py \n\nMonte-Carlo simulation using the techniques in `FractionVsCentre` to plot the distribution of central pixel flux fractions, to estimate a typical value used in the saturation estimation.\n\n### SaturationVsExposure.py \n\nUsing the noise model, calculate the saturation magnitudes as a function of science exposure time.\n\n\n\n\n\n\n## Field numbers \n\n### HighPrecisionRange.py \u0026 PlotHighPrecisionRange.py \n\nThese calculate and plot (respectively) the high precision range, using data from `SaturationVsExposure` and the 1mmag point from `TheoryNoiseWithBinning` to produce the range at which an object is considered high precision but not saturated.\n\n### NHighPrecisionObjects.py \n\nThis script takes the high precision range from `HighPrecisionRange` and applies it to three fields using NOMAD data stored in the NOMADFields subdirectory. It plots the fraction of high precision objects in each field as a function of exposure time.\n\n### NSaturatedInField.py \n\nPlots the number of saturated objects in the three fields used in this study. Dark and bright time are used.\n\n\n### NumberOfExposures.py \n\nThis calculates the number of exposures we require over a number of years for a given exposure time, and calculates the storage requirements.\n\n\n\n\n## Other \n\n### BatchRun.py \n\nThis runs all scripts.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonrw%2Fngts-error-contributions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonrw%2Fngts-error-contributions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonrw%2Fngts-error-contributions/lists"}