UPDATEWCS.UTILS functions
- stwcs.updatewcs.utils.build_sipname(fobj, fname=None, sipname=None)
Build a SIPNAME from IDCTAB
- Parameters:
fobj (
astropy.io.fits.HDUList
) – file objectfname (string) – science file name (to be used if ROOTNAME is not present
sipname (string) – user supplied SIPNAME keyword
- Return type:
sipname, idctab
- stwcs.updatewcs.utils.build_npolname(fobj, npolfile=None)
Build a NPOLNAME from NPOLFILE
- Parameters:
fobj (
astropy.io.fits.HDUList
) – file objectnpolfile (string) – user supplied NPOLFILE keyword
- Return type:
npolname, npolfile
- stwcs.updatewcs.utils.build_d2imname(fobj, d2imfile=None)
Build a D2IMNAME from D2IMFILE
- Parameters:
fobj (
astropy.io.fits.HDUList
) – file objectd2imfile (string) – user supplied NPOLFILE keyword
- Return type:
d2imname, d2imfile
- stwcs.updatewcs.utils.build_distname(sipname, npolname, d2imname)
Core function to build DISTNAME keyword value without the HSTWCS input.