{"id":17190982,"url":"https://github.com/dfm/star-field","last_synced_at":"2025-04-11T08:46:08.267Z","repository":{"id":2834836,"uuid":"3837803","full_name":"dfm/Star-Field","owner":"dfm","description":null,"archived":false,"fork":false,"pushed_at":"2020-06-12T18:25:44.000Z","size":16380,"stargazers_count":5,"open_issues_count":5,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-25T06:18:43.229Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TeX","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dfm.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}},"created_at":"2012-03-26T21:49:05.000Z","updated_at":"2020-11-01T21:47:07.000Z","dependencies_parsed_at":"2022-08-26T06:21:46.417Z","dependency_job_id":null,"html_url":"https://github.com/dfm/Star-Field","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfm%2FStar-Field","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfm%2FStar-Field/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfm%2FStar-Field/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfm%2FStar-Field/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dfm","download_url":"https://codeload.github.com/dfm/Star-Field/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248362861,"owners_count":21091216,"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-15T01:24:33.241Z","updated_at":"2025-04-11T08:46:08.247Z","avatar_url":"https://github.com/dfm.png","language":"TeX","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Copyright\n\nThis repository is (c) 2012, 2013 Brendon J. Brewer, Daniel \nForeman-Mackey, David W. Hogg. Its contents are released under the\nMIT License. See the LICENSE file for details.\n\nProbabilistic Catalogs for Stellar Fields\n-----\n\nIf you're looking for a more recent and somewhat more user-friendly implementation of this idea,\nsee [StarStudded](https://github.com/eggplantbren/StarStudded).\n\n\u003c!--# Synthetic Star Field Generator--\u003e\n\n\u003c!--Generate some sweet fake crowded stellar fields for fun \u0026 profit.--\u003e\n\n\u003c!--## Example--\u003e\n\n\u003c!--Run this...--\u003e\n\n\u003c!--```python--\u003e\n\u003c!--from starfield import PSF, StarField--\u003e\n\u003c!--import matplotlib.pyplot as pl--\u003e\n\n\u003c!--psf = PSF([1.0, 0.6], [1.0, 4.0])--\u003e\n\n\u003c!--sf = StarField(psf, 200, 200)--\u003e\n\u003c!--sf.generate_bg_stars(100)--\u003e\n\u003c!--sf.generate_gaussian_stars(50, 95, 83.5, [[8.**2, 0], [0, 8.**2]])--\u003e\n\u003c!--img = sf.image()--\u003e\n\n\u003c!--fig = pl.figure(figsize=(8,8))--\u003e\n\u003c!--ax = fig.add_subplot(111, aspect=\"equal\")--\u003e\n\u003c!--ax.pcolor(-img, cmap=\"gray\")--\u003e\n\u003c!--pl.savefig(\"example.png\")--\u003e\n\u003c!--```--\u003e\n\n\u003c!--...to get this...--\u003e\n\n\u003c!--![\"Just some stars\"](https://github.com/dfm/Star-Field/raw/master/example.png)--\u003e\n\n\u003c!--...and you can save it to a file...--\u003e\n\n\u003c!--```python--\u003e\n\u003c!--sf.save(\"starfield.h5\")--\u003e\n\u003c!--sf.save(\"starfield.fits\")--\u003e\n\u003c!--```--\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdfm%2Fstar-field","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdfm%2Fstar-field","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdfm%2Fstar-field/lists"}