I wrote following part of code, to save my results to a file:
OutputType = [".dim",“BEAM-DIMAP”]
from snappy import ProductIO
ProductIO.writeProduct(sub_product, newFile, OutputType)
However, I use “BEAM-DIMAP” only because I found it within the snappy examples (I am not aware of the advantages of this format).
I can’t find list of allowed output formats within the documentation (which I believe is in http://step.esa.int/docs/v2.0/apidoc/engine/org/esa/snap/core/dataio/ProductIO.html#writeProduct-org.esa.snap.core.datamodel.Product-java.lang.String-java.lang.String-
Could you tell me:
- What are the allowed output formats?
- Do I need to save intermediate results to a file or can I redirect output from one operation to another? For example - can I subset one product and without saving apply calibration to obtain sigma0?