{"id":31760372,"url":"https://github.com/r-xue/xlib","last_synced_at":"2026-02-16T03:33:22.802Z","repository":{"id":17459574,"uuid":"20233572","full_name":"r-xue/xlib","owner":"r-xue","description":"Rui's IDL code library for Astrophysics","archived":false,"fork":false,"pushed_at":"2019-02-27T18:07:54.000Z","size":14870,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-09T21:29:20.128Z","etag":null,"topics":["astrophysics","data-analysis","idl"],"latest_commit_sha":null,"homepage":"","language":"IDL","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/r-xue.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":"2014-05-27T20:00:56.000Z","updated_at":"2020-07-29T20:06:09.000Z","dependencies_parsed_at":"2022-09-01T23:20:42.306Z","dependency_job_id":null,"html_url":"https://github.com/r-xue/xlib","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/r-xue/xlib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-xue%2Fxlib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-xue%2Fxlib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-xue%2Fxlib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-xue%2Fxlib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/r-xue","download_url":"https://codeload.github.com/r-xue/xlib/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-xue%2Fxlib/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29499615,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T02:07:14.481Z","status":"online","status_checked_at":"2026-02-16T02:03:22.852Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["astrophysics","data-analysis","idl"],"created_at":"2025-10-09T21:27:36.492Z","updated_at":"2026-02-16T03:33:22.779Z","avatar_url":"https://github.com/r-xue.png","language":"IDL","funding_links":[],"categories":[],"sub_categories":[],"readme":"### IDL-xlib\n\nThis repository contains various routines written in IDL for my astronomy research projects. Most rocedures/functions in this collection were written as library codes for \"general\" purposes, but motivated by specific projects.\n\n###### One-line descriptions of some procedures/functions (still under construction):\n\n\nAstrophysics Models\n\n*   [calc_nc.py]()\n    calculate the critical density of common ISM molecular/atomic species  \n*   [calc_igmtau.pro]()\n    compute a model IGM transmission function\n\nAstronomical Utilities\n\n*   [calc_qb.pro]()\n    calculate the effective bandwidth (narrow-line) and gain (continuum) of an imaging filter\n*   [deproj_beam.pro]()\n    calculate the beam shape of a deprojected galaxy image.\n*   [deproj_im.pro]()\n    deproject a galaxy image\n*   [fxreadx.pro]()\n    a fast and memory-saving routine to extract sub-regions from a large 2D image.\n*   [get_filter.pro]()\n    query astronomical filter properties from a built-in database\n*   [map_fits.pro]()\n    display fits images with an arbitrary projection\n*   [map_boundary.pro]()\n    display the imaging boundary by looking up missing data\n*   [mk_hd.pro]()\n    make a reference image header\n*   [query_refobj.pro]()\n    query reference objects for astrometry correction\n*   [check_point.pro]()\n    validate a position in an astronomical image\n*   [match_astro.pro]()\n    derive astrometry solution with high-order distortions\n*   [psfex_analyzer.pro]()\n    an IDL wrapper of PSFEX, for analyzing PSF in optical images\n*   [smooth3d.pro]()\n    convolve a cube or image to a desired resolution\n*   [pltmom_pv.pro]()\n    plot PV maps\n*   [pltmom.pro]()\n    plot moment-0/1 maps\n*   [maskmoment_pv.pro]()\n    make moment-0 maps in the position-velocity dimension\n*   [hrot3d.pro]()\n    rotate 3D cubes\n*   [err_cube.pro]()\n    derive an error cube based on a noise pattern model\n*   [gkernel.pro]()\n    derive the kernel for convolving a gaussian beam to a desired shape\n\nMISC\n\n*   [amoeba_sa.py]()\n    a Python implementation of the Nelder-Mead algorithm for function minimization\n*   [pineps.pro]()\n    combine eps/ps files into multi-page PDF.\n*   [read_table.pro]()\n    read tables fro google docs, excel, etc.\n\n\u003c!---\nThere is no guarantee for 100% accuracy / correct. But any feedback or correction is welcome. I tend to borrow pre-existing library codes from other people rather than reinventing the wheel, so the collection here represents the optimized version of pre-existing codes or something missed out by other mature IDL libraries. This increases the complexity of code dependency, but reduce duplicated coding works. The IDL libraries I borrowed (from other hard-working people!) are listed in the folder /borrow/README.md .\n---\u003e\n\n### Install\n\n\nDownload the update-to-date version of this library using the following command:\n\n    git clone http://github.com/r-xue/xlib.git\n\nAdd the library path to your IDL environment.\n\n\u003c!---\nIf a code complains something (functions/procedures) missing, most likely I have borrowed some library codes not in your IDL setup. Please check README.md in /borrow/ for their information. Also different IDL libraries may have duplicated code pieces in various versions (same file names!). This creates a common headache for IDL users. I recommend to have a look at the /system/xstartup.pro for prioritizing different libraries. The strategy I prefer is putting the bleeding-edge version of \"low-level\" libraries (eg. IDLAstro/idl-coyote) at the beginning of your IDL_path.\n---\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr-xue%2Fxlib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr-xue%2Fxlib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr-xue%2Fxlib/lists"}