Welcome, Guest
Username: Password: Remember me
08 Apr 2018
INDI development team is happy to announce the release of INDI Library v1.7.0. This new exciting release builds on the maturity of INDI Library and comes with many new supported devices and fixes for existing drivers.
Read More...
  • Page:
  • 1

TOPIC: file numbering?

file numbering? 4 years 1 month ago #1267

  • Gasman
  • Gasman's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 173
  • Karma: 1
  • Thank you received: 10
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

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

file numbering? 4 years 1 month ago #1271

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

This should rename all the fits to use - instead of _

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

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info

file numbering? 4 years 1 month ago #1272

  • Gasman
  • Gasman's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 173
  • Karma: 1
  • Thank you received: 10
Thanks Jasem, would that take care of the actual numbers too eg 1 instead of 01?
Steve

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

file numbering? 4 years 1 month ago #1276

  • Gasman
  • Gasman's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 173
  • Karma: 1
  • Thank you received: 10
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

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

file numbering? 4 years 1 month ago #1277

I would think just adding 0 after _ in the command above should do it.
rename 's/\_0/-/g' *.fits -v

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

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info

file numbering? 4 years 1 month ago #1279

  • Gasman
  • Gasman's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 173
  • Karma: 1
  • Thank you received: 10
Brilliant! thats just the thing Jasem :cheer:
Steve

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

  • Page:
  • 1
Time to create page: 0.084 seconds

Login

3rd Party

Choose from the numerous 3rd party INDI drivers to suit your needs!

Got Problem?

Check out the FAQ, the forum, and the bug tracking system to resolve any issues you might have!
You can also subscribe to INDI newsletter and development mailing lists to get the latest updates on INDI!


Gallery

Replica

Why INDI

Replica