{ "info": { "author": "Andrej Prsa", "author_email": "aprsa@villanova.edu", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Environment :: X11 Applications", "Intended Audience :: Science/Research", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Topic :: Scientific/Engineering :: Astronomy", "Topic :: Scientific/Engineering :: Information Analysis", "Topic :: Scientific/Engineering :: Mathematics" ], "description": "Detrending Periodic Signals (dips)\n==================================\n\n_dips_ is an algorithm for detrending timeseries of strictly periodic signals. It does not assume any functional form for the signal or the background or the noise; it disentangles the strictly periodic component from everything else. We use it in astronomy for detrending _Kepler_, _K2_ and _TESS_ timeseries of periodic variable stars, eclipsing binary stars, exoplanets etc. The algorithm is described in detail in Prsa et al. (2019), PASP, in review -- the reference will be updated shortly.\n\nThis repository contains a python implementation of _dips_.\n\nPre-requisites\n--------------\n\nTo run _dips_, you will need:\n\n* python\n* numpy\n* scipy\n\nNote that you will need python 3.3 or later to enable multiprocessing. All examples below assume that you have python 3.3 or later installed.\n\nInstallation\n------------\n\nThe `dips` program is available from pip. To install, run `pip3 install dips` for a local install, or `sudo pip3 install dips` for a global install.\n\nIf you prefer to install `dips` manually, grab the tarball from github, extract it and run `python3 setup.py install` in the top-level `dips` directory (local install), or `sudo python3 setup.py install` in the top-level `dips` directory (global install).\n\nRunning _dips_\n--------------\n\nThe _dips_ program is run from the command line. It takes a filename with the timeseries as input and computes the disentangled synchronous and asynchronous components of the signal as output. The disentangling process is iterative and might take an appreciable amount of time, depending on data length and pdf bin size.\n\nRun _dips_ with:\n\n`dips.py [-h] [-V] [-b BINS] [-t0 ORIGIN] [-P PERIOD] [-l LOGFILE] [-eta TOLERANCE] [-dxk DIFFERENCE] [-xi STEP_SIZE] [-af ATTENUATION] [--allow-upstep] [--cols COLS [COLS ...]] [--disable-mp] [--initial-pdf INITIAL_PDF] [--interim-prefix INTERIM_PREFIX] [--jitter JITTER] [--output-prefix OUTPUT_PREFIX] [--renormalize] [--save-interim SAVE_INTERIM] [--yonly] finput`\n\nThe arguments are summarized in the table below.\n\n| Argument | Usage | Type | Default value |\n|----------|-------|------|---------------|\n| -h, --help | print out the help message and exit | n/a | n/a |\n| -V, --version | print dips version and exit | n/a | n/a |\n| -b BINS, --bins BINS | assign the number of synchronous pdf bins | int | 200 |\n| -t0 ORIGIN, --origin ORIGIN | the zero-point of the timeseries | float | 0.0 |\n| -P PERIOD, --period PERIOD | period of the synchronous signal | float | 1.0 |\n| -l LOGFILE, --logfile LOGFILE | log file to send output to instead of screen | str | None |\n| -eta TOLERANCE, --tolerance TOLERANCE | tolerance for convergence | float | 1e-8 |\n| -dxk DIFFERENCE, --difference DIFFERENCE | finite difference size for computing slopes | float | 2e-5 |\n| -xi STEP_SIZE, --step-size STEP_SIZE | initial down-step multiplier | float | 1e-3 |\n| -af ATTENUATION, --attenuation ATTENUATION | attenuation factor for xi | float | 0.9 |\n| --allow-upstep | allow step size to increase during convergence | bool | False |\n| --cols COL1 COL2 \\[COL3\\] | a list of input columns to be parsed, starting from 0 | list of ints | 0 1 |\n| --disable-mp | disable multiprocessing (force serial computation) | bool | False |\n| --initial-pdf | choice of pdf initialization ('flat', 'mean', 'median', 'random', or external filename) | str | 'median' |\n| --interim-prefix | filename prefix for interim results | str | finput |\n| --normalize-data | normalize input data by median-dividing the fluxes | bool | False |\n| --output_prefix PREFIX | filename prefix for saving results (PREFIX.signal, .trend, .ranges) | str | finput |\n| --renormalize | force pdf normalization to 1 after every iteration | bool | False |\n| --save-interim STEP | save intering solutions every STEP iterations | int | 0 |\n| --yonly | use only y-distance instead of full euclidian distance | bool | False |\n\nDistributed with _dips_ (in the tarball's `examples` directory) are three example input files, `synthetic.data`, `kic3953981_sap.data` and `kic3547874_sap.data`.\n\nTo run _dips_ on synthetic data (see [here](http://keplerEBs.villanova.edu/includes/DPS/dps_synthetic.html) how the data were created) by using 33 bins, per-bin means as the initial pdf, and with serial calculation (disabling multiprocessing), issue:\n\n```bash\ndips synthetic.data -b 33 -P 0.91 --initial-pdf mean --disable-mp\n```\n\nTo run _dips_ on an eclipsing binary [KIC 3953981](http://keplerEBs.villanova.edu/overview/?k=3953981), using 101 bins, allowing the step size to increase, using per-bin data median as the initial pdf, renormalizing the pdf after each iteration, using only y-direction length and saving every 10th iteration, issue:\n\n```bash\ndips kic3953981_sap.data -b 101 -t0 54953.82253243 -P 0.49201716 --allow-upstep --initial-pdf median --save-interim 10 --interim-prefix eb --renormalize --yonly\n```\n\nFinally, to run _dips_ on a heartbeat star [KIC 3547874](http://keplerEBs.villanova.edu/overview/?k=3547874), using 200 bins, starting with a flat pdf, computing total length in the y-direction only, renormalizing the synchronous pdf to 1.0 after each iteration, and allowing the step size to increase, issue:\n\n```bash\ndips kic3547874_sap.data --cols 0 2 -t0 54989.4209 -P 19.6921722 -b 200 --yonly --initial-pdf flat --renormalize --allow-upstep\n```\n\nThese examples should provide a basic idea of how to invoke _dips_.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/aprsa/dips", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "dips", "package_url": "https://pypi.org/project/dips/", "platform": "", "project_url": "https://pypi.org/project/dips/", "project_urls": { "Homepage": "https://github.com/aprsa/dips" }, "release_url": "https://pypi.org/project/dips/0.2.0/", "requires_dist": [ "numpy", "scipy (>=0.13.0)" ], "requires_python": "", "summary": "dips: detrending periodic signals", "version": "0.2.0" }, "last_serial": 4952116, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "8541c556cd1fe4f20afa31925527be45", "sha256": "43ad8627fc1e8a063810fe6fa8150d8f8965b8430ee6be4c13b36f56428bff7d" }, "downloads": -1, "filename": "dips-0.1.0-py3.6.egg", "has_sig": false, "md5_digest": "8541c556cd1fe4f20afa31925527be45", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 11016, "upload_time": "2019-02-20T21:40:16", "url": "https://files.pythonhosted.org/packages/1a/52/148fa197c27e6a1aac53a1736d0b5f4064974b7e4228047d2154aa6a4730/dips-0.1.0-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "3a1d24caf156ce386080bd200fdb3e3d", "sha256": "713b0fb190de238d213a5c9afa2ce0cc439e73ab37c46233023f55a6488d8a11" }, "downloads": -1, "filename": "dips-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "3a1d24caf156ce386080bd200fdb3e3d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 19736, "upload_time": "2019-02-20T21:40:14", "url": "https://files.pythonhosted.org/packages/6a/d9/68ccc1fcdc3bf3fb30dcb84085d9bc63b5b46cca1d8ebd1c18b5f424d74b/dips-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "89c8a7d02384026945e01a8b8c102f2b", "sha256": "27feba9c5d63591254e5ba328616764a43750cb7521c41724470d7dbf25627f3" }, "downloads": -1, "filename": "dips-0.1.0.tar.gz", "has_sig": false, "md5_digest": "89c8a7d02384026945e01a8b8c102f2b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1824663, "upload_time": "2019-02-20T21:40:18", "url": "https://files.pythonhosted.org/packages/80/09/510d829228a6775025c2b54884382a95d9499941b80bd6849c077cb85fb8/dips-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "14421ba5b246d5c9ee6240ea8373b865", "sha256": "4db864645ad5993f4812e4138785ac95c51bccdac6d80b6facda08fb7c49a282" }, "downloads": -1, "filename": "dips-0.2.0-py2-none-any.whl", "has_sig": false, "md5_digest": "14421ba5b246d5c9ee6240ea8373b865", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 11354, "upload_time": "2019-03-18T03:20:26", "url": "https://files.pythonhosted.org/packages/2b/96/5e2c0a63361cc8d570cd9d48611f3a7abf7fdcd2868b2f6c7d21657e9475/dips-0.2.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "643b593f270a1da3b28e0050fea4fe84", "sha256": "a57742d5d59e749de63eabbf84b0164312001cc40d97517df5e4856190151cbd" }, "downloads": -1, "filename": "dips-0.2.0-py3.6.egg", "has_sig": false, "md5_digest": "643b593f270a1da3b28e0050fea4fe84", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 11943, "upload_time": "2019-03-18T03:20:30", "url": "https://files.pythonhosted.org/packages/78/03/281fdc0cbc0525f494ea6e4e7f624c4ff5b8acb16b87f437d22f13918a63/dips-0.2.0-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "2861c4f03de4cb32deccd3105bf96422", "sha256": "d0bacb95c812c513c892a9b62b226280a7b4b8c08ae51db5c5ce62fd84f169ca" }, "downloads": -1, "filename": "dips-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "2861c4f03de4cb32deccd3105bf96422", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 20407, "upload_time": "2019-03-18T03:20:28", "url": "https://files.pythonhosted.org/packages/c9/ca/52933e95cdd51ad49dc7f57f2d565988cceed5edbb37801b1d0799b1f43c/dips-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d3833ef2b7ca3b701e2814d6ca4bfd44", "sha256": "59282e055b9018768fdde9e1acd2994bc04ee5ac9e7d0278e4b857045071a806" }, "downloads": -1, "filename": "dips-0.2.0.tar.gz", "has_sig": false, "md5_digest": "d3833ef2b7ca3b701e2814d6ca4bfd44", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2542586, "upload_time": "2019-03-18T03:20:31", "url": "https://files.pythonhosted.org/packages/09/c0/c84dc2db783d36610f8e0f0cc6fd6d762cff6f061d438cf597d87ebb7777/dips-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "14421ba5b246d5c9ee6240ea8373b865", "sha256": "4db864645ad5993f4812e4138785ac95c51bccdac6d80b6facda08fb7c49a282" }, "downloads": -1, "filename": "dips-0.2.0-py2-none-any.whl", "has_sig": false, "md5_digest": "14421ba5b246d5c9ee6240ea8373b865", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 11354, "upload_time": "2019-03-18T03:20:26", "url": "https://files.pythonhosted.org/packages/2b/96/5e2c0a63361cc8d570cd9d48611f3a7abf7fdcd2868b2f6c7d21657e9475/dips-0.2.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "643b593f270a1da3b28e0050fea4fe84", "sha256": "a57742d5d59e749de63eabbf84b0164312001cc40d97517df5e4856190151cbd" }, "downloads": -1, "filename": "dips-0.2.0-py3.6.egg", "has_sig": false, "md5_digest": "643b593f270a1da3b28e0050fea4fe84", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 11943, "upload_time": "2019-03-18T03:20:30", "url": "https://files.pythonhosted.org/packages/78/03/281fdc0cbc0525f494ea6e4e7f624c4ff5b8acb16b87f437d22f13918a63/dips-0.2.0-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "2861c4f03de4cb32deccd3105bf96422", "sha256": "d0bacb95c812c513c892a9b62b226280a7b4b8c08ae51db5c5ce62fd84f169ca" }, "downloads": -1, "filename": "dips-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "2861c4f03de4cb32deccd3105bf96422", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 20407, "upload_time": "2019-03-18T03:20:28", "url": "https://files.pythonhosted.org/packages/c9/ca/52933e95cdd51ad49dc7f57f2d565988cceed5edbb37801b1d0799b1f43c/dips-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d3833ef2b7ca3b701e2814d6ca4bfd44", "sha256": "59282e055b9018768fdde9e1acd2994bc04ee5ac9e7d0278e4b857045071a806" }, "downloads": -1, "filename": "dips-0.2.0.tar.gz", "has_sig": false, "md5_digest": "d3833ef2b7ca3b701e2814d6ca4bfd44", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2542586, "upload_time": "2019-03-18T03:20:31", "url": "https://files.pythonhosted.org/packages/09/c0/c84dc2db783d36610f8e0f0cc6fd6d762cff6f061d438cf597d87ebb7777/dips-0.2.0.tar.gz" } ] }