file nrs
-
- Posts: 353
- Joined: 07 Dec 2018, 15:04
file nrs
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
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
-
- Posts: 353
- Joined: 07 Dec 2018, 15:04
Re: file nrs
Arnold,
Not sure what the actual problem is....
You can name your sequence to suit and the images are indexed by 1.
Does this help?
Not sure what the actual problem is....
You can name your sequence to suit and the images are indexed by 1.
Does this help?
-
- Posts: 353
- Joined: 07 Dec 2018, 15:04
Re: file nrs
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
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
-
- Posts: 353
- Joined: 07 Dec 2018, 15:04
Re: file nrs
Hmmm
Sounds like a real limitation to ISIS!!??
Sounds like a real limitation to ISIS!!??
-
- Posts: 353
- Joined: 07 Dec 2018, 15:04
Re: file nrs
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
It does however produce extra files....
Regards Arnold
-
- Posts: 353
- Joined: 07 Dec 2018, 15:04
Re: file nrs
Does Isis accept flat101 .. flat109 ?
If yes, you could make a sequence starting from 101.
If yes, you could make a sequence starting from 101.
-
- Posts: 353
- Joined: 07 Dec 2018, 15:04
Re: file nrs
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:
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-".
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
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:
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-".
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
-
- Posts: 353
- Joined: 07 Dec 2018, 15:04
Re: file nrs
Thanks Paolo!
Great "little" program
Regards Arnold
Great "little" program
Regards Arnold
-
- Posts: 353
- Joined: 07 Dec 2018, 15:04
Re: file nrs
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
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
-
- Posts: 353
- Joined: 07 Dec 2018, 15:04
Re: file nrs
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
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