Skip to content
#

des

Here are 155 public repositories matching this topic...

jmeyers314
jmeyers314 commented Dec 1, 2019

In numpy, if I want a random array uniformly distributed between -0.6 and +0.6 with 100 elements, I'd write:

rng = numpy.random.RandomState(seed)
array = rng.uniform(-0.6, 0.6, 100)

Using GalSim deviates, I'd do something like:

ud = galsim.UniformDeviate(seed)
array = np.empty(100)
ud.generate(array)
array = array*1.2 - 0.6

I find the former easier to read. I d

rmjarvis
rmjarvis commented Apr 13, 2018

Currently psf.draw(x,y) centers the PSF profile at the sub-pixel values of the provided x,y positions.

This is sometimes a desirable feature, but not always. We should make it easier for the user to specify how they want the PSF image centered. I'm proposing a new center keyword argument to the draw command with the following options:

center=None   # (default) the current behavior u
kadrlica
kadrlica commented Oct 19, 2019

We currently track two coordinate systems: Galactic (gal) and celestial (cel). Celestial just means "sky" and doesn't actually contain information about coordinate frame. The actual system is the equatorial coordinate system, so we should update instances of cel to equ. This is a trivial change, but permeates the codebase.

Improve this page

Add a description, image, and links to the des topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the des topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.