Draw random location and galaxy properties from Gaussian Mixtures
Classes
EbossBox |
|
GaussianMixtureModel(weights, means, covars) |
John’s class to read, write, and sample from a mixture model. |
Functions
draw_points(radec, unique_ids[, obj, seed, …]) |
|||
draw_points_cosmos(radec, unique_ids[, obj, …]) |
|
||
draw_points_desi(radec, unique_ids[, obj, …]) |
|
||
draw_points_eboss(radec, unique_ids[, obj, …]) |
|
||
get_area(radec) |
returns area on sphere between ra1,ra2,dec2,dec1 https://github.com/desihub/imaginglss/model/brick.py#L64, self.area=… | ||
get_parser() |
|||
get_py_version() |
|||
get_radec(radec[, ndraws, random_state]) |
Draws ndraws samples of Ra,Dec from the unit sphere. | ||
get_sample_dir(outdir, obj) |
|||
get_sample_fn([seed, startid]) |
|||
inEbossBox(rz, gr[, pad]) |
|||
mkdir_needed(d) |
make each needed directory d= dictionary, vars(args) | ||
mog_param_dir() |
path to Mixture of Gaussian directory, containing the fitted params | ||
outside_lims_eboss(z) |
|||
ptime(text, t0) |
|||
write_calling_seq(d) |
each *_randoms/ directory should have a file listing how randoms were created |
obiwan.draw_radec_color_z.GaussianMixtureModel(weights, means, covars, py=None, covar_type='full', is1D=False)[source]¶John’s class to read, write, and sample from a mixture model.
| Parameters: |
|
|---|
obiwan.draw_radec_color_z.draw_points_cosmos(radec, unique_ids, obj='star', seed=1, outdir='./', startid=1)[source]¶| Parameters: |
|
|---|---|
| Returns: |
|
obiwan.draw_radec_color_z.draw_points_desi(radec, unique_ids, obj='star', seed=1, outdir='./', startid=1)[source]¶| Parameters: |
|
|---|---|
| Returns: |
|
obiwan.draw_radec_color_z.draw_points_eboss(radec, unique_ids, obj='star', seed=1, outdir='./', startid=1)[source]¶| Parameters: |
|
|---|---|
| Returns: |
|
obiwan.draw_radec_color_z.get_area(radec)[source]¶returns area on sphere between ra1,ra2,dec2,dec1 https://github.com/desihub/imaginglss/model/brick.py#L64, self.area=…
obiwan.draw_radec_color_z.get_radec(radec, ndraws=1, random_state=<mtrand.RandomState object>)[source]¶Draws ndraws samples of Ra,Dec from the unit sphere.
| Parameters: |
|
|---|---|
| Returns: | tuple of arrays having length ndraws |
| Return type: | ra,dec |
obiwan.draw_radec_color_z.mkdir_needed(d)[source]¶make each needed directory d= dictionary, vars(args)