GalSim | Documentation

 by   GalSim-developers Python Version: 2.5.3 License: Non-SPDX

kandi X-RAY | GalSim Summary

kandi X-RAY | GalSim Summary

GalSim is a Python library typically used in Simulation applications. GalSim has no bugs, it has no vulnerabilities, it has build file available and it has low support. However GalSim has a Non-SPDX License. You can install using 'pip install GalSim' or download it from GitHub, PyPI.

The modular galaxy image simulation toolkit. Documentation:
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              GalSim has a low active ecosystem.
              It has 191 star(s) with 98 fork(s). There are 43 watchers for this library.
              There were 1 major release(s) in the last 6 months.
              There are 40 open issues and 699 have been closed. On average issues are closed in 664 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of GalSim is 2.5.3

            kandi-Quality Quality

              GalSim has no bugs reported.

            kandi-Security Security

              GalSim has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              GalSim has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              GalSim releases are available to install and integrate.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.

            Top functions reviewed by kandi - BETA

            kandi has reviewed GalSim and discovered the below as its top functions. This is intended to give you an instant insight into GalSim implemented functionality, and help decide if they suit your requirements.
            • Main function .
            • Compute comparison between two DFTs .
            • Build a grid .
            • Perform the interpolant test .
            • Wrapper for multiprocessing .
            • Write an image list to a file .
            • Random interpolant test .
            • Interleave two images .
            • Get the WCS for a given world position .
            • Compute the difference between two DFTs .
            Get all kandi verified functions for this library.

            GalSim Key Features

            No Key Features are available at this moment for GalSim.

            GalSim Examples and Code Snippets

            No Code Snippets are available at this moment for GalSim.

            Community Discussions

            QUESTION

            How to import angle values from a catalog into GalSim
            Asked 2019-Jan-28 at 19:18

            I'm trying to import galaxy values (Sersic index, half light radius, etc) from an external ascii file in to GalSim. I'm having trouble reading in the position angle value 'beta', and would like to know if this is possible using the YAML format.

            When I try I get the error message:

            galsim.errors.GalSimConfigValueError: Invalid value_type specified for parameter beta with type=Catalog. Value not in (, , , )

            I realise that I'm getting this error message because I'm unable to append the string 'deg' after the input to specify that the units of this input are in degrees.

            I've tried adding 'deg' directly in to the input catalogue (inside "" speech marks), with no success. I've also tried adding 'deg' after the catalogue read statement directly in the code, also to no success.

            A minimum working example is below. This relies on a file named 'input.dat' in the same directory with a single number inside (45, for example). Then, save the code below as 'test.yaml' and run on the command line as $ galsim test.yaml:

            ...

            ANSWER

            Answered 2019-Jan-28 at 19:18

            QUESTION

            SED and PSF in Galsim
            Asked 2018-Mar-04 at 15:15

            Setup

            • MacOS 10.12.6
            • Python 2.7
            • Galsim 1.4.4

            Goal

            I want to insert two SEDs (Balge and Disk) and using them to make WFIRST PSFs.

            So far I am able to import SEDs by applying galsim.SED() and produce a PSF using wfirst.getPSF()

            Problem

            By applying the wfirst.getPSF(), I cannot take my desired SED into account.

            I even tried:

            I also tried using galsim.Bandpass()


            More details:

            Based on the recipe provided in Example(#13) One may produce PSF using wfirst.getPSF() and then convolve it the SED.

            I followed this routine:

            ...

            ANSWER

            Answered 2018-Mar-04 at 15:15

            The key point of confusion is that the PSF does not have an SED; only astronomical objects such as stars and galaxies have SEDs. The process that you've pointed to in demo13.py is the correct way to include an SED: you attach it to the astronomical object in question (in this case a star, but you could also assign an SED to a galaxy, or assign different SEDs to separate components of a galaxy).

            So if you had achromatic galsim.GSObjects called bulge and disk for two galaxy components, and separate SEDs for each one (bulge_sed and disk_sed), a chromatic WFIRST PSF called psf, and a galsim.Bandpass filter, then you simply do:

            Source https://stackoverflow.com/questions/48997757

            QUESTION

            Can't read FITS file with GalSim
            Asked 2017-Sep-12 at 18:08

            Setup

            • MacOS 10.12.6
            • Python 2.7
            • Galsim 1.4.4
            • Numpy 1.13.1
            • Astropy 1.3.3
            • Fitsio

            Goal

            My goal is to take simulated wide field HST images (12288*12288 pixels, roughly 600MB in .fits format) and add the WFIRST detector features to it.

            Problem

            Unfortunately, I have faced difficulties reading the fits files.
            The main question is how to turn fits images in the way that we can manipulate them by galsim.

            I've tried

            I have tried galsim fits method ‘galsim.fits.read(“fine_name.fits”)’ and I‘ve got :

            ...

            ANSWER

            Answered 2017-Sep-11 at 15:56

            If you read the docstring for galsim.fits.read, you will see that it returns a galsim.Image, as you have found with your experiment. To create a GSObject, you need to instantiate a galsim.InterpolatedImage, which will allow you to convolve and do other operations. You can read the docstring for galsim.InterpolatedImage, and/or look at galsim demo11.py to see an example of this being done in practice (reading in an image file into an InterpolatedImage and convolving with something else).

            Detector features do get added to images, not GSObjects. For an example of this, see GalSim's demo13.py.

            Questions of basic GalSim usage are covered in the Quick Reference Guide https://github.com/GalSim-developers/GalSim/blob/releases/1.4/doc/GalSim_Quick_Reference.pdf and the demos in the GalSim repository.

            Source https://stackoverflow.com/questions/46159239

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install GalSim

            You can install using 'pip install GalSim' or download it from GitHub, PyPI.
            You can use GalSim like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • PyPI

            pip install GalSim

          • CLONE
          • HTTPS

            https://github.com/GalSim-developers/GalSim.git

          • CLI

            gh repo clone GalSim-developers/GalSim

          • sshUrl

            git@github.com:GalSim-developers/GalSim.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link