GithubHelp home page GithubHelp logo

moustakas / desi-photometry Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 1.0 264 KB

DESI Legacy Imaging Surveys Photometry for observed and potential (DESI) targets.

License: MIT License

Python 25.99% Jupyter Notebook 74.01%

desi-photometry's People

Contributors

moustakas avatar weaverba137 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

karishseebaluck

desi-photometry's Issues

update link to Meyers et al. 2022 paper

Currently, the link in the README points to the version of the targeting paper on docDB. Once the paper is on the arXiv (or published) then we'll need to update the link.

add "Known Issues" to the README

Here's some initial text:

For secondary targets in SV1, the targeting catalog filenames recorded in the
fiberassign header are inconsistent with the contents of the corresponding
fibermap catalog for a given TILEID.

out-of-memory when generating "potential targets" catalogs for Iron

@weaverba137 are the "potential targets" catalogs generated as part of this VAC loaded into a DESI database, or just the observed targets? The issue is that the main survey has become too large to put all the targets into a single catalog (see below), so we either need to drop them (if they're not used) or split them into healpixels (or something along those lines).

time /global/homes/i/ioannis/code/desihub/desi-photometry/lsdr9-photometry --reduxdir ${DESI_ROOT}/spectro/redux/iron -o ${SCRATCH}/lsdr9/iron --specprod iron --mp 128 --targetphot --potential --tractorphot
INFO:lsdr9-photometry:379:main: Reading /pscratch/sd/i/ioannis/lsdr9/iron/ancillary/targetphot-zcat-iron.fits
INFO:lsdr9-photometry:388:main: Read 24,896,930 objects from /pscratch/sd/i/ioannis/lsdr9/iron/ancillary/targetphot-zcat-iron.fits
INFO:lsdr9-photometry:421:main: Found 151,418,861 objects from 6,101 unique tiles
INFO:lsdr9-photometry:485:main: Working on survey cmx
INFO:lsdr9-photometry:506:main: Found 20,956 TARGETIDs and 1 unique tiles from survey: cmx
INFO:lsdr9-photometry:206:targetphot_one: Working on tile 80615
INFO:lsdr9-photometry:533:main: Total time for gather_targetphot = 0.434 min
INFO:lsdr9-photometry:551:main: Writing 20,956 objects to /pscratch/sd/i/ioannis/lsdr9/iron/potential-targets/targetphot-potential-cmx-iron.fits
INFO:lsdr9-photometry:570:main: Writing 20,956 objects to /pscratch/sd/i/ioannis/lsdr9/iron/ancillary/targetphot-potential-zcat-cmx-iron.fits
INFO:lsdr9-photometry:485:main: Working on survey main
INFO:lsdr9-photometry:506:main: Found 133,235,021 TARGETIDs and 5,346 unique tiles from survey: main
INFO:lsdr9-photometry:206:targetphot_one: Working on tile 1000
[snip]
INFO:lsdr9-photometry:206:targetphot_one: Working on tile 41378
INFO:lsdr9-photometry:533:main: Total time for gather_targetphot = 19.952 min
INFO:lsdr9-photometry:551:main: Writing 133,235,021 objects to /pscratch/sd/i/ioannis/lsdr9/iron/potential-targets/targetphot-potential-main-iron.fits
slurmstepd: error: Detected 1 oom-kill event(s) in StepId=5541863.interactive. Some of your processes may have been killed by the cgroup out-of-memory handler.
srun: error: nid004185: task 0: Out Of Memory
srun: launch/slurm: _step_signal: Terminating StepId=5541863.interactive
salloc: Relinquishing job allocation 5541863
salloc: Job allocation 5541863 has been revoked.

add details regarding reproducibility of the VAC

Here's some initial text:

Reproducibility
---------------

Assuming all the relevant DESI environment variables have been set (write me),
one can regenerate the catalogs by cloning this repository and calling:

lsdr9-photometry --reduxdir /path/to/edr -o /path/to/output --outsuffix edr --mp 1 --targetphot

exclude cmx and sv targeting bits from main-survey catalogs

Right now the stacked targetphot catalogs for Iron and Guadalupe

/global/cfs/cdirs/desi/public/dr1/vac/lsdr9-photometry/guadalupe/v2.0/observed-targets/targetphot-guadalupe.fits
/global/cfs/cdirs/desi/public/dr1/vac/lsdr9-photometry/iron/v1.0/observed-targets/targetphot-iron.fits

include many extraneous cmx/sv targeting bit columns, e.g.,

fitsheader /global/cfs/cdirs/desi/public/dr1/vac/lsdr9-photometry/guadalupe/v2.0/observed-targets/targetphot-guadalupe.fits | grep "_TARGET"
TTYPE106= 'CMX_TARGET'
TTYPE107= 'DESI_TARGET'
TTYPE108= 'BGS_TARGET'
TTYPE109= 'MWS_TARGET'
TTYPE110= 'SV1_DESI_TARGET'
TTYPE111= 'SV1_BGS_TARGET'
TTYPE112= 'SV1_MWS_TARGET'
TTYPE113= 'SV2_DESI_TARGET'
TTYPE114= 'SV2_BGS_TARGET'
TTYPE115= 'SV2_MWS_TARGET'
TTYPE116= 'SV3_DESI_TARGET'
TTYPE117= 'SV3_BGS_TARGET'
TTYPE118= 'SV3_MWS_TARGET'
TTYPE119= 'SCND_TARGET'
TTYPE120= 'SV1_SCND_TARGET'
TTYPE121= 'SV2_SCND_TARGET'
TTYPE122= 'SV3_SCND_TARGET'
DEPNAM19= 'DESI_TARGET'

In future versions of these catalogs, we should remove these. Specifically, for Iron and future productions we could make separate sv and main stacked catalogs.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.