Skip to content

add ability to generate randoms with density proportionalto the value in a map #29

@esheldon

Description

@esheldon

Do a vectorized version of the following

valmax = map.validValues.max()
ra, dec = # generate random ra, dec
value = # value in pixel for that ra, dec
r = rng.uniform(low=0, max=valmax)
if r < value:
    # keep point

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions