GPF: mosaicing multiple data error: Error: [NodeId: WriteOp@MosaicNode] No data product writer for the ''NetCDF4-CF'' format available

I am trying to use GPF to mosaic multiple satellite data (nc format). However, the command occurs error: “Error: [NodeId: WriteOp@MosaicNode] No data product writer for the ‘‘NetCDF4-CF’’ format available”. But, when I mosaic them in the SNAP GUI (version 12), it works well. Same problems occurs in another computer.
The command line is :

Blockquote
“D:\esa-snap\bin\gpt.exe” X:\CLARA\Zsd_hr\l2_region\2014\V20140501_Zsd_China.mosaic.xml -t X:\CLARA\Zsd_hr\l2_region\2014\V20140501_Zsd_mosaic.nc -f ‘NetCDF4-CF’ X:\CLARA\Zsd_hr\2014\V2014121023553_NPP_SCINSW_CLARA_Zsd_hr.nc X:\CLARA\Zsd_hr\2014\V2014121023718_NPP_SCINSW_CLARA_Zsd_hr.nc

The xml file was attached below.

The complete error is:

Blockquote
INFO: org.esa.snap.core.gpf.operators.tooladapter.ToolAdapterIO: Initializing external tool adapters
INFO: org.esa.snap.core.util.EngineVersionCheckActivator: Please check regularly for new updates for the best SNAP experience.
Executing processing graph
4817 [main] INFO hdf.hdflib.HDFLibrary - HDF4 library:
4818 [main] INFO hdf.hdflib.HDFLibrary - successfully loaded.
4829 [main] INFO hdf.hdf5lib.H5 - HDF5 library:
4830 [main] INFO hdf.hdf5lib.H5 - successfully loaded.
100% done.
100% done.
done.
Error: [NodeId: WriteOp@MosaicNode] No data product writer for the ‘‘NetCDF4-CF’’ format available
org.esa.snap.core.gpf.graph.GraphException: [NodeId: WriteOp@MosaicNode] No data product writer for the ‘‘NetCDF4-CF’’ format available
at org.esa.snap.core.gpf.graph.NodeContext.initTargetProduct(NodeContext.java:79)
at org.esa.snap.core.gpf.graph.GraphContext.initNodeContext(GraphContext.java:213)
at org.esa.snap.core.gpf.graph.GraphContext.initOutput(GraphContext.java:179)
at org.esa.snap.core.gpf.graph.GraphContext.init(GraphContext.java:98)
at org.esa.snap.core.gpf.graph.GraphContext.(GraphContext.java:83)
at org.esa.snap.core.gpf.graph.GraphContext.(GraphContext.java:94)
at org.esa.snap.core.gpf.graph.GraphContext.(GraphContext.java:58)
at org.esa.snap.core.gpf.graph.GraphProcessor.executeGraph(GraphProcessor.java:127)
at org.esa.snap.core.gpf.main.DefaultCommandLineContext.executeGraph(DefaultCommandLineContext.java:115)
at org.esa.snap.core.gpf.main.CommandLineTool.executeGraph(CommandLineTool.java:611)
at org.esa.snap.core.gpf.main.CommandLineTool.runGraph(CommandLineTool.java:440)
at org.esa.snap.core.gpf.main.CommandLineTool.runGraphOrOperator(CommandLineTool.java:325)
at org.esa.snap.core.gpf.main.CommandLineTool.run(CommandLineTool.java:226)
at org.esa.snap.core.gpf.main.CommandLineTool.run(CommandLineTool.java:131)
at org.esa.snap.core.gpf.main.GPT.run(GPT.java:60)
at org.esa.snap.core.gpf.main.GPT.main(GPT.java:37)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.esa.snap.runtime.Launcher.lambda$run$0(Launcher.java:55)
at org.esa.snap.runtime.Engine.runClientCode(Engine.java:190)
at org.esa.snap.runtime.Launcher.run(Launcher.java:51)
at org.esa.snap.runtime.Launcher.main(Launcher.java:31)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:84)
at com.exe4j.runtime.WinLauncher.main(WinLauncher.java:94)
at com.install4j.runtime.launcher.WinLauncher.main(WinLauncher.java:25)
Caused by: org.esa.snap.core.gpf.OperatorException: No data product writer for the ‘‘NetCDF4-CF’’ format available
at org.esa.snap.core.gpf.common.WriteOp.initialize(WriteOp.java:253)
at org.esa.snap.core.gpf.internal.OperatorContext.initializeOperator(OperatorContext.java:528)
at org.esa.snap.core.gpf.internal.OperatorContext.getTargetProduct(OperatorContext.java:298)
at org.esa.snap.core.gpf.Operator.getTargetProduct(Operator.java:359)
at org.esa.snap.core.gpf.graph.NodeContext.initTargetProduct(NodeContext.java:77)
… 26 more
V20140430_Zsd_China.mosaic.xml (1.3 KB)

However, the script worked in Macos 15.6:

Blockquote
INFO: org.esa.snap.core.gpf.operators.tooladapter.ToolAdapterIO: Initializing external tool adapters
INFO: org.esa.snap.core.util.EngineVersionCheckActivator: Please check regularly for new updates for the best SNAP experience.
Executing processing graph
100% done.
100% done.
8116 [main] INFO serverStartup - Nc4Iosp: NetCDF-4 C library loaded (jna_path=‘/Users/zhigang/.snap/auxdata/netcdf_natives/12.0.0/x86_64’, libname=‘netcdf’).
8120 [main] INFO serverStartup - NetcdfLoader: set log level: old=0 new=0
8120 [main] INFO serverStartup - Nc4Iosp: set log level: old=0 new=0
…10%…20%…30%…40%…50%…60%…70%…80%…90% done.

I wonder if the windows system needs to install some required library to run GPF for SNAP 12. Could someone provide some suggestions?

Best regards,
Zhigang

I reinstall the SNAP 9, it worked. The processing of SNAP12 GPF seems to be different from SNAP 9 (via GDAL, actually).