×

INDI Library v1.9.6 Released (21 May 2022)

Bi-monthly INDI Library released with new drivers and bug fixes.

file numbering?

  • Posts: 173
  • Thank you received: 10

file numbering? was created by Steve

Hi again guys
I took a sequence of spectra shots of Altair with my spectroscope last night (my first sequence using Ekos!) and all the files were numbered like so Altair_01,Altair_02,Altair_03 ......and so on.
The software I use to process the spectra requires the files to be numbered like Altair-1,Altair-2,Altair-3 ......... and so on how would I setup the sequence to save them like that if possible please?
thanks
Steve
8 years 2 weeks ago #1267

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

Replied by Jasem Mutlaq on topic file numbering?

rename 's/\_/-/g' *.fits -v

This should rename all the fits to use - instead of _
Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
8 years 2 weeks ago #1271

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

  • Posts: 173
  • Thank you received: 10

Replied by Steve on topic file numbering?

Thanks Jasem, would that take care of the actual numbers too eg 1 instead of 01?
Steve
8 years 2 weeks ago #1272

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

  • Posts: 173
  • Thank you received: 10

Replied by Steve on topic file numbering?

Hi
Just tried the above suggestion by Jasem and the files will rename from Altair_01 to Altair-01 fine but the spectroscopy software I use won`t allow a trailing `0` and wondering if rename 's/\_/-/g' *.fits -v can be tweaked to allow this please?.
A further possibility is that the software I use has a feature which will renumber Maxim files such as Altair-001 to Altair-1 so if the above tweak can`t cope with changing a file from _01 to -1 then can it be altered to change from _01 to -001 and then I can use the softwares Maxim feature to get the correct format?
thanks again
Steve
8 years 2 weeks ago #1276

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

Replied by Jasem Mutlaq on topic file numbering?

I would think just adding 0 after _ in the command above should do it.
rename 's/\_0/-/g' *.fits -v
Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
8 years 2 weeks ago #1277

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

  • Posts: 173
  • Thank you received: 10

Replied by Steve on topic file numbering?

Brilliant! thats just the thing Jasem :cheer:
Steve
8 years 2 weeks ago #1279

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

Time to create page: 0.576 seconds