@mcclearyj found the following error when using image files with the image not in HDU extension 0:
ValueError: WCS does not have longitude type of 'RA', therefore (ra, dec) data can not be returned
While GalSim natively can handle this case with ext : 1, for example, this doesn't currently propagate to injector.py. I believe the fix is simply to add the following to injector.AddOnImageBuilder.buildImage():
try:
ext = config['wcs']['ext']
except KeyError:
ext = 0
initial_image = galsim.fits.read(initial_image_name, hdu=ext)
@mcclearyj: Can you confirm that this solved your issue? Thanks!
@mcclearyj found the following error when using image files with the image not in HDU extension 0:
While GalSim natively can handle this case with
ext : 1, for example, this doesn't currently propagate toinjector.py. I believe the fix is simply to add the following toinjector.AddOnImageBuilder.buildImage():@mcclearyj: Can you confirm that this solved your issue? Thanks!