Hello
I am having some issues with the online tutorial linked here,
https://pipelines.lsst.io/getting-started/data-setup.html
I am using Docker to access the lsst pipeline container to get the example fits images displayed using DS9, and I have been getting through the tutorial up until the creation of the butler repository. When I attempt to load that section:
ingestImages.py DATA $TESTDATA_CI_HSC_DIR/raw/*.fits --mode=link
I get the errors:
Downloading https://hpiers.obspm.fr/iers/bul/bulc/Leap_Second.dat
|================================================================================================================================| 1.3k/1.3k (100.00%) 0s
root INFO: Loading config overrride file ‘/opt/lsst/software/stack/stack/miniconda3-py37_4.8.2-cb4e2dc/Linux64/obs_subaru/21.0.0+d401af1dcd/config/ingest.py’
HscMapper WARN: Unable to find calib root directory
CameraMapper INFO: Loading Posix exposure registry from /opt/lsst/software/stack/DATA
ingest WARN: Failed to ingest file /opt/lsst/software/stack/testdata_ci_hsc/raw/HSCA90333426.fits: Error parsing /opt/lsst/software/stack/testdata_ci_hsc/raw/HSCA90333426.fits
Traceback (most recent call last):
File “/opt/lsst/software/stack/stack/miniconda3-py37_4.8.2-cb4e2dc/Linux64/pipe_tasks/21.0.0+44ca056b81/python/lsst/pipe/tasks/ingest.py”, line 569, in runFile
fileInfo, hduInfoList = self.parse.getInfo(infile)
File “/opt/lsst/software/stack/stack/miniconda3-py37_4.8.2-cb4e2dc/Linux64/pipe_tasks/21.0.0+44ca056b81/python/lsst/pipe/tasks/ingest.py”, line 80, in getInfo
md = readMetadata(filename, self.config.hdu)
lsst.pex.exceptions.wrappers.FitsError:
File “src/fits.cc”, line 1578, in lsst::afw::fits::Fits::Fits(const string&, const string&, int)
cfitsio error: error reading from FITS file (108) : Opening file ‘/opt/lsst/software/stack/testdata_ci_hsc/raw/HSCA90333426.fits’ with mode ‘r’
cfitsio error stack:
Error reading data buffer from file:
/opt/lsst/software/stack/testdata_ci_hsc/raw/HSCA90333426.fits
ffopen could not interpret primary array header of file:
/opt/lsst/software/stack/testdata_ci_hsc/raw/HSCA90333426.fits
{0}
lsst::afw::fits::FitsError: 'cfitsio error: error reading from FITS file (108) : Opening file ‘/opt/lsst/software/stack/testdata_ci_hsc/raw/HSCA90333426.fits’ with mode ‘r’
cfitsio error stack:
Error reading data buffer from file:
/opt/lsst/software/stack/testdata_ci_hsc/raw/HSCA90333426.fits
ffopen could not interpret primary array header of file:
/opt/lsst/software/stack/testdata_ci_hsc/raw/HSCA90333426.fits
’
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “/opt/lsst/software/stack/stack/miniconda3-py37_4.8.2-cb4e2dc/Linux64/pipe_tasks/21.0.0+44ca056b81/python/lsst/pipe/tasks/ingest.py”, line 605, in run
self.runFile(infile, registry, args, pos)
File “/opt/lsst/software/stack/stack/miniconda3-py37_4.8.2-cb4e2dc/Linux64/pipe_tasks/21.0.0+44ca056b81/python/lsst/pipe/tasks/ingest.py”, line 572, in runFile
raise RuntimeError(f"Error parsing {infile}") from e
RuntimeError: Error parsing /opt/lsst/software/stack/testdata_ci_hsc/raw/HSCA90333426.fits
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “/opt/lsst/software/stack/stack/miniconda3-py37_4.8.2-cb4e2dc/Linux64/pipe_tasks/21.0.0+44ca056b81/bin/ingestImages.py”, line 3, in
IngestTask.parseAndRun()
File “/opt/lsst/software/stack/stack/miniconda3-py37_4.8.2-cb4e2dc/Linux64/pipe_tasks/21.0.0+44ca056b81/python/lsst/pipe/tasks/ingest.py”, line 411, in parseAndRun
task.run(args)
File “/opt/lsst/software/stack/stack/miniconda3-py37_4.8.2-cb4e2dc/Linux64/pipe_tasks/21.0.0+44ca056b81/python/lsst/pipe/tasks/ingest.py”, line 609, in run
raise IngestError(f"Failed to ingest file {infile}", infile, pos) from exc
lsst.pipe.tasks.ingest.IngestError: Failed to ingest file /opt/lsst/software/stack/testdata_ci_hsc/raw/HSCA90333426.fits
I have followed the tutorial as best I can, including adding the gitconfig and gitcredentials files using vi into the container, but I am still getting this issue.
Could anyone please assist with this issue?
Sincerely
Oliver Bartlett