file nrs

Main forum about Astroart
Post Reply
Forum_2015
Posts: 358
Joined: 07 Dec 2018, 15:04

file nrs

Post by Forum_2015 »

Hi all,

Perhaps an old question, but is there a way to avoid the leading zero's in the file nrs when making a sequence of images?
This because I use Isis which doesn't work with leading zero's....

Regards Arnold

Forum_2015
Posts: 358
Joined: 07 Dec 2018, 15:04

Re: file nrs

Post by Forum_2015 »

Arnold,
Not sure what the actual problem is....
You can name your sequence to suit and the images are indexed by 1.
aa5_file numbers.JPG
Does this help?

Forum_2015
Posts: 358
Joined: 07 Dec 2018, 15:04

Re: file nrs

Post by Forum_2015 »

Hi Ken,

I am back to using Isis...
Isis expects a file name like flat-1 and not flat-001, I can use flat-00 but the process will stop at 9 images, flat-010 will not be recognized....

Regards Arnold

Forum_2015
Posts: 358
Joined: 07 Dec 2018, 15:04

Re: file nrs

Post by Forum_2015 »

Hmmm
Sounds like a real limitation to ISIS!!??

Forum_2015
Posts: 358
Joined: 07 Dec 2018, 15:04

Re: file nrs

Post by Forum_2015 »

I found the solution. There is a function in Isis to convert MaximDL filenrs to Isis nrs, which is what I want.
It does however produce extra files....

Regards Arnold

Forum_2015
Posts: 358
Joined: 07 Dec 2018, 15:04

Re: file nrs

Post by Forum_2015 »

Does Isis accept flat101 .. flat109 ?
If yes, you could make a sequence starting from 101.

Forum_2015
Posts: 358
Joined: 07 Dec 2018, 15:04

Re: file nrs

Post by Forum_2015 »

Hi Arnold, I use Bulk Rename Utility, a free file renaming software:

http://www.bulkrenameutility.co.uk/Main_Intro.php

It just renames, does not produce duplicates like ISIS tool. Converting sequential numbers is very quick (I spend only a few seconds before starting the ISIS session).

To convert 001, 002,... 010... sequence into ISIS numbering system, use the follow option:
bulk_rename_utility_ISIS.jpg
It is important to order files by name before select them for renaming.

and ISIS, in General tab, requires a dash into Object suffix field, otherwise it not browse correctly the images in tab 1. For the present example ISIS generic name is "pi_aqr-".
ISIS_suffix.jpg
If you do not use any separator character between the name and the sequential number (Ken's names, from what I see), the re-numbering is equally valid.

Let me know if something is not clear.

Best wishes for a happy new year to everyone!
Paolo

Forum_2015
Posts: 358
Joined: 07 Dec 2018, 15:04

Re: file nrs

Post by Forum_2015 »

Thanks Paolo!
Great "little" program ;-)

Regards Arnold

Forum_2015
Posts: 358
Joined: 07 Dec 2018, 15:04

Re: file nrs

Post by Forum_2015 »

I use a small Windows Powershell script called 'ISIS-rename.ps1' for this purpose. It contains the following two lines
Dir | Rename-Item –NewName { $_.name –replace “-0“,”-” }
Dir | Rename-Item –NewName { $_.name –replace “-0“,”-” }

Suppose AA5 names the spectral image files 'image-001'....'image-010'..., etc.

I copy the .ps1 file into the directory containing the spectra, right-click on the .ps1 filename and select 'Run with Powershell'. After a few seconds all the spectral files are renamed as 'image-1'.....'image-10'...., etc, compatible with ISIS. Magic!

David

Forum_2015
Posts: 358
Joined: 07 Dec 2018, 15:04

Re: file nrs

Post by Forum_2015 »

Fantastic! Thanks a lot David!

My first attempt had gone wrong due to user permissions restricted on my PC (maybe a default WIN setting?)
So I recommend to check with "Get-ExecutionPolicy" PowerShell command.
If returns "restricted", issue the command "Set-ExecutionPolicy unrestricted" (run PowerShell as administrator)

Paolo

Post Reply