Hello,
I created a graph to sequencially read, reproject and write around 20 S3A LST products. The Graph runs properly but each ouput file overwrites the previous since the output root filename is “xfdumanifest” while I see something more like “S3A_SL_2_LST____20171031T022352_20171031T022652_20171031T041751_0179_024_046_2520_SVL_O_NR_002.SEN3” in the GraphBuilder filename field. The “Keep source filename” option is checked.
How do I get GraphBuilder to actually take the name of the product as a basis for output file name ?
Thanks,
Jerome
Hi, I think you mean batch processing and not the graph builder.
To not overwrite your products, open batch processing, unselect the option ‘Keep source filename’ and load your graph. You will see now that the write tab of your graph appears.
If you run the process now, each input will create an output using the filename as reference and not overwrite the resutls.
Hi,
I know that this is an old thread, but I am having a similar issue of batch processing overwriting output files. I tried all solutions I could find on this forum but so far none of them worked. I have attached the xml file of the graph used with the batch. Any suggestions here?
Thanks,
Open the first product you want to process in SNAP
Open the Graph Builder and select your XML
The product will automatically be taken as Input product and you can define a target name:
Select the input name + _LAI.dim
Save the graph XML
Open all products you want to process in SNAP
Open the Batch Processing and load all products into the list (make sure the first is the one from the XML)
Load the XML
Make sure that this option is selected
Run the Batch Processing. The first output will have the name as you have defined it statically in the XML. All further products will be adjusted accordingly, at least in my case.
Still not working. I have tried with a simpler graph (subset + resample only) and then the output name is correctly defined. So it seems that the “BiophysicalOp” node causes the issue with the naming.
I am having the same problem (using Snap 8.0). There is no option to select “Keep source product name”. As I have seen on other posts on the forum, they were using old versions of Snap and it had that option… Still don’t know how to save files with different output names.
If you use a different directory to save your processed data, the products saved will keep the original name and add a suffix with the name of the process.
Yes. I am writing the output files to a different drive altogether but it is still overwriting the existing file and not saving the other file separately. Please look at the two screenshots below. My input files are stored at desktop and I am outputting the result to a different drive.
I have S3SLSTR data downloaded for whole 2020, and I want to batch process them to output BT bands in the form of CSV.
I’m so sorry… It was not working because my 2nd file did not have the required pixel area which I wanted to extract… The writing feature is working fine I have used it on 30 files at once…
I removed the name of the image (i.e. I used ‘[file][/file]’) in the xml file for the read and write operators and the “Batch Processing” seems to work as wished. Something like:
[node id=“Read”]
[operator]Read[/operator]
…
[file][/file] And then
[node id=“Write”]
[operator]Write[/operator]
…
[file][/file]