Git Product home page Git Product logo

wiyn_lsst's People

Contributors

kponder avatar wmwv avatar

Watchers

 avatar  avatar

wiyn_lsst's Issues

The filename mapper is not figuring out what to call the file in subtraction routine

The subtraction routine is not producing the final diffexp.fits file. It is creating a tmp/test_dr2/diff directory and adding subdirectories for supernovae that we calibrated, but there are never the final images. Here is a snippet of error from SN2011iu. The stacks are all good for this one and it is calibrated.

It makes the temporary fits files that it deposits in /tmp/test_dr2/, but never deletes them or creates the /tmp/test_dr2/diff/$supernova$/diffexp.fits files from them.

From MWV: " There's something wrong with filename mapper. It's not figuring out what to call the file. Will have to think about this."

Error from Cori:

[cori03 wiyn_lsst] python sub_wiyn_dr2.py $SCRATCH/tmp/test_dr2              
Processing SN2011iu                                                          
Running ImageDifferenceTask.parseAndrun with args:                           
['/global/cscratch1/sd/kap146/tmp/test_dr2', '--id', 'fileroot=SN2011iu_A_H_20120108', '--templateId', 'fileroot=SN2011iu_A_H_20120925', '--output', '/global/cscratch1/sd/kap146/tmp/test_dr2', '--configfile', 'diffimconfig.py', '--clobber-config', '--clobber-versions']                                                 
root INFO: Running: lsst.pipe.base.cmdLineTask.ImageDifferenceTask.parseAndRun('/global/cscratch1/sd/kap146/tmp/test_dr2', '--id', 'fileroot=SN2011iu_A_H_20120108', '--templateId', 'fileroot=SN2011iu_A_H_20120925', '--output', '/global/cscratch1/sd/kap146/tmp/test_dr2', '--configfile', 'diffimconfig.py', '--clobber-config', '--clobber-versions')                                                                             
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.                       
Use '--' to separate paths from revisions, like this:                                                     
'git <command> [<revision>...] -- [<file>...]'                                                            
fatal: Not a git repository: '/global/homes/w/wmwv/local/lsst/obs_file/.git'                              
imageDifference INFO: Processing DataId(initialdata={'fileroot': 'SN2011iu_A_H_20120108'}, tag=set([]))   
imageDifference.getTemplate INFO: Fetching calexp (DataId(initialdata={'fileroot': 'SN2011iu_A_H_20120925'}, tag=set([]))) as template.                                                                            
imageDifference INFO: Source selection via src product                                                    
/global/common/cori/contrib/lsst/lsstDM/dc1/Linux64/meas_algorithms/12.1-17-g13cfda1+4/python/lsst/meas/algorithms/objectSizeStarSelector.py:399: RuntimeWarning: invalid value encountered in less                 
  bad = numpy.logical_or(bad, width < self.config.widthMin)                                               
/global/common/cori/contrib/lsst/lsstDM/dc1/Linux64/meas_algorithms/12.1-17-g13cfda1+4/python/lsst/meas/algorithms/objectSizeStarSelector.py:400: RuntimeWarning: invalid value encountered in greater              
  bad = numpy.logical_or(bad, width > self.config.widthMax)                                               
imageDifference INFO: Selected 32 / 534 sources for Psf matching (8 for control sample)                   
imageDifference INFO: Subtracting images                                                                  
imageDifference.subtract INFO: Template Wcs : 6.245210,0.816067 -> 6.243156,0.814774                      
imageDifference.subtract INFO: Science Wcs : 6.245101,0.816153 -> 6.243204,0.814880                       
imageDifference.subtract INFO: Astrometrically registering template to science image                      
imageDifference.subtract INFO: templateFwhmPix: 4.73901486328                                             
imageDifference.subtract INFO: scienceFwhmPix: 11.8430608219                                              
imageDifference.subtract INFO: Growing 32 kernel candidate stars by 35 pixels                             
imageDifference.subtract INFO: Selected 32 / 32 sources for KernelCandidacy                               
imageDifference.subtract INFO: Matching Psf FWHM 4.74 -> 11.84 pix                                        
imageDifference.subtract INFO: Final spatial kernel sum 1.120                                             
imageDifference.subtract INFO: Spatial model condition number 3.566e+07                                   
imageDifference.subtract INFO: Doing stats of kernel candidates used in the spatial fit.                  
imageDifference.subtract INFO: 32 candidates total, 18 rejected, 14 used                                  
imageDifference.subtract INFO: Spatial kernel model well constrained; 14 candidates, 3 terms, 27 bases    
imageDifference.subtract INFO: Spatial background model appears well constrained; 14 candidates, 1 terms  
imageDifference FATAL: Failed on dataId=DataId(initialdata={'fileroot': 'SN2011iu_A_H_20120108'}, tag=set([])): [Errno 20] Not a directory                                                                         
Traceback (most recent call last):                                                                        
  File "/global/common/cori/contrib/lsst/lsstDM/dc1/Linux64/pipe_base/12.1-5-g06c326c+4/python/lsst/pipe/base/cmdLineTask.py", line 347, in __call__                                                                
    result = task.run(dataRef, **kwargs)                                                                  
  File "/global/common/cori/contrib/lsst/lsstDM/dc1/Linux64/pipe_base/12.1-5-g06c326c+4/python/lsst/pipe/base/timer.py", line 121, in wrapper                                                                      
    res = func(self, *args, **keyArgs)                                                                    
  File "/global/common/cori/contrib/lsst/lsstDM/dc1/Linux64/pipe_tasks/12.1-20-g324f6d3+4/python/lsst/pipe/tasks/imageDifference.py", line 521, in run                                                              
    sensorRef.put(subtractRes.matchedExposure, self.config.coaddName + "Diff_matchedExp")                 
  File "/global/common/cori/contrib/lsst/lsstDM/dc1/Linux64/daf_persistence/12.1-17-g9654cba+4/python/lsst/daf/persistence/butlerSubset.py", line 216, in put                                                       
    self.butlerSubset.butler.put(obj, datasetType, self.dataId, doBackup=doBackup, **rest)                
  File "/global/common/cori/contrib/lsst/lsstDM/dc1/Linux64/daf_persistence/12.1-17-g9654cba+4/python/lsst/daf/persistence/butler.py", line 784, in put                                                             
    location.getRepository().write(location, obj)                                                         
  File "/global/common/cori/contrib/lsst/lsstDM/dc1/Linux64/daf_persistence/12.1-17-g9654cba+4/python/lsst/daf/persistence/repository.py", line 144, in write                                                       
    return self._storage.write(butlerLocation, obj)                                                       
  File "/global/common/cori/contrib/lsst/lsstDM/dc1/Linux64/daf_persistence/12.1-17-g9654cba+4/python/lsst/daf/persistence/posixStorage.py", line 229, in write                                                    
    self.persistence.persist(obj, storageList, additionalData)                                            
  File "/global/common/cori/contrib/lsst/lsstDM/dc1/Linux64/miniconda2/3.19.0.lsst4/lib/python2.7/contextlib.py", line 24, in __exit__                                                                              
    self.gen.next()                                                                                       
  File "/global/common/cori/contrib/lsst/lsstDM/dc1/Linux64/daf_persistence/12.1-17-g9654cba+4/python/lsst/daf/persistence/safeFileIo.py", line 126, in SafeFilename                                               
    os.rename(tempName, name)                                                                             
OSError: [Errno 20] Not a directory  

Run subtractions for DR1 fields with references.

  1. Run subtraction for SN~2011hb (Host images taken 2013B)
  2. Run subtraction for SN~2011iu (Host images taken 2012B)
  3. Run subtraction for SN~2011gy (Host images taken 2012A+B)
  4. Run subtraction for PTF~11owc (Host images taken 2012A+B)
#Name                    semester    RA            Dec      z       approxTmax n_J n_H n_K Host_J  Host_H  Host_K Super-LOTIS comments
PTF11mty                 2011B  21:34:05.20   +10:25:24.6   0.077    20111001   2   2   0  2012B     2012B     NA        ...  "ATEl 3668"
PTF11owc                 2011B  09:16:10.05   +49:37:30.7   0.07     20111102   3   3   0  2012A     2012A+B   NA        ...  "ATEL 3739; Can't find SN"
SN2011gy                 2011B  03:29:35.319  +40:52:02.93  0.017    20111031   4   4   0  2012B     2012A+B   NA        ...  "CBET 2871; Updated Position"
SN2011iu                 2011B  23:51:02.342  +46:43:21.55  0.046    20111129   2   2   0  2012B     2012B     NA        ...  "CBET 2939; Updated position"
LSQ12fuk                 2012B  04:58:15.927  -16:17:58.14  0.02     20121101   4   4   0  2013B     2013B     NA        ...  "ATEL 4537; Updated position"
PSNJ07250042+2347030     2012B  07:25:00.408  +23:47:03.15  0.018    20121018   5   5   0  2013B     2013B     NA        ...  "ATEL 4497; Updated position"
PTF11qzq                 2011B  07:19:27.311  +54:13:48.84  0.06     20111210   2   2   0  2013B     2012B     NA        ...  "ATEL 3798; Updated position"
SN2011hb                 2011B  23:27:55.508  +08:46:45.45  0.029    20111107   3   3   0  2013B     2013B     NA        ...  "CBET 2880, 2011hb, PTF11pbp; Updated Position"
SN2012fm                 2012B  06:56:13.884  +84:04:50.26  0.014    20121028   5   5   0  2013B     2013B     NA        ...  "CBET 3272; Updated position; Images needed 1 deg CCW rotation - perhaps extreme Dec?"

Run processCcd for all DR1 stacks

Presently only 150 of 700 stacks successfully make it through processCcd.py. Get this up to at least 80%.

  1. Debug astrometric matching
  2. Debug reference catalogs
  3. Identify additional failure modes.

Update to work with 12.1 and WIYN+WHIRC data

Update to work with 12.1 and WIYN+WHIRC data

Errors that happen are

python/lsst/meas/base/baseLib_wrap.cc:44109:53: error: no member named 'logging' in namespace 'lsst::pex'

Identify why some fields have multiple patches in the tract.

  • Identify why PTF11qzq and SN2012go have 0,1 patches in addition to 0,0 patches.
  • Address multiple patches for a tract if there are fields where that's necessary.
  • Identify field size. Currently default of 4000x4000 pixels is too big for most fields.

Investigate LSQ13cwp, LSQ13cmt, iPTF13dkl calexp forced-photometry lightcurves

The lightcurves of LSQ13cwp, LSQ13cmt, iPTF13dkl are 0.5 mag discrepant between the DM Science Pipelines analysis and the published R! lightcurves.

  1. Generate lightcurves of the DR1 calibration 2MASS star in these fields
  2. Compare 3 additional 2MASS stars in each field to the DR1 2MASS lightcurves
  3. Compare zeropoints between DM Science Pipelines and DR1 published data+calibrations for each image in these fields.

Switch to including `expnum` in filenames

Include expnum in stack, claexp, and related filenames. This way one doesn't have to know the expnum to look up an image. The Butler will complete a partial dataId to include the expnum information, which is redundant with field+filter.

  1. Switch to repo/test_dr1 instead of tmp/test_dr1 to indicate progress.
  2. Remove expnum from scripts calling stack code.
  3. Verify processCcd still works
  4. Verify coaddition still works
  5. Verify subtraction still works.

This is unfortunately going to get mixed in with getting this to work in new w_2018_14, because I need to update to deal with an int size issue that was fixed as of d_2018_04_06.

Create HTM catalogs for SweetSpot calibration

Create HTM versions of the catalogs instead of the astrometry.net versions.

  1. Just select specific regions needed.
  2. LSQ13cwp region
  3. All regions

Goal is to have catalogs that are more readable and flexible.

Run coadds for all stacks

  1. Get coadds working for five fields
  2. Get coadd photometry working for five fields
  3. Get coadds working for all fields
  4. Get coadd photometry working for all fields

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.