auromat.debug module

Some methods for easy debugging of parameters on the shell.

auromat.debug.debugHorizon(imagePath, fitsWcsPath, tleFolder, photoTimeDelta=None, altitude=110)[source]

Visualizes the horizon of the modelled earth and inflated earth (=aurora) for the given parameters.

Parameters:photoTimeDelta (datetime.timedelta) – amount to shift the image time (affects calculated camera position and therefore the geodetic coordinates)
auromat.debug.debugPlot(imagePath, fitsWcsPath, tleFolder, photoTimeDelta=None, altitude=0, minElevation=10)[source]

Plot the georeferenced image on a map. This allows to play with the image timestamp and mapping altitude.

Parameters:
  • imagePath
  • fitsWcsPath
  • tleFolder
  • photoTimeDelta (datetime.timedelta) – amount to shift the image time (affects calculated camera position and therefore the geodetic coordinates)
  • altitude – in km
  • minElevation – in degrees
auromat.debug.maskAllInFolder(folderPath, outputFolderPath, ext='jpg', maskFn=<function maskStarfield at 0x865ef50>, preserveExif=True)[source]

Masks the starfield of all images in folderPath and stores the masked images in outputFolderPath.

Parameters:
  • ext (str) – image extension
  • maskFn (function) – the masking function to use, by default the standard algorithm from auromat.solving.masking
  • preserveExif (bool) – whether to copy EXIF data (exiftool must be installed)