I’m trying to run the Fraction of Green Vegetation Operator, but the it just returns a Segmentation fault with no further explanation. Has anyone managed to get it to work?
The location of sun_zenith band looks fine, that’s where it’s located within S2 L2A product and the location is kept when using SNAP subset operator.
I am not sure what could be causing the segmentation fault. Python code used by this operator is fairly simple so I don’t think that this could be the cause. That leaves file I/O for which snappy is used. The plugin was developed and tested with SNAP 7. Maybe something has changed between SNAP 7 and SNAP 8 in the way that snappy should be used. Could you try installing SNAP 7 (you can get it here) to check if that works?
@radosuav Tried with snap 7.0 and SEN-ET 1.0.1 .
SNAP is configured with Python 3.6.13 and compiler used is GCC 9.3.0.
Still getting the segmentation error. What to do now?
Hi @marpet and @ABraun ,
Can you please suggest any solution to overcome this error? I am not even sure if the error is from SEN-ET plugin side or from SNAP side.
I’m afrait we’ll have to wait for someone who is more familiar with this plugin. As this is an external one, we cannot provide support for it. At least I don’t know what caused the error. Are you sure the plugin was installed correctly? For example, did other functionalities of this plugin work before?
Yes @ABraun , I tried it around 4 months ago and was able to run each steps correctly and got the final output.
This time also I’m able to run another function called "leaf reflectance and transmittance estimation.
Let’s try to find the place where the segmentation fault occurs. Can you edit frac_green.py in <USEPROFILE>\.snap\auxdata\sen-et-conda-Win64\sen-et-snap-scripts\ and put some print() statements in (e.g. on lines 15, 21, 39, 42).
Hi @gnwiii I created a conda environment with python 3.6 and then configured with SNAP. Then check the python configuration which is running perfectly.