heinlein


Nameheinlein JSON
Version 0.10.8 PyPI version JSON
download
home_pageNone
SummaryNone
upload_time2025-02-14 22:43:15
maintainerNone
docs_urlNone
authorPatrick Wells
requires_python>=3.11
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # heinlein

`heinlein` is a high-level tool for interacting with local versions of astronomical survey datasets. `heinlein` empowers astronomers who work with large survey datasets to stop thinking about files and start thinking about astronomy. Let's say you had downloaded some catalogs from the Dark Energy Survey. You could add these catalogs to heinlein with a single command:

`> heinlein add hsc catalog /path/to/catalogs`

Once this is done retrieving data in a python script becomes a simple as: 

```
from heinlein import load dataset
import astropy.units as u

des = load_dataset("des")
catalog = data.cone_search(center=(141.23246, 2.32358), radius=120*u.arcsec)
#Returns a standard astropy table
```

`heinlein` understands that it's pointless to load an entire dataset when you only need one small piece of it, so it contains tools to intelligently portions of the data based on what's needed at the moment. You can easily setup your previously-downloaded catalogs to work with these features by calling:

`> heinlein split des /path/to/catalogs`

`heinlein` also knows that if you're getting data from one part of the sky, there's a decent chance you'll come back and try to get data from a nearby part of the sky. `heinlein` caches data so queries nearby a perviously-queried area will return substantially faster.

But `heinlein` doesn't only work with catalogs. For analyses that rely on photometry, it can be necesary to remove objects from a catalog that fall within a mask provided by the survey team (often because of a nearby bright star). It's easy to use `heinlein` to manage these masks and apply them to catalogs:

```
des = load_dataset("des")
data = data.cone_search(center=(141.23246, 2.32358), radius=120*u.arcsec, dtypes=["catalg", "mask"])
catalog = data["catalog"]
mask = data["mask"]
masked_catalog = catalog[mask]
```

`heinlein` will happily keep track of any data you give it, but it only contains built-in tools for certain datatypes (currently catalogs and masks). 

**Currently supported surveys:**
DES, HSC SSP, CFHTLS

**Data types with built-in utilities:**
Catalogs (plaintext (csv, tsv etc), sqlite)
Masks (.fits, .reg, mangle)

Interested in adding something to these lists? Don't hesitate to add it in "Issues."

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "heinlein",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": null,
    "keywords": null,
    "author": "Patrick Wells",
    "author_email": "patrick@astropatty.com",
    "download_url": "https://files.pythonhosted.org/packages/d8/d9/d7096c6fa86ec59333653ae7750ed3dfa8df7ef2bdcea866be9cae24566c/heinlein-0.10.8.tar.gz",
    "platform": null,
    "description": "# heinlein\n\n`heinlein` is a high-level tool for interacting with local versions of astronomical survey datasets. `heinlein` empowers astronomers who work with large survey datasets to stop thinking about files and start thinking about astronomy. Let's say you had downloaded some catalogs from the Dark Energy Survey. You could add these catalogs to heinlein with a single command:\n\n`> heinlein add hsc catalog /path/to/catalogs`\n\nOnce this is done retrieving data in a python script becomes a simple as: \n\n```\nfrom heinlein import load dataset\nimport astropy.units as u\n\ndes = load_dataset(\"des\")\ncatalog = data.cone_search(center=(141.23246, 2.32358), radius=120*u.arcsec)\n#Returns a standard astropy table\n```\n\n`heinlein` understands that it's pointless to load an entire dataset when you only need one small piece of it, so it contains tools to intelligently portions of the data based on what's needed at the moment. You can easily setup your previously-downloaded catalogs to work with these features by calling:\n\n`> heinlein split des /path/to/catalogs`\n\n`heinlein` also knows that if you're getting data from one part of the sky, there's a decent chance you'll come back and try to get data from a nearby part of the sky. `heinlein` caches data so queries nearby a perviously-queried area will return substantially faster.\n\nBut `heinlein` doesn't only work with catalogs. For analyses that rely on photometry, it can be necesary to remove objects from a catalog that fall within a mask provided by the survey team (often because of a nearby bright star). It's easy to use `heinlein` to manage these masks and apply them to catalogs:\n\n```\ndes = load_dataset(\"des\")\ndata = data.cone_search(center=(141.23246, 2.32358), radius=120*u.arcsec, dtypes=[\"catalg\", \"mask\"])\ncatalog = data[\"catalog\"]\nmask = data[\"mask\"]\nmasked_catalog = catalog[mask]\n```\n\n`heinlein` will happily keep track of any data you give it, but it only contains built-in tools for certain datatypes (currently catalogs and masks). \n\n**Currently supported surveys:**\nDES, HSC SSP, CFHTLS\n\n**Data types with built-in utilities:**\nCatalogs (plaintext (csv, tsv etc), sqlite)\nMasks (.fits, .reg, mangle)\n\nInterested in adding something to these lists? Don't hesitate to add it in \"Issues.\"\n",
    "bugtrack_url": null,
    "license": null,
    "summary": null,
    "version": "0.10.8",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fc57c1d89c18c9b7589a8d3a3bfcf185a3a251a067f6e0242fef6e4da3d4ed17",
                "md5": "d9c72b8e80d8bc60d931a798dc36c1bd",
                "sha256": "c428be9350cd6d66ad3d23e1283aa2cc2181519361a80796091149e5e9836c80"
            },
            "downloads": -1,
            "filename": "heinlein-0.10.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d9c72b8e80d8bc60d931a798dc36c1bd",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 36336,
            "upload_time": "2025-02-14T22:43:14",
            "upload_time_iso_8601": "2025-02-14T22:43:14.817307Z",
            "url": "https://files.pythonhosted.org/packages/fc/57/c1d89c18c9b7589a8d3a3bfcf185a3a251a067f6e0242fef6e4da3d4ed17/heinlein-0.10.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d8d9d7096c6fa86ec59333653ae7750ed3dfa8df7ef2bdcea866be9cae24566c",
                "md5": "d32a93f596fbccd1cd6327e209f4c67c",
                "sha256": "278dc00b64a433281c2be099e04982debc2a52fc90bcc315add5fe8874c4b18c"
            },
            "downloads": -1,
            "filename": "heinlein-0.10.8.tar.gz",
            "has_sig": false,
            "md5_digest": "d32a93f596fbccd1cd6327e209f4c67c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 25921,
            "upload_time": "2025-02-14T22:43:15",
            "upload_time_iso_8601": "2025-02-14T22:43:15.950928Z",
            "url": "https://files.pythonhosted.org/packages/d8/d9/d7096c6fa86ec59333653ae7750ed3dfa8df7ef2bdcea866be9cae24566c/heinlein-0.10.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-14 22:43:15",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "heinlein"
}
        
Elapsed time: 0.81002s