| | 50 | * Due to issues with ppSub and the way files are read, I have had to make a very hacky edit to ppSubCamera.c to allow these diffs to be generated. After loading the warp images (from GPC2), ppSub throws an error when it attempts to read the stack (from GPC1) because the camera in the pmConfig object does not match the camera determined from the stack header. This appears to be a fundamental limitation of the pmFPAfileDefine codebase, and I could not find an easy solution. Instead, upon failing to read the stack, I have the code (near ppSubCamera.c:215) substitute the string GPC1 for GPC2 in the config->cameraName string. This allows a second attempt to read the stack (and all subsequent stack products) to succeed, as the header matches the config expectation. Once all stack products have been loaded, the config->cameraName string is set back to the original GPC2 value, and the difference processing continues as normal. This generates images that appear reasonable, but this edit is not a good long-term solution. The substitution is hardcoded, and ignores the fundamental issue that skycell products should be treated equally by the code, regardless of camera. |