Skip to content

Commit

Permalink
Add processed HSC data, readme notes and compression script
Browse files Browse the repository at this point in the history
  • Loading branch information
parejkoj committed Jan 18, 2017
1 parent 2ba4946 commit f119ce9
Show file tree
Hide file tree
Showing 143 changed files with 36,199 additions and 0 deletions.
42 changes: 42 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,48 @@ decam_and_index

Astrometry index catalogs corresponding to the decam data, copied from `validation_data_decam/astrometry_net_data/`.

hsc
---

Source catalogs, metadata, and zeroed+compressed images derived from an earlier non-full-focalplane version of `validation_data_hsc` ([git hash: f20a3ec](https://github.com/lsst/validation_data_hsc/commit/f20a3ec9ab1e17b40f46429711ef2d185a4d6596), processed with a version of the stack that provides VisitInfo (afw post-`tickets/DM-8052` merge: git hash 22f008f). This data includes two filters (R and I) with 11 total visits, 2-4 CCDs per visit from different parts of the focal plane.

The commands that were run to produce this repo, from within the `DATA` directory of a clone of the validation_data_hsc repo at the commit linked above:

```bash
setup testdata_jointcal
setup obs_subaru
setup pipe_drivers

export OMP_NUM_THREADS=1

export SETUP_ASTROMETRY_NET_DATA="astrometry_net_data sdss-dr9-fink-v5b"
export ASTROMETRY_NET_DATA_DIR=`pwd`/sdss-dr9-fink-v5b

# change this directory to where you want the processed data to live
export OUTPUT=$TESTDATA_JOINTCAL_DIR/hsc
echo lsst.obs.hsc.HscMapper > $OUTPUT/_mapper
ingestImages.py $OUTPUT --mode=link 'STRIPE82L/*/*/HSC-?/*.fits'

# older few-chip-per-visit data
VISIT=903334^903336^903338^903342^903344^903346^903986^903988^903990^904010^904014

singleFrameDriver.py $OUTPUT --calib CALIB --output $OUTPUT --job singleFrame --cores 4 --id visit=$VISIT --clobber-config --clobber-versions
makeDiscreteSkyMap.py $OUTPUT --output $OUTPUT --id visit=$VISIT --clobber-versions
```

The following directories and files were deleted, and the calexps were processed via the included `compress_jointcal_hsc_test_data.py` to remove the pixel-level data and gzip compress them to make their size reasonable.

```
hsc/00*/HSC-?/output/ICSRC-*.fits
hsc/00*/HSC-?/thumbs/
hsc/00*/HSC-?/corr/BKGD-*
hsc/00*/HSC-?/corr/ICEXP*
```

hsc_and_index
-------------

Astrometry index catalogs corresponding to the decam data, copied from `validation_data_hsc/astrometry_net_data/`.

Git LFS
-------
Expand Down
20 changes: 20 additions & 0 deletions compress_jointcal_hsc_test_data.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env python
"""Zero out the imageHDUs in the calexps, and then gzip the files."""
from __future__ import absolute_import, division, print_function

from astropy.io import fits
import glob
import subprocess

files = glob.glob('hsc/00*/HSC-?/corr/CORR-*.fits')
for f in files:
data = fits.open(f)
print('processing:', f)
for hdu in data:
if isinstance(hdu, fits.ImageHDU):
hdu.data[:] = 0
data.writeto(f, clobber=True)
# gzip the file
subprocess.call(['gzip', f])
# move it back to the original .fits filename to keep the butler happy.
subprocess.call(['mv', f + '.gz', f])
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/corr/CORR-0903334-016.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/corr/CORR-0903334-022.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/corr/CORR-0903334-023.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/corr/CORR-0903334-100.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/corr/CORR-0903336-017.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/corr/CORR-0903336-024.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/corr/CORR-0903338-018.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/corr/CORR-0903338-025.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/corr/CORR-0903342-004.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/corr/CORR-0903342-010.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/corr/CORR-0903342-100.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/corr/CORR-0903344-000.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/corr/CORR-0903344-005.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/corr/CORR-0903344-011.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/corr/CORR-0903346-001.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/corr/CORR-0903346-006.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/corr/CORR-0903346-012.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/output/SRC-0903334-016.fits.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/output/SRC-0903334-022.fits.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/output/SRC-0903334-023.fits.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/output/SRC-0903334-100.fits.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/output/SRC-0903336-017.fits.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/output/SRC-0903336-024.fits.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/output/SRC-0903338-018.fits.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/output/SRC-0903338-025.fits.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/output/SRC-0903342-004.fits.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/output/SRC-0903342-010.fits.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/output/SRC-0903342-100.fits.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/output/SRC-0903344-000.fits.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/output/SRC-0903344-005.fits.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/output/SRC-0903344-011.fits.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/output/SRC-0903346-001.fits.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/output/SRC-0903346-006.fits.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/output/SRC-0903346-012.fits.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/output/SRCMATCH-0903334-016.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/output/SRCMATCH-0903334-022.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/output/SRCMATCH-0903334-023.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/output/SRCMATCH-0903334-100.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/output/SRCMATCH-0903336-017.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/output/SRCMATCH-0903336-024.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/output/SRCMATCH-0903338-018.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/output/SRCMATCH-0903338-025.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/output/SRCMATCH-0903342-004.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/output/SRCMATCH-0903342-010.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/output/SRCMATCH-0903342-100.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/output/SRCMATCH-0903344-000.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/output/SRCMATCH-0903344-005.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/output/SRCMATCH-0903344-011.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/output/SRCMATCH-0903346-001.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/output/SRCMATCH-0903346-006.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00533/HSC-R/output/SRCMATCH-0903346-012.fits
Git LFS file not shown
2 changes: 2 additions & 0 deletions hsc/00533/HSC-R/singleFrameDriver_metadata/0903334.boost

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions hsc/00533/HSC-R/singleFrameDriver_metadata/0903336.boost

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions hsc/00533/HSC-R/singleFrameDriver_metadata/0903338.boost

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions hsc/00533/HSC-R/singleFrameDriver_metadata/0903342.boost

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions hsc/00533/HSC-R/singleFrameDriver_metadata/0903344.boost

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions hsc/00533/HSC-R/singleFrameDriver_metadata/0903346.boost

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions hsc/00671/HSC-I/corr/CORR-0903986-016.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00671/HSC-I/corr/CORR-0903986-022.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00671/HSC-I/corr/CORR-0903986-023.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00671/HSC-I/corr/CORR-0903986-100.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00671/HSC-I/corr/CORR-0903988-016.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00671/HSC-I/corr/CORR-0903988-017.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00671/HSC-I/corr/CORR-0903988-023.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00671/HSC-I/corr/CORR-0903988-024.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00671/HSC-I/corr/CORR-0903990-018.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00671/HSC-I/corr/CORR-0903990-025.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00671/HSC-I/corr/CORR-0904010-004.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00671/HSC-I/corr/CORR-0904010-010.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00671/HSC-I/corr/CORR-0904010-100.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00671/HSC-I/corr/CORR-0904014-001.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00671/HSC-I/corr/CORR-0904014-006.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00671/HSC-I/corr/CORR-0904014-012.fits
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00671/HSC-I/output/SRC-0903986-016.fits.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00671/HSC-I/output/SRC-0903986-022.fits.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00671/HSC-I/output/SRC-0903986-023.fits.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00671/HSC-I/output/SRC-0903986-100.fits.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00671/HSC-I/output/SRC-0903988-016.fits.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00671/HSC-I/output/SRC-0903988-017.fits.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00671/HSC-I/output/SRC-0903988-023.fits.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00671/HSC-I/output/SRC-0903988-024.fits.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00671/HSC-I/output/SRC-0903990-018.fits.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00671/HSC-I/output/SRC-0903990-025.fits.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00671/HSC-I/output/SRC-0904010-004.fits.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00671/HSC-I/output/SRC-0904010-010.fits.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00671/HSC-I/output/SRC-0904010-100.fits.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00671/HSC-I/output/SRC-0904014-001.fits.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions hsc/00671/HSC-I/output/SRC-0904014-006.fits.gz
Git LFS file not shown

0 comments on commit f119ce9

Please sign in to comment.