British Astronomical Association
Supporting amateur astronomers since 1890

Secondary menu

Main menu

Home Forums Spectroscopy
Terms of use

Batch processing spectra

6 posts / 0 new
Last post
andrew.j.smith1905's picture
Offline
Last seen: 21 hours 48 min ago
Joined: 02/12/2016 - 12:22
Batch processing spectra

I have now a accumulated a number of spectra of M Dwarf flares. I need to process 50 to 100 spectra per flare as a time series. I.e. reducing each one individually.

Can anyone point me to the best software that can manage this or do I need to revisit IRAF.

Regards Andrew 

Robin Leadbeater's picture
Offline
Last seen: 44 min 39 sec ago
Joined: 05/03/2014 - 00:50
ISIS

Hi Andrew,

If you untick the box that deletes the intermediate files, ISIS saves the individual profiles in a time series (as @pro_n.fit)

Cheers

Robin

Robin Leadbeater's picture
Offline
Last seen: 44 min 39 sec ago
Joined: 05/03/2014 - 00:50
a quick example

a quick example, red is the final profile from the individuals

andrew.j.smith1905's picture
Offline
Last seen: 21 hours 48 min ago
Joined: 02/12/2016 - 12:22
Thanks Robin

Thanks Robin, that might be just what I need. Just got to work out how to easily rename the files in a way ISIS expects. I have a rename program that should work!

forrest's picture
Offline
Last seen: 1 month 5 days ago
Joined: 19/06/2017 - 18:51
File renaming for batch processing

Hi Andy,

I use MaximDL for spectrum image acquisition.  It does not name the files in a way that ISIS can work with so I wrote this little script a few years ago to rename the files to work with ISIS.  What it is actually doing in this case is removing leading '0's in the sequence numbering to match ISIS requirements.  I put a copy of the script which I call ISSIS-rename.ps1 in the folder with the raw spectrum files and then right-click on it and choose Run with PowerShell.  I would imagine that you could modify this script to work with the files created by your acquisition software.  Hope this helps.

Woody Sims

Dir | Rename-Item –NewName { $_.name –replace “-0“,”-” }

Dir | Rename-Item –NewName { $_.name –replace “-0“,”-” }

Dir | Rename-Item –NewName { $_.name –replace “-0“,”-” }

andrew.j.smith1905's picture
Offline
Last seen: 21 hours 48 min ago
Joined: 02/12/2016 - 12:22
Thanks

Thanks Woody, I will give that a go.  Regards Andrew