{"id":18620559,"url":"https://github.com/simonsobs/websky_model","last_synced_at":"2025-11-03T12:30:21.622Z","repository":{"id":48364878,"uuid":"168748620","full_name":"simonsobs/websky_model","owner":"simonsobs","description":"Implements the data model for the websky simulation suite.","archived":false,"fork":false,"pushed_at":"2021-08-26T17:40:51.000Z","size":20,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":19,"default_branch":"master","last_synced_at":"2024-12-27T04:25:39.312Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/simonsobs.png","metadata":{"files":{"readme":"README.md","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":"2019-02-01T19:20:03.000Z","updated_at":"2021-08-26T17:40:54.000Z","dependencies_parsed_at":"2022-08-29T20:10:33.747Z","dependency_job_id":null,"html_url":"https://github.com/simonsobs/websky_model","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/simonsobs%2Fwebsky_model","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonsobs%2Fwebsky_model/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonsobs%2Fwebsky_model/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonsobs%2Fwebsky_model/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonsobs","download_url":"https://codeload.github.com/simonsobs/websky_model/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239413872,"owners_count":19634326,"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-11-07T04:06:54.688Z","updated_at":"2025-11-03T12:30:21.579Z","avatar_url":"https://github.com/simonsobs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Websky Models\n\nwebsky_models is a python library for dealing with websky maps and halo catalogues\n\nSome functionalities require healpy or astropy. astropy is only used if comoving distance to redshift calculations required for halo catalogue (if zmin/zmax are used for halo catalogue, or practical=True). Should work without astropy installed if not using these.\n\n## Usage\n\n```python\nimport numpy as np\nimport websky_model as wm\n\n# load model\nwmodel = wm.WebSky(directory_path='/global/project/projectdirs/sobs/v4_sims/mbs/websky/data/',websky_version = 'v0.1', verbose=True)\n\n# read in halo catalogue\nhcat  = wmodel.load_halo_catalogue(mmin=0, mmax=np.inf, zmin=0, zmax=np.inf, rmin=0., rmax=np.inf, practical=True)\n\n# project halos onto healpix map. \n# each halo is given a \"flux\" of weight=constant, or weight=array(len(Nhalo))\nhpmap = wmodel.catalogue_to_map(hcat, nside=512, weight=1)\n\n# get cib map filename\nfname_cib = wmodel.cib_map_file_name(freq='545')\n\n# get kappa map filename\nfname_kappa = wmodel.kappa_map_file_name()\n\n# get compton-y map filename\nfname_comptony = wmodel.comptony_map_file_name()\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonsobs%2Fwebsky_model","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonsobs%2Fwebsky_model","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonsobs%2Fwebsky_model/lists"}