I cannot seem to find a way of looking at the xisf properties in PI itself, so is there a way of examining the xisf properties in the PI GUI?
The View Explorer window shows all image properties. Right-click on the image and select
Load View Explorer. Scroll down the information panel to inspect all properties under the
properties tree item. If you wish, right-click the information panel and select
View as Text. This allows you to explore all view properties as plain text.
And, perhaps more importantly, is there a way of modifying or adding such properties?
A new Property Explorer window will be available a future release. At present you can do this very easily with a little of JavaScript from the Process Console window.
- Select the image you want to work with.
- Open the Process Console window and enter the following command:
j var view = ImageWindow.activeWindow.mainView;- Example 1: To print a list of all image properties:
j view.properties.join( '\n' );- Example 2: To inspect the value of the standard "Instrument:Telescope:FocalLength" XISF property:
j view.propertyValue( "Instrument:Telescope:FocalLength" );- Example 3: To modify the value of the same property:
j view.setPropertyValue( "Instrument:Telescope:FocalLength", 0.05 );- Example 4: To define a new property that will be stored when the image is saved to a disk file (in XISF format):
j view.setPropertyValue( "Testing:FooBar", 123.456, 0, 128 );- Example 5: To remove an existing property:
j view.deleteProperty( "Testing:FooBar" );I hope this helps. Let me know if you need more information.