Problem using skyCorrection.py and buliding meas_mosaic

Hi,all.
I’m processing hsc data using the hscpipe8.5.3 in centos 7.9,and i have some questions,
first,when I processed skyCorrection.py,warning like:

 raise RuntimeError("Failed to format %r with data %r: %s" % (template, transformedId, e))
RuntimeError: Failed to format '%(pointing)05d/%(filter)s/corr/CORR-%(visit)07d-%(ccd)03d.fits' with data DataId(initialdata={'field': 'VC13', 'ccd': '0', 'pointing': 2236, 'filter': 'HSC-G', 'visit': 141342, 'dateObs': '2018-02-14', 'taiObs': '2018-02-14', 'expTime': 40.0}, tag=set()): %d format: a number is required, not str

then I find in this topic occurs the same problem,and the solutions you give are that I should use meas_mosaic or tell coaddDriver.py to just use the original calibrations from singleFrameDriver.py,

But I wonder the fuctions of means of meas_mosaic,is it just ignore the output in Mosaicking?briefly say, the outputs like positional calibration and flux calibrations?For fearing the data ignore will have bad effect,I choose use the the first suggestion you give,and I follow the first suggestion,but when I scons,warning like:

In file included from include/lsst/meas/mosaic/fluxfit.h:6,
                 from include/lsst/meas/mosaic/FluxFitBoundedField.h:30,
                 from src/FluxFitBoundedField.cc:24:
include/lsst/meas/mosaic/mosaicfit.h:47:51: error: expected ')' before 'coord'
   47 |                 Source(lsst::afw::coord::IcrsCoord coord, double flux=std::numeric_limits<double>::quiet_NaN()) :
      |                       ~                           ^~~~~~
      |                                                   )
include/lsst/meas/mosaic/mosaicfit.h:74:35: error: 'IcrsCoord' in namespace 'lsst::afw::coord' does not name a type
   74 |                 lsst::afw::coord::IcrsCoord getSky() const { return _sky; }
      |                                   ^~~~~~~~~
include/lsst/meas/mosaic/mosaicfit.h:94:35: error: 'IcrsCoord' in namespace 'lsst::afw::coord' does not name a type
   94 |                 lsst::afw::coord::IcrsCoord _sky; // Sky coordinates
      |                                   ^~~~~~~~~
include/lsst/meas/mosaic/mosaicfit.h: In constructor 'lsst::meas::mosaic::Source::Source(const lsst::afw::table::SourceRecord&)':
include/lsst/meas/mosaic/mosaicfit.h:25:69: error: class 'lsst::meas::mosaic::Source' does not have any field named '_sky'
   25 |                _id(record.getId()), _chip(UNSET), _exp(UNSET), _sky(record.getRa(), record.getDec()),
      |                                                                ^~~~

include/lsst/meas/mosaic/mosaicfit.h:26:73: error: 'const class lsst::afw::table::SourceRecord' has no member named 'getCalibFlux'; did you mean 'getCalibInstFlux'?
   26 |            _pixels(record.getX(), record.getY()), _flux(record.getCalibFlux()), _err(record.getCalibFluxErr()),
      |                                                                ^~~~~~~~~~~~
      |                                                                getCalibInstFlux
include/lsst/meas/mosaic/mosaicfit.h:26:102: error: 'const class lsst::afw::table::SourceRecord' has no member named 'getCalibFluxErr'; did you mean 'getCalibInstFluxErr'?
   26 | X(), record.getY()), _flux(record.getCalibFlux()), _err(record.getCalibFluxErr()),
      |                                                                ^~~~~~~~~~~~~~~
      |                                                                getCalibInstFluxErr
include/lsst/meas/mosaic/mosaicfit.h: In constructor 'lsst::meas::mosaic::Source::Source(const lsst::afw::table::SimpleRecord&, const lsst::afw::geom::SkyWcs&)':
include/lsst/meas/mosaic/mosaicfit.h:30:69: error: class 'lsst::meas::mosaic::Source' does not have any field named '_sky'
   30 |                _id(record.getId()), _chip(UNSET), _exp(UNSET), _sky(record.getRa(), record.getDec()),
      |                                                                ^~~~

include/lsst/meas/mosaic/mosaicfit.h:31:44: error: '_sky' was not declared in this scope
   31 |                     _pixels(wcs.skyToPixel(_sky)),
      |                                            ^~~~
include/lsst/meas/mosaic/mosaicfit.h: In constructor 'lsst::meas::mosaic::Source::Source(lsst::meas::mosaic::Source::IdType, lsst::meas::mosaic::Source::ChipType, lsst::meas::mosaic::Source::ExpType, double, double, double, double, double, double, double, double, bool)':
include/lsst/meas/mosaic/mosaicfit.h:64:7: error: class 'lsst::meas::mosaic::Source' does not have any field named '_sky'
   64 |       _sky(lsst::afw::geom::Angle(ra, lsst::afw::geom::degrees), lsst::afw::geom::Angle(dec, lsst::afw::geom::degrees)),
      |       ^~~~
include/lsst/meas/mosaic/mosaicfit.h: In member function 'lsst::geom::Angle lsst::meas::mosaic::Source::getRa() const':
include/lsst/meas/mosaic/mosaicfit.h:75:63: error: 'getSky' was not declared in this scope
   75 |                 lsst::afw::geom::Angle getRa() const { return getSky().getLongitude(); }
      |                                                               ^~~~~~
include/lsst/meas/mosaic/mosaicfit.h: In member function 'lsst::geom::Angle lsst::meas::mosaic::Source::getDec() const':
include/lsst/meas/mosaic/mosaicfit.h:76:64: error: 'getSky' was not declared in this scope
   76 |                 lsst::afw::geom::Angle getDec() const { return getSky().getLatitude(); }
      |                                                                ^~~~~~
include/lsst/meas/mosaic/mosaicfit.h: At global scope:
include/lsst/meas/mosaic/mosaicfit.h:238:21: error: 'IcrsCoord' in namespace 'lsst::afw::coord' does not name a type
  238 |   lsst::afw::coord::IcrsCoord c;
      |                     ^~~~~~~~~
include/lsst/meas/mosaic/mosaicfit.h:250:51: error: 'lsst::afw::coord::IcrsCoord' has not been declared
  250 |                 ConstPtr search(lsst::afw::coord::IcrsCoord const& sky) const;
      |                                                   ^~~~~~~~~
include/lsst/meas/mosaic/mosaicfit.h: In member function 'double lsst::meas::mosaic::KDTree::distance(const lsst::meas::mosaic::Source&) const':
include/lsst/meas/mosaic/mosaicfit.h:264:28: error: 'c' was not declared in this scope
  264 |                     return c.angularSeparation(lsst::afw::coord::IcrsCoord(s.getRa(), s.getDec())).asDegrees();
      |                            ^
include/lsst/meas/mosaic/mosaicfit.h:264:66: error: 'IcrsCoord' is not a member of 'lsst::afw::coord'
  264 |                   return c.angularSeparation(lsst::afw::coord::IcrsCoord(s.getRa(), s.getDec())).asDegrees();
      |                                                                ^~~~~~~~~

In file included from src/FluxFitBoundedField.cc:24:
include/lsst/meas/mosaic/FluxFitBoundedField.h: At global scope:
include/lsst/meas/mosaic/FluxFitBoundedField.h:63:10: error: looser exception specification on overriding virtual function 'virtual bool lsst::meas::mosaic::FluxFitBoundedField::isPersistable() const'
   63 |     bool isPersistable() const override { return true; }
      |          ^~~~~~~~~~~~~
In file included from /data/hscpipe/8.5.3/lsst_home/stack/miniconda3-4.7.10-4d7b902/Linux64/afw/8.1-hsc/include/lsst/afw/math/Function.h:39,
                 from /data/hscpipe/8.5.3/lsst_home/stack/miniconda3-4.7.10-4d7b902/Linux64/afw/8.1-hsc/include/lsst/afw/image/ImageBase.h:42,
                 from /data/hscpipe/8.5.3/lsst_home/stack/miniconda3-4.7.10-4d7b902/Linux64/afw/8.1-hsc/include/lsst/afw/image/Image.h:42,
                 from /data/hscpipe/8.5.3/lsst_home/stack/miniconda3-4.7.10-4d7b902/Linux64/afw/8.1-hsc/include/lsst/afw/math/BoundedField.h:32,
                 from include/lsst/meas/mosaic/FluxFitBoundedField.h:27,
                 from src/FluxFitBoundedField.cc:24:
/data/hscpipe/8.5.3/lsst_home/stack/miniconda3-4.7.10-4d7b902/Linux64/afw/8.1-hsc/include/lsst/afw/table/io/Persistable.h:102:18: note: overridden function is 'virtual bool lsst::afw::table::io::Persistable::isPersistable() const noexcept'
  102 |     virtual bool isPersistable() const noexcept { return false; }
      |                  ^~~~~~~~~~~~~
scons: *** [src/FluxFitBoundedField.os] Error 1
scons: building terminated because of errors.

and a more question is when I processed singleFrameDriver.py,for some visits,I won’t get full images,for example:

ls 02235/HSC-G/corr/ | cut -d '-' -f 1,2 | uniq -c
    103 BKGD-0140838
    100 BKGD-0140870
     66 BKGD-0140902
    103 CORR-0140838
    100 CORR-0140870
     66 CORR-0140902
    103 ICEXPBKGD-0140838
    103 ICEXPBKGD-0140870
    103 ICEXPBKGD-0140902

what cause this happen?It’s it normal?
I don’t konw how to deal with the errors,Has anyone encountered problems like these?
Thank you!

Iguess why I get the problem it’s I use jointcal.pyfor both positional and flux calibrations and I choose to use the below config to skip the skycorrection and process coaddDriver.py directly.

–config makeCoaddTempExp.doApplySkyCorr=False

But the hint like “have 0 good pixels” tell me something must wrong,and finally I find It’s because that I didn’t use fgcmCalibrateTract.py for flux calibration since my rawdata is monochromatic and I should add the config

–config makeCoaddTempExp.externalPhotoCalibName=‘jointcal’

It seems to work, It exists good pixels, but next,the problem like:

sqlite3.OperationError: unable to open databasefile file

How to deal with it and above problems?
Thank you!

Hi @Yuanyu Looks like you figured out how to use jointcal instead instead of meas_mosaic (good choice), and both those config parameter changes make sense.

Re the sqlite error, we can’t help without the whole log. Would you attach that?

Also, giving @jeffcarlin a heads up in advance since I have a feeling that the log you attach might contain a symptom he saw when running coaddDriver last year.

Thank you for your reply
here are part of my log

797 INFO  2021-11-08T23:13:38.278+0800 ip.diffim.generateAlardLuptonBasisList: PSF sigmas are not available or scaling by fwhm disabled, falling back to config values
799 INFO  2021-11-08T23:13:38.375+0800 coaddDriver.makeCoaddTempExp.warpAndPsfMatch.psfMatch: done
799 INFO  2021-11-08T23:13:38.480+0800 coaddDriver.makeCoaddTempExp: Processing calexp 4 of 6 for this Warp: id=DataId(initialdata={'visit': 141628, 'pointing': 2237, 'filter': 'HSC-G', 'ccd': 57, 'field': 'VC13', 'dateObs': '2018-02-15', 'taiObs': '2018-02-15', 'expTime': 40.0, 'tract': 0}, tag=set())
795 INFO  2021-11-08T23:13:38.680+0800 coaddDriver.makeCoaddTempExp.warpAndPsfMatch.psfMatch: Psf-match science exposure to reference
796 INFO  2021-11-08T23:13:38.732+0800 coaddDriver.makeCoaddTempExp.warpAndPsfMatch.psfMatch: done
796 INFO  2021-11-08T23:13:38.752+0800 coaddDriver.makeCoaddTempExp: Processing calexp 4 of 6 for this Warp: id=DataId(initialdata={'visit': 141628, 'pointing': 2237, 'filter': 'HSC-G', 'ccd': 58, 'field': 'VC13', 'dateObs': '2018-02-15', 'taiObs': '2018-02-15', 'expTime': 40.0, 'tract': 0}, tag=set())
799 INFO  2021-11-08T23:13:39.588+0800 coaddDriver.makeCoaddTempExp.warpAndPsfMatch.psfMatch: compute Psf-matching kernel
799 INFO  2021-11-08T23:13:39.641+0800 coaddDriver.makeCoaddTempExp.warpAndPsfMatch.psfMatch: Adjusted dimensions of reference PSF model from (23, 23) to (43, 43)
799 INFO  2021-11-08T23:13:39.808+0800 ip.diffim.generateAlardLuptonBasisList: PSF sigmas are not available or scaling by fwhm disabled, falling back to config values
797 INFO  2021-11-08T23:13:39.949+0800 coaddDriver.makeCoaddTempExp.warpAndPsfMatch.psfMatch: Psf-match science exposure to reference
799 INFO  2021-11-08T23:13:40.437+0800 coaddDriver.makeCoaddTempExp.warpAndPsfMatch.psfMatch: Psf-match science exposure to reference
798 INFO  2021-11-08T23:13:41.027+0800 coaddDriver.makeCoaddTempExp: Reading calexp 4 of 4 for Warp id=DataId(initialdata={'visit': 140902, 'pointing': 2235, 'filter': 'HSC-G', 'ccd': 69, 'field': 'VC13', 'dateObs': '2018-02-13', 'taiObs': '2018-02-13', 'expTime': 40.0}, tag=set())
799 INFO  2021-11-08T23:13:41.286+0800 coaddDriver.makeCoaddTempExp.warpAndPsfMatch.psfMatch: done
799 INFO  2021-11-08T23:13:41.309+0800 coaddDriver.makeCoaddTempExp: Processing calexp 5 of 6 for this Warp: id=DataId(initialdata={'visit': 141628, 'pointing': 2237, 'filter': 'HSC-G', 'ccd': 64, 'field': 'VC13', 'dateObs': '2018-02-15', 'taiObs': '2018-02-15', 'expTime': 40.0, 'tract': 0}, tag=set())
800 INFO  2021-11-08T23:13:41.959+0800 coaddDriver.makeCoaddTempExp.warpAndPsfMatch.psfMatch: compute Psf-matching kernel
795 INFO  2021-11-08T23:13:42.019+0800 coaddDriver.makeCoaddTempExp.warpAndPsfMatch.psfMatch: done
795 INFO  2021-11-08T23:13:42.078+0800 coaddDriver.makeCoaddTempExp: Processing calexp 6 of 6 for this Warp: id=DataId(initialdata={'visit': 141628, 'pointing': 2237, 'filter': 'HSC-G', 'ccd': 64, 'field': 'VC13', 'dateObs': '2018-02-15', 'taiObs': '2018-02-15', 'expTime': 40.0, 'tract': 0}, tag=set())
800 INFO  2021-11-08T23:13:42.162+0800 coaddDriver.makeCoaddTempExp.warpAndPsfMatch.psfMatch: Adjusted dimensions of reference PSF model from (23, 23) to (43, 43)
797 INFO  2021-11-08T23:13:42.592+0800 coaddDriver.makeCoaddTempExp.warpAndPsfMatch.psfMatch: done
797 INFO  2021-11-08T23:13:42.638+0800 coaddDriver.makeCoaddTempExp: directWarp has 4968620 good pixels (28.2%)
797 INFO  2021-11-08T23:13:42.641+0800 coaddDriver.makeCoaddTempExp: psfMatchedWarp has 4890500 good pixels (27.7%)
797 INFO  2021-11-08T23:13:42.645+0800 coaddDriver.makeCoaddTempExp: Persisting deepCoadd_directWarp
800 INFO  2021-11-08T23:13:42.823+0800 ip.diffim.generateAlardLuptonBasisList: PSF sigmas are not available or scaling by fwhm disabled, falling back to config values
795 INFO  2021-11-08T23:13:43.424+0800 coaddDriver.makeCoaddTempExp.warpAndPsfMatch.psfMatch: compute Psf-matching kernel
795 INFO  2021-11-08T23:13:43.481+0800 coaddDriver.makeCoaddTempExp.warpAndPsfMatch.psfMatch: Adjusted dimensions of reference PSF model from (23, 23) to (43, 43)
795 INFO  2021-11-08T23:13:43.668+0800 ip.diffim.generateAlardLuptonBasisList: PSF sigmas are not available or scaling by fwhm disabled, falling back to config values
797 INFO  2021-11-08T23:13:44.201+0800 coaddDriver.makeCoaddTempExp: Persisting deepCoadd_psfMatchedWarp
795 INFO  2021-11-08T23:13:44.266+0800 coaddDriver.makeCoaddTempExp.warpAndPsfMatch.psfMatch: Psf-match science exposure to reference
798 INFO  2021-11-08T23:13:44.661+0800 coaddDriver.makeCoaddTempExp: Processing calexp 1 of 4 for this Warp: id=DataId(initialdata={'visit': 140902, 'pointing': 2235, 'filter': 'HSC-G', 'ccd': 52, 'field': 'VC13', 'dateObs': '2018-02-13', 'taiObs': '2018-02-13', 'expTime': 40.0, 'tract': 0}, tag=set())
795 INFO  2021-11-08T23:13:45.660+0800 coaddDriver.makeCoaddTempExp.warpAndPsfMatch.psfMatch: done
800 INFO  2021-11-08T23:13:45.678+0800 coaddDriver.makeCoaddTempExp.warpAndPsfMatch.psfMatch: Psf-match science exposure to reference
795 INFO  2021-11-08T23:13:45.697+0800 coaddDriver.makeCoaddTempExp: directWarp has 15722249 good pixels (89.1%)
795 INFO  2021-11-08T23:13:45.706+0800 coaddDriver.makeCoaddTempExp: psfMatchedWarp has 15485483 good pixels (87.8%)
797 INFO  2021-11-08T23:13:45.739+0800 coaddDriver.makeCoaddTempExp: Processing Warp 1/3: id=DataId(initialdata={'visit': 141570, 'filter': 'HSC-G', 'patch': '7,5', 'tract': 0}, tag=set())
797 INFO  2021-11-08T23:13:45.746+0800 coaddDriver.makeCoaddTempExp: Reading calexp 1 of 6 for Warp id=DataId(initialdata={'visit': 141570, 'pointing': 2237, 'filter': 'HSC-G', 'ccd': 51, 'field': 'VC13', 'dateObs': '2018-02-15', 'taiObs': '2018-02-15', 'expTime': 40.0}, tag=set())
795 INFO  2021-11-08T23:13:45.761+0800 coaddDriver.makeCoaddTempExp: Persisting deepCoadd_directWarp
799 INFO  2021-11-08T23:13:46.276+0800 coaddDriver.makeCoaddTempExp.warpAndPsfMatch.psfMatch: compute Psf-matching kernel
801 INFO  2021-11-08T23:13:46.393+0800 coaddDriver.makeCoaddTempExp.warpAndPsfMatch.psfMatch: compute Psf-matching kernel
799 INFO  2021-11-08T23:13:46.444+0800 coaddDriver.makeCoaddTempExp.warpAndPsfMatch.psfMatch: Adjusted dimensions of reference PSF model from (23, 23) to (43, 43)
801 INFO  2021-11-08T23:13:46.769+0800 coaddDriver.makeCoaddTempExp.warpAndPsfMatch.psfMatch: Adjusted dimensions of reference PSF model from (23, 23) to (43, 43)
799 INFO  2021-11-08T23:13:46.978+0800 ip.diffim.generateAlardLuptonBasisList: PSF sigmas are not available or scaling by fwhm disabled, falling back to config values
798 INFO  2021-11-08T23:13:47.125+0800 coaddDriver.makeCoaddTempExp.warpAndPsfMatch.psfMatch: compute Psf-matching kernel
798 INFO  2021-11-08T23:13:47.241+0800 coaddDriver.makeCoaddTempExp.warpAndPsfMatch.psfMatch: Adjusted dimensions of reference PSF model from (23, 23) to (41, 41)
798 INFO  2021-11-08T23:13:47.579+0800 ip.diffim.generateAlardLuptonBasisList: PSF sigmas are not available or scaling by fwhm disabled, falling back to config values
801 INFO  2021-11-08T23:13:47.947+0800 ip.diffim.generateAlardLuptonBasisList: PSF sigmas are not available or scaling by fwhm disabled, falling back to config values
795 INFO  2021-11-08T23:13:48.710+0800 coaddDriver.makeCoaddTempExp: Persisting deepCoadd_psfMatchedWarp
798 INFO  2021-11-08T23:13:48.831+0800 coaddDriver.makeCoaddTempExp.warpAndPsfMatch.psfMatch: Psf-match science exposure to reference
797 INFO  2021-11-08T23:13:48.954+0800 coaddDriver.makeCoaddTempExp: Reading calexp 2 of 6 for Warp id=DataId(initialdata={'visit': 141570, 'pointing': 2237, 'filter': 'HSC-G', 'ccd': 52, 'field': 'VC13', 'dateObs': '2018-02-15', 'taiObs': '2018-02-15', 'expTime': 40.0}, tag=set())
799 INFO  2021-11-08T23:13:48.955+0800 coaddDriver.makeCoaddTempExp.warpAndPsfMatch.psfMatch: Psf-match science exposure to reference
796 INFO  2021-11-08T23:13:50.082+0800 coaddDriver.makeCoaddTempExp.warpAndPsfMatch.psfMatch: compute Psf-matching kernel
796 INFO  2021-11-08T23:13:50.534+0800 coaddDriver.makeCoaddTempExp.warpAndPsfMatch.psfMatch: Adjusted dimensions of reference PSF model from (23, 23) to (43, 43)
798 INFO  2021-11-08T23:13:51.414+0800 coaddDriver.makeCoaddTempExp.warpAndPsfMatch.psfMatch: done
798 INFO  2021-11-08T23:13:51.431+0800 coaddDriver.makeCoaddTempExp: Processing calexp 2 of 4 for this Warp: id=DataId(initialdata={'visit': 140902, 'pointing': 2235, 'filter': 'HSC-G', 'ccd': 53, 'field': 'VC13', 'dateObs': '2018-02-13', 'taiObs': '2018-02-13', 'expTime': 40.0, 'tract': 0}, tag=set())
795 INFO  2021-11-08T23:13:51.671+0800 coaddDriver: localhost.localdomain:795: Finished warping DataId(initialdata={'tract': 0, 'filter': 'HSC-G', 'patch': '2,5'}, tag=set())
796 INFO  2021-11-08T23:13:51.736+0800 ip.diffim.generateAlardLuptonBasisList: PSF sigmas are not available or scaling by fwhm disabled, falling back to config values
CameraMapper INFO: Loading exposure registry from /data/HSC/registry.sqlite3
CameraMapper INFO: Loading calib registry from /data/HSC/CALIB/calibRegistry.sqlite3
WARNING: AstropyDeprecationWarning: The private astropy._erfa module has been made into its own package, pyerfa, which is a dependency of astropy and can be imported directly using "import erfa" [astropy._erfa]
OperationalError on localhost.localdomain:794 in reduce: unable to open database file
Traceback (most recent call last):
  File "/data/hscpipe/8.5.3/lsst_home/stack/miniconda3-4.7.10-4d7b902/Linux64/ctrl_pool/8.0-hsc+1/python/lsst/ctrl/pool/pool.py", line 112, in wrapper
  File "/data/hscpipe/8.5.3/lsst_home/stack/miniconda3-4.7.10-4d7b902/Linux64/ctrl_pool/8.0-hsc+1/python/lsst/ctrl/pool/pool.py", line 239, in wrapper
  File "/data/hscpipe/8.5.3/lsst_home/stack/miniconda3-4.7.10-4d7b902/Linux64/ctrl_pool/8.0-hsc+1/python/lsst/ctrl/pool/pool.py", line 737, in reduce
  File "/data/hscpipe/8.5.3/lsst_home/stack/miniconda3-4.7.10-4d7b902/Linux64/ctrl_pool/8.0-hsc+1/python/lsst/ctrl/pool/pool.py", line 270, in recv
  File "mpi4py/MPI/Comm.pyx", line 1173, in mpi4py.MPI.Comm.recv
  File "mpi4py/MPI/msgpickle.pxi", line 303, in mpi4py.MPI.PyMPI_recv
  File "mpi4py/MPI/msgpickle.pxi", line 269, in mpi4py.MPI.PyMPI_recv_match
  File "mpi4py/MPI/msgpickle.pxi", line 111, in mpi4py.MPI.Pickle.load
  File "mpi4py/MPI/msgpickle.pxi", line 101, in mpi4py.MPI.Pickle.cloads
  File "/data/hscpipe/8.5.3/lsst_home/stack/miniconda3-4.7.10-4d7b902/Linux64/daf_persistence/8.0-hsc/python/lsst/daf/persistence/butler.py", line 1625, in _unreduce
  File "/data/hscpipe/8.5.3/lsst_home/stack/miniconda3-4.7.10-4d7b902/Linux64/daf_persistence/8.0-hsc/python/lsst/daf/persistence/butler.py", line 532, in __init__
  File "/data/hscpipe/8.5.3/lsst_home/stack/miniconda3-4.7.10-4d7b902/Linux64/daf_persistence/8.0-hsc/python/lsst/daf/persistence/butler.py", line 543, in _initRepo
  File "/data/hscpipe/8.5.3/lsst_home/stack/miniconda3-4.7.10-4d7b902/Linux64/daf_persistence/8.0-hsc/python/lsst/daf/persistence/butler.py", line 543, in _initRepo
  File "/data/hscpipe/8.5.3/lsst_home/stack/miniconda3-4.7.10-4d7b902/Linux64/daf_persistence/8.0-hsc/python/lsst/daf/persistence/butler.py", line 548, in _initRepo
  File "/data/hscpipe/8.5.3/lsst_home/stack/miniconda3-4.7.10-4d7b902/Linux64/daf_persistence/8.0-hsc/python/lsst/daf/persistence/repository.py", line 140, in __init__
  File "/data/hscpipe/8.5.3/lsst_home/stack/miniconda3-4.7.10-4d7b902/Linux64/daf_persistence/8.0-hsc/python/lsst/daf/persistence/repository.py", line 169, in _initMapper
  File "/data/hscpipe/8.5.3/lsst_home/stack/miniconda3-4.7.10-4d7b902/Linux64/obs_subaru/8.4-hsc-6-g681b0a8d+2/python/lsst/obs/hsc/hscMapper.py", line 52, in __init__
  File "/data/hscpipe/8.5.3/lsst_home/stack/miniconda3-4.7.10-4d7b902/Linux64/obs_base/8.5.1-hsc/python/lsst/obs/base/cameraMapper.py", line 255, in __init__
  File "/data/hscpipe/8.5.3/lsst_home/stack/miniconda3-4.7.10-4d7b902/Linux64/obs_base/8.5.1-hsc/python/lsst/obs/base/cameraMapper.py", line 877, in _setupRegistry
  File "/data/hscpipe/8.5.3/lsst_home/stack/miniconda3-4.7.10-4d7b902/Linux64/daf_persistence/8.0-hsc/python/lsst/daf/persistence/registries.py", line 92, in create
  File "/data/hscpipe/8.5.3/lsst_home/stack/miniconda3-4.7.10-4d7b902/Linux64/daf_persistence/8.0-hsc/python/lsst/daf/persistence/registries.py", line 415, in __init__
sqlite3.OperationalError: unable to open database file
application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0

And the former question,I choose to process 103 CCDs per visit, but after process singleFrameDriver.py , some visits won’t get 103 CCDs, what cause it,is that normal?I also want to know if it’s the following that cause the error or not ,if not.Is the disabled severe or normal?

796 INFO  2021-11-08T23:13:51.736+0800 ip.diffim.generateAlardLuptonBasisList: PSF sigmas are not available or scaling by fwhm disabled, falling back to config values

Thank you!

OK, the error message is just a secondary to the fact that the butler is part of the error report and has to be pickled. The problem is occurring earlier. The last time I saw this error, it was because it couldn’t find the external calibs. We need more of the log, to tell for sure:

  • attach the whole log or one with just 1 process running
  • Double check that you have data products of type jointcal_photoCalib in your repo. They will look like
    template: jointcal-results/%(filter)s/%(tract)04d/jointcal_photoCalib-%(visit)07d-%(ccd)03d.fits
  • configs on the commandline don’t need quotes. e.g. try changing it to
--config makeCoaddTempExp.externalPhotoCalibName=jointcal