{"id":16519823,"url":"https://github.com/zonca/icocmb","last_synced_at":"2025-10-28T21:08:13.614Z","repository":{"id":10726231,"uuid":"12978592","full_name":"zonca/icocmb","owner":"zonca","description":"Project HEALPix maps to a Truncated Icosahedron (Soccer-ball!)","archived":false,"fork":false,"pushed_at":"2013-09-20T16:54:45.000Z","size":120,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-13T10:30:20.130Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://figshare.com/articles/Planck_maps_projected_on_a_Truncated_Icosahedron/799823","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zonca.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":"2013-09-20T16:40:50.000Z","updated_at":"2013-12-23T06:47:56.000Z","dependencies_parsed_at":"2022-09-02T06:21:13.606Z","dependency_job_id":null,"html_url":"https://github.com/zonca/icocmb","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/zonca%2Ficocmb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zonca%2Ficocmb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zonca%2Ficocmb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zonca%2Ficocmb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zonca","download_url":"https://codeload.github.com/zonca/icocmb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241587916,"owners_count":19986627,"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-11T16:48:34.658Z","updated_at":"2025-10-28T21:08:13.538Z","avatar_url":"https://github.com/zonca.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"icocmb: Project HEALPix maps to a Truncated Icosahedron\n=======================================================\n\nRequirements\n------------\n\n* `matplotlib` (tested only 1.3.0)\n* `healpy`, needs this patch to be applied to `projaxes.py`:\n\n```python\n    diff --git a/healpy/projaxes.py b/healpy/projaxes.py\n    index 354fd99..9818de9 100644\n    --- a/healpy/projaxes.py\n    +++ b/healpy/projaxes.py\n    @@ -317,6 +317,8 @@ class SphericalProjAxes(axes.Axes):\n             vec = R.dir2vec(theta,phi,lonlat=lonlat)\n             vec = (R.Rotator(rot=rot,coord=coord,eulertype='Y')).I(vec)\n             x,y = self.proj.vec2xy(vec,direct=kwds.pop('direct',False))\n    +        if kwds.pop(\"return_projected_points\", False):\n    +            return x, y\n             s = self.scatter(x, y, *args, **kwds)\n             if save_input_data:\n                 if not hasattr(self, '_scatter_data'):\n```\n\nor get the `icocmb` branch from the `healpy` repository:\n\nhttps://github.com/healpy/healpy/tree/icocmb\n\nHow to run\n----------\n\nIt is important always to use the non-interactive `matplotlib` backend,\nso better not run inside `ipython --pylab`.\n\nSteps:\n\n* the script first creates a grid of all the hexagons and pentagons\n* reads the `HEALPix` Planck map (you can modify to read other maps)\n* makes gnomviews of all the pentagons and rescales them to fit in the figure\n* makes gnomviews of all the hexagons and rescales them to fit in the figure\n* saves as pdf\n\nIt is a quite hacky script (sorry), I could not find a way to compute automatically\nthe scale factor, so I estimated it by eye, it should be good enough even\nfor printing at high resolution, but it might be different on other\nplatforms/matplotlib versions.\n\nOutput\n------\n\nAll Planck frequency maps created with this script:\n\nhttp://figshare.com/articles/Planck_maps_projected_on_a_Truncated_Icosahedron/799823\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzonca%2Ficocmb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzonca%2Ficocmb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzonca%2Ficocmb/lists"}