Warren,
From the top of my head, I think that if you put 'flat' in the file name, BPP will infer the type from the file name if it does not find a FITS keyword. I have no access to PI right here, but there is the following code in the PJSR engine:
if ( imageType == ImageType.UNKNOWN )
{
// If the image type still unknown, try to infer it from the file name.
var fileName = File.extractName( filePath ).toLowerCase();
if ( fileName.has( "bias" ) )
imageType = ImageType.BIAS;
else if ( fileName.has( "dark" ) )
imageType = ImageType.DARK;
else if ( fileName.has( "flat" ) )
imageType = ImageType.FLAT;
else if ( fileName.has( "light" ) )
imageType = ImageType.LIGHT;
else
{
this.diagnosticMessages.push( "Unable to determine frame type: " + filePath );
return false;
}
}
Maybe this can help you, but this does not solve the problem of pier side, temperature and so on and other incompatibilities between common image sources and PI.
I am toying since some time with the idea of writing a script that can convert common FITS files to the PI desired specific format, maybe flipping over flipped image, converting range and maybe adding keyword by type. I have some code, but not ready for prime time before a few weeks (PI relativistic weeks!).
-- bitli