unwise_coadd.py starting: args: ['/n/fink1/ameisner/unwise-coadds/unwise_coadd.py', '--tile', '1294m621', '--band', '2', '--outdir', '/n/fink2/ameisner/unwise-coadds/tr_neo2/e000', '--recover_warped', '--no_irsa_dl', '--reference_dir', '/n/fink2/ameisner/unwise-coadds/neo2_ref_w2', '--epoch', '0', '--warp_all', '--no_output_masks'] PBS_ARRAYID: 0 opt: {'threads1': None, 'reference_dir': '/n/fink2/ameisner/unwise-coadds/neo2_ref_w2', 'plotprefix': None, 'force': False, 'no_sanity_check': False, 'height': 0, 'hi_lo_rej': False, 'medfilt': None, 'minmax': None, 'size': 2048, 'plots2': False, 'cube1': False, 'bgmatch': False, 'pixscale': 2.75, 'int_gz': False, 'nframes': 0, 'width': 0, 'epoch': 0, 'ra': None, 'dsky': False, 'preprocess': False, 'try_download': False, 'before': 100000.0, 'do_rebin': True, 'md5': False, 'dataset': 'sequels', 'cube': False, 'after': None, 'tile': '1294m621', 'threads': None, 'allmd5': False, 'rchi_fraction': 0.01, 'plots': False, 'frame0': 0, 'wishlist': False, 'maxmem': 0, 'compare_moon_all': False, 'center': False, 'band': [2], 'output_masks': False, 'use_zp_meta': False, 'outdir': '/n/fink2/ameisner/unwise-coadds/tr_neo2/e000', 'pdf': False, 'warp_all': True, 'dec': None, 'outdir2': None, 'recover_warped': True} ['__cmp__', '__doc__', '__init__', '__module__', '__repr__', '__str__', '_update', '_update_careful', '_update_loose', 'after', 'allmd5', 'band', 'before', 'bgmatch', 'center', 'compare_moon_all', 'cube', 'cube1', 'dataset', 'dec', 'do_rebin', 'dsky', 'ensure_value', 'epoch', 'force', 'frame0', 'height', 'hi_lo_rej', 'int_gz', 'maxmem', 'md5', 'medfilt', 'minmax', 'nframes', 'no_sanity_check', 'outdir', 'outdir2', 'output_masks', 'pdf', 'pixscale', 'plotprefix', 'plots', 'plots2', 'preprocess', 'ra', 'rchi_fraction', 'read_file', 'read_module', 'recover_warped', 'reference_dir', 'size', 'threads', 'threads1', 'tile', 'try_download', 'use_zp_meta', 'warp_all', 'width', 'wishlist'] Running on host: fink1.rc.fas.harvard.edu Running as user: ameisner MKL_NUM_THREADS: 1 Tile RA,Dec 129.4 -62.1 Looking for file 1294m621-atlas.fits Reading /n/fink1/ameisner/unwise-coadds/etc_p9/wise_allsky_4band_p3as_cdd.fits Read 18240 Atlas tiles cosdec: 0.467914389569 Cut to 1 Atlas tiles near RA,Dec box Wrote 1294m621-atlas.fits Read 7904566 WISE L1b frames from /n/fink1/ameisner/unwise-coadds/etc_p9/WISE-index-L1b_w2.fits converting an array with ndim > 0 to an index will result in an error in the future converting an array with ndim > 0 to an index will result in an error in the future converting an array with ndim > 0 to an index will result in an error in the future converting an array with ndim > 0 to an index will result in an error in the future converting an array with ndim > 0 to an index will result in an error in the future converting an array with ndim > 0 to an index will result in an error in the future figuring out which frames are nearby took 2.39512395859 seconds Cut to 3617 WISE frames near RA,Dec box Reading /n/fink1/ameisner/unwise-coadds/etc_p9/WISE-l1b-metadata-4band.fits Read 1491686 from /n/fink1/ameisner/unwise-coadds/etc_p9/WISE-l1b-metadata-4band.fits converting an array with ndim > 0 to an index will result in an error in the future converting an array with ndim > 0 to an index will result in an error in the future converting an array with ndim > 0 to an index will result in an error in the future converting an array with ndim > 0 to an index will result in an error in the future converting an array with ndim > 0 to an index will result in an error in the future converting an array with ndim > 0 to an index will result in an error in the future Cut to 2324 near RA,Dec box Matched 777 WISE-index-L1b scan_id: |S6 frame_num: >i8 WISE-metadata scan_id: |S6 frame_num: >i8 Cut to 590 matching scan/frame Band 1 : 0 Band 2 : 590 Band 3 : 0 Band 4 : 0 Reading /n/fink1/ameisner/unwise-coadds/etc_p9/WISE-l1b-metadata-3band.fits Read 392879 from /n/fink1/ameisner/unwise-coadds/etc_p9/WISE-l1b-metadata-3band.fits converting an array with ndim > 0 to an index will result in an error in the future converting an array with ndim > 0 to an index will result in an error in the future converting an array with ndim > 0 to an index will result in an error in the future converting an array with ndim > 0 to an index will result in an error in the future converting an array with ndim > 0 to an index will result in an error in the future converting an array with ndim > 0 to an index will result in an error in the future Cut to 0 near RA,Dec box Reading /n/fink1/ameisner/unwise-coadds/etc_p9/WISE-l1b-metadata-2band.fits Read 901271 from /n/fink1/ameisner/unwise-coadds/etc_p9/WISE-l1b-metadata-2band.fits converting an array with ndim > 0 to an index will result in an error in the future converting an array with ndim > 0 to an index will result in an error in the future converting an array with ndim > 0 to an index will result in an error in the future converting an array with ndim > 0 to an index will result in an error in the future converting an array with ndim > 0 to an index will result in an error in the future converting an array with ndim > 0 to an index will result in an error in the future Cut to 2726 near RA,Dec box Matched 937 WISE-index-L1b scan_id: |S6 frame_num: >i8 WISE-metadata scan_id: |S6 frame_num: >i8 Cut to 751 matching scan/frame Band 1 : 0 Band 2 : 751 Reading /n/fink1/ameisner/unwise-coadds/etc_p9/WISE-l1b-metadata-neowiser.fits Read 2497867 from /n/fink1/ameisner/unwise-coadds/etc_p9/WISE-l1b-metadata-neowiser.fits converting an array with ndim > 0 to an index will result in an error in the future converting an array with ndim > 0 to an index will result in an error in the future converting an array with ndim > 0 to an index will result in an error in the future converting an array with ndim > 0 to an index will result in an error in the future converting an array with ndim > 0 to an index will result in an error in the future converting an array with ndim > 0 to an index will result in an error in the future Cut to 4667 near RA,Dec box Matched 1532 WISE-index-L1b scan_id: |S6 frame_num: >i8 WISE-metadata scan_id: |S6 frame_num: >i2 Cut to 1197 matching scan/frame Band 1 : 0 Band 2 : 1197 Reading /n/fink1/ameisner/unwise-coadds/etc_p9/WISE-l1b-metadata-neowiser2.fits Read 2620896 from /n/fink1/ameisner/unwise-coadds/etc_p9/WISE-l1b-metadata-neowiser2.fits converting an array with ndim > 0 to an index will result in an error in the future converting an array with ndim > 0 to an index will result in an error in the future converting an array with ndim > 0 to an index will result in an error in the future converting an array with ndim > 0 to an index will result in an error in the future converting an array with ndim > 0 to an index will result in an error in the future converting an array with ndim > 0 to an index will result in an error in the future Cut to 4593 near RA,Dec box Matched 1414 WISE-index-L1b scan_id: |S6 frame_num: >i8 WISE-metadata scan_id: |S6 frame_num: >i4 Cut to 1079 matching scan/frame Band 1 : 0 Band 2 : 1079 3617 of 3617 matched to metadata tables Doing coadd tile 1294m621 band 2 Coadd tile 1294m621 RA,Dec 129.473546 -62.092222 Band 2 "git describe" version info: v3.5-15-gdebad9c will attempt to recover frames using per-quadrant polynomial warps ... mkdir /n/fink2/ameisner/unwise-coadds/tr_neo2/e000/129/1294m621 Coadd IWC polygon: [[ 7.89479167e-01 0.00000000e+00] [ 7.89479167e-01 7.89479167e-01] [ 1.27234264e-14 7.89479167e-01] [ -7.89479167e-01 7.89479167e-01] [ -7.89479167e-01 -3.18085660e-15] [ -7.89479167e-01 -7.89479167e-01] [ 1.27234264e-14 -7.89479167e-01] [ 7.89479167e-01 -7.89479167e-01]] Found 3617 WISE frames in range and in band W2 cut to 2862 in RA,Dec box Defined epoch breaks [55281.933829524998, 55461.924639584999, 56105.658449484996, 56742.830496215, 56925.225719645001, 57104.363201775006] Found 6 epoch breaks Cut to 2 within epoch Cut to 2 frames before MJD 100000.0 Cut out qual_frame = 0; 2 remaining Cut out planets != 0; 2 remaining Frames: 0 00716a 144 MJD 55203.2335262 1 00716a 145 MJD 55203.2336536 Reading L1b top-level directory locations from /n/fink1/ameisner/unwise-coadds/etc_p9/l1b_dirs.yml L1b top-level directories are: {'2band': '/n/fink2/ameisner/staging/postcryo/2band_p1bm_frm', '3band': '/n/fink2/ameisner/staging/cryo_3band/3band_p1bm_frm', '4band': '/n/fink2/ameisner/staging/allsky/4band_p1bm_frm', 'missing': 'merge_p1bm_frm', 'neo1': '/n/fink2/ameisner/staging/neowiser/p1bm_frm', 'neo2': '/n/fink2/ameisner/staging/neowiser2/p1bm_frm'} 1 of 2 scan 00716a frame 144 band 2 intfn /n/fink2/ameisner/staging/allsky/4band_p1bm_frm/6a/00716a/144/00716a144-w2-int-1b.fits XTENSION: '(null)' Image extent: [ 996 1015 75 144] Coadd extent: [ 0 51 0 21] Quadrant 1 does not intersect target Quadrant 2 does not intersect target Quadrant 3 does not intersect target Total pixels in coadd space: 1144.0 2 of 2 scan 00716a frame 145 band 2 intfn /n/fink2/ameisner/staging/allsky/4band_p1bm_frm/6a/00716a/145/00716a145-w2-int-1b.fits XTENSION: '(null)' Image extent: [1009 1015 994 1015] Coadd extent: [12 48 0 4] Quadrant 2 does not intersect target Quadrant 3 does not intersect target Quadrant 4 does not intersect target Total pixels in coadd space: 1329.0 Cut to 2 frames intersecting target Up to coadd_wise: Wall: 0.12 s, CPU: 0.04 s, VmPeak: 874 MB, VmSize: 402 MB, VmRSS: 59 MB, VmData: 49 MB, maxrss: 0.543724 MB Creating reference image from files: /n/fink2/ameisner/unwise-coadds/neo2_ref_w2/129/1294m621/unwise-1294m621-w2-img-u.fits /n/fink2/ameisner/unwise-coadds/neo2_ref_w2/129/1294m621/unwise-1294m621-w2-std-u.fits /n/fink2/ameisner/unwise-coadds/neo2_ref_w2/129/1294m621/unwise-1294m621-w2-n-u.fits using a non-integer number instead of an integer will result in an error in the future using a non-integer number instead of an integer will result in an error in the future using a non-integer number instead of an integer will result in an error in the future using a non-integer number instead of an integer will result in an error in the future using a non-integer number instead of an integer will result in an error in the future using a non-integer number instead of an integer will result in an error in the future using a non-integer number instead of an integer will result in an error in the future using a non-integer number instead of an integer will result in an error in the future Reading zero point polynomial coefficients for phase : 3band, W2 Reading zero point polynomial coefficients for phase : 2band, W2 Reading zero point polynomial coefficients for phase : neowiser, W2 Reading zero point polynomial coefficients for phase : neowiser2, W2 Warping all quadrants relative to reference image Creating per-quadrant FirstRoundImage objects Coadd round 1, image 1 of 2 intfn /n/fink2/ameisner/staging/allsky/4band_p1bm_frm/6a/00716a/144/00716a144-w2-int-1b.fits uncfn /n/fink2/ameisner/staging/allsky/4band_p1bm_frm/6a/00716a/144/00716a144-w2-unc-1b.fits.gz maskfn /n/fink2/ameisner/staging/allsky/4band_p1bm_frm/6a/00716a/144/00716a144-w2-msk-1b.fits.gz Zeropoint: 19.596 -> scale 14.5077478909 sig1: 3.62915039062 Pixels to patch: 7 Estimated sky: 27.7125888907 Image median: 27.9969 Image median w/ noise: 28.1357 Pixels in range: 43 Wall: 0.55 s, CPU: 0.36 s, VmPeak: 874 MB, VmSize: 595 MB, VmRSS: 133 MB, VmData: 243 MB, maxrss: 0.543724 MB Skipping quadrant 1 Skipping quadrant 2 Skipping quadrant 3 Too few pixels : 43, not computing warp deleting x, y coordinates for quadrant 4 deleting x, y coordinates for quadrant -1 Coadd round 1, image 2 of 2 intfn /n/fink2/ameisner/staging/allsky/4band_p1bm_frm/6a/00716a/145/00716a145-w2-int-1b.fits uncfn /n/fink2/ameisner/staging/allsky/4band_p1bm_frm/6a/00716a/145/00716a145-w2-unc-1b.fits.gz maskfn /n/fink2/ameisner/staging/allsky/4band_p1bm_frm/6a/00716a/145/00716a145-w2-msk-1b.fits.gz Zeropoint: 19.596 -> scale 14.5077478909 sig1: 3.55981445312 Pixels to patch: 1 Estimated sky: 26.9406071641 Image median: 27.1349 Image median w/ noise: 27.2615 No overlap; skipping Accumulating first-round coadds... Wall: 0.00 s, CPU: 0.00 s, VmPeak: 874 MB, VmSize: 595 MB, VmRSS: 133 MB, VmData: 243 MB, maxrss: 0.543724 MB Before garbage collection: Wall: 0.00 s, CPU: 0.00 s, VmPeak: 874 MB, VmSize: 659 MB, VmRSS: 227 MB, VmData: 307 MB, maxrss: 0.543724 MB After garbage collection: Wall: 0.02 s, CPU: 0.02 s, VmPeak: 874 MB, VmSize: 659 MB, VmRSS: 227 MB, VmData: 307 MB, maxrss: 0.543724 MB using a non-integer number instead of an integer will result in an error in the future using a non-integer number instead of an integer will result in an error in the future using a non-integer number instead of an integer will result in an error in the future using a non-integer number instead of an integer will result in an error in the future using a non-integer number instead of an integer will result in an error in the future using a non-integer number instead of an integer will result in an error in the future using a non-integer number instead of an integer will result in an error in the future using a non-integer number instead of an integer will result in an error in the future using a non-integer number instead of an integer will result in an error in the future using a non-integer number instead of an integer will result in an error in the future using a non-integer number instead of an integer will result in an error in the future using a non-integer number instead of an integer will result in an error in the future using a non-integer number instead of an integer will result in an error in the future using a non-integer number instead of an integer will result in an error in the future using a non-integer number instead of an integer will result in an error in the future using a non-integer number instead of an integer will result in an error in the future Coadd round 2, image 1 of 1 using a non-integer number instead of an integer will result in an error in the future using a non-integer number instead of an integer will result in an error in the future Wall: 0.00 s, CPU: 0.00 s, VmPeak: 874 MB, VmSize: 851 MB, VmRSS: 237 MB, VmData: 499 MB, maxrss: 0.543724 MB Before garbage collection: Wall: 0.00 s, CPU: 0.00 s, VmPeak: 874 MB, VmSize: 851 MB, VmRSS: 237 MB, VmData: 499 MB, maxrss: 0.543724 MB After garbage collection: Wall: 0.02 s, CPU: 0.02 s, VmPeak: 874 MB, VmSize: 851 MB, VmRSS: 237 MB, VmData: 499 MB, maxrss: 0.543724 MB /n/fink1/ameisner/software/astrometry.net-0.64/astrometry/util/miscutils.py:56: RuntimeWarning: invalid value encountered in double_scalars mx = -X[1] / (2. * X[2]) Estimated coadd sky: nan coadd_wise: Wall: 2.24 s, CPU: 1.46 s, VmPeak: 987 MB, VmSize: 667 MB, VmRSS: 265 MB, VmData: 315 MB, maxrss: 0.543724 MB Updating metadata based on quadrant SecondRoundImage objects. Traceback (most recent call last): File "/n/fink1/ameisner/unwise-coadds/unwise_coadd.py", line 3135, in sys.exit(main()) File "/n/fink1/ameisner/unwise-coadds/unwise_coadd.py", line 3129, in main output_masks=opt.output_masks): File "/n/fink1/ameisner/unwise-coadds/unwise_coadd.py", line 1229, in one_coadd fitsio.write(ofn, coim.astype(np.float32), header=hdr, clobber=True, extname='coadded image, outliers patched') File "/n/home09/ameisner/envs/AARON_PYTHON/lib/python2.7/site-packages/fitsio/fitslib.py", line 215, in write **keys) File "/n/home09/ameisner/envs/AARON_PYTHON/lib/python2.7/site-packages/fitsio/fitslib.py", line 443, in write header=header) File "/n/home09/ameisner/envs/AARON_PYTHON/lib/python2.7/site-packages/fitsio/fitslib.py", line 497, in write_image self[-1].write_keys(header) File "/n/home09/ameisner/envs/AARON_PYTHON/lib/python2.7/site-packages/fitsio/fitslib.py", line 1281, in write_keys self.write_key(name,value,comment=comment) File "/n/home09/ameisner/envs/AARON_PYTHON/lib/python2.7/site-packages/fitsio/fitslib.py", line 1215, in write_key str(comment)) IOError: FITSIO status = 402: bad float to string conversion Error in ffd2e: double value is a NaN or INDEF