Hi
I am new to this forum and don’t know much about the data. I want to convert SLSTR data to geotiff file band wise( 1 image for each band). i want to use the command line tool to achieve this. Can anyone please let know the process/commands to perform this operation.
you could create an xml file which defines these steps (using the graph builder) and then call it from the command line naming the source and target product:
This can be opened as another thread but here is the problem while converting to geotiff.
So first i tried to convert whole s7_bt_in image to bigtiff (successful). Then I opened the converted image in envi, compared the latlong with original image opened in snap. For the same place, envi shows different latlong to snap.myGraph.xml (1.3 KB)
Thank you for your reply. I created the xml in the graph builder and it worked fine. Then I used the same xml to run it from CMD and I got the error message: Error: [NodeId: Read] Operator 'ReadOp': Unknown element 'sourceProduct'
I do not understand why it would work on SNAP but then it would not work on CMD. Please see the xml attached: dim_to_tif_test_02.xml (837 Bytes)
Any advice to correct it the xml is welcome.
Best wishes,
Julio
Edit:
What I did on CMD was simply gpt G:\project\gpt_xml_templates\dim_to_tif_test_02.xml
If you specify the source product in the XML, the graph should work without any additional parameters. @marpet Can you tell what is wrong with the suggested XML?
Thank you for your prompt response. I understand the placeholder approach, it is intuitive and easy to implement in CMD. However, that has given me additional issues, I would prefer to have a working XML template then I produce it in loop in another programming language.
I once used scripts like this to automate gpt tasks by looping through different input files and operators. This should be also possible with a predefined XML.