×

INDI Library v2.0.0 Released (01 Feb 2023)

Bi-monthly release with major changes to INDI properties and client API in addition to new drivers and improvements.

KStars imagers – help needed

  • Posts: 62
  • Thank you received: 13
While I'm perfectly comfortable with format strings - `man 3 printf` and `man 3 strftime` are familiar references - the world doesn't need another set of application specific "%something" tokens. Taking inspiration from python's string formatting might better, eg.

f"{imagedir}/{target}/{camera}/{filter}/{exposure:.3f}secs/{type}_{timestamp}_{num:04d}.fits" or
"{imagedir}/{target}/{camera}/{filter}/{exposure:.3f}secs/{type}_{timestamp}_{num}.fits".format(**fits_hdr)

You could interpolate pretty much any property from the FITS header, and you wouldn't need to remember what the difference between "%T" vs "%t" means; tokens like "{TEMPERATURE}" "{DATE-OBS}" "{EXPTIME}" are far more obvious.
5 months 3 weeks ago #85353

Please Log in or Create an account to join the conversation.

Time to create page: 0.115 seconds