Skip to content

astrometric scaling of fgain #28

@hgao-astro

Description

@hgao-astro

swarp/src/field.c

Lines 1068 to 1077 in bf4f496

if (inscale!=0.0 && outscale!=0.0)
{
if (scaleflag)
{
field->fascale = (outscale/inscale);
field->fsaturation = field->saturation*field->fascale;
}
else
field->fgain = field->gain*(inscale/outscale);
}

Dear SWarp authors,

I don't understand why the effective gain is scaled by inscale/outscale instead of outscale/inscale when pixel values are not scaled. When resampling images to larger pixels, the variance should become smaller and therefore the effective gain should be larger, given that pixel values are not scaled up. Let me know if there was a misunderstanding of the codes.

Thanks,
Hua

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions