Skip to content

Feature request: revised file naming format from Telescope Pointing Script. #7

@MacDaddy1660B

Description

@MacDaddy1660B

AJT requests a different naming format for the pointing data file from the Telescope pointing data. It was mistakenly posted in a separate issue #6 :

#6 (comment)

It says:

rom AJT:

I think this is the correct file: https://github.com/ApachePointObservatory/TUI3/blob/e76f9b42326ab5a3b7b8cc9e9070d44f36077a48/TUI/Scripts/Telescope/Pointing%20Data.py

But I don't see a ... and dropdown menu to copy specific lines of code.

This is line 733 and 744:

currDateStr = isoDateTimeFromPySec(pySec=None, nDig=1)

ptDataName = "ptdata_%s.dat" % (currDateStr,)

ptdata_%s.dat is the current filename, which currently outputs looking like this: ptdata_2023-08-23T00:01:03.7.dat

Preferably, it would look like ptdata_20230823_000102.dat, or more like the ecam mask images--the MaskImages.py script does this using the time package and:

date=time.strftime('%y%m%d_%H%M%S')

name=dir+'ecam/ecam_flat_'+date+'.'+str(x)+'.fits'

so maybe we could just import time and do it that way, instead of changing anything in the RO package?

I can probably make these edits, but what's the correct way to do that?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions