Hi,
I have been trying to process some Sentinel 2 data, currently just running a small sample with three granules of data, however I am getting an issue when arcsi reprojects the valid pixel mask, I pretty consistently get an error saying the valid pixel mask is not a supported file format;
---
Define re-projected image BBOX.
Output Image BBOX (TL, BR): [( 526830.00, 469910.00), ( 644090.00, 368080.00)]
gdalwarp -t_srs /data/sentinel/2/toolchain/proj4/osgb.wkt -tr 10.0 -10.0
-ot Byte -wt Float32 -te 526830.0 368080.0 644090.0 469910.0 -r near
-tap -srcnodata 0 -dstnodata 0 -of KEA -overwrite
/data/sentinel/2/output_scr_2/SEN2_20170820_lat54lon081_T31UCV_ORB137_utm31n_valid.kea
/data/sentinel/2/output_scr_2/SEN2_20170820_lat54lon081_T31UCV_ORB137_utm31n_osgb_valid.kea
ERROR 4:
`/data/sentinel/2/output_scr_2/SEN2_20170820_lat54lon081_T31UCV_ORB137_utm31n_valid.kea'
not recognized as a supported file format.
Error: 'Reprojected valid image mask is not present:
/data/sentinel/2/output_scr_2/SEN2_20170820_lat54lon081_T31UCV_ORB137_utm31n_osgb_valid.kea'
----
However when looking at the file system I can see the valid.kea file as expected and then running the printed gdalwarp command works (copy paste the command after the process errors). After creating the file manually and re-running the original command arcsi carries on and produces output as expected so I am at a bit of a loss (it still throws the same error about the mask not being a recognized supported file format, but as the file exists on the file system it doesn't complain beyond that).
Hi Matt,
I have updated rsgislib in my conda channel (au-eoed). If you could update and try that.
Cheers, Pete
****************************************************
* Dr Pete Bunting
* Reader in Remote Sensing
* Earth Observation and Ecosystem Dynamics Group
* Department of Geography and Earth Sciences
* Aberystwyth University
* Aberystwyth
* Ceredigion
* SY23 3DB
* UK
*
* Ph: +44 (0) 1970 622615
* Mob: +44 (0) 7917 842743
* Email: p...@aber.ac.uk
* ORCID: http://orcid.org/0000-0002-7435-0148
****************************************************
"Please consider the environment before printing this email or any documents attached”
--
You received this message because you are subscribed to the Google Groups "RSGISLib Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
rsgislib-suppo...@googlegroups.com.
To post to this group, send email to
rsgislib...@googlegroups.com.
Visit this group at https://groups.google.com/group/rsgislib-support.
For more options, visit https://groups.google.com/d/optout.
To post to this group, send email to rsgisli...@googlegroups.com.
Visit this group at https://groups.google.com/group/rsgislib-support.
For more options, visit https://groups.google.com/d/optout.
Hi Matt,
I merged the development branch into the default branch yesterday and merged the Pull request from Dan Clewley with the fix for the latest ESA header format change. This version is 3.1.6 (when I updated to support processing with MPI and bumped the development version from 2.X to 3.X) so I used this version (3.1.5) for processing the UK Sentinel-2 data therefore you should be using the 3.1.6 version of ARCSI and the latest version of rsgislib is 3.5.3 (you can check version using rsgis-config --version).
Surprised the conda install -c au-eoed -c conda-forge rsgislib into a new environment doesn’t work. I am also using GDAL 2.2.3. You might need to run conda install -c conda-forge openblas after installing arcsi / rsgislib, there is a dependency missing from a package somewhere on that. What error do you get when you still arcsi using the au-eoed channel into a new environment?
Cheers, Pete
****************************************************
* Dr Pete Bunting
* Reader in Remote Sensing
* Earth Observation and Ecosystem Dynamics Group
* Department of Geography and Earth Sciences
* Aberystwyth University
* Aberystwyth
* Ceredigion
* SY23 3DB
* UK
*
* Ph: +44 (0) 1970 622615
* Mob: +44 (0) 7917 842743
* Email: pete.b...@aber.ac.uk
To post to this group, send email to rsgislib...@googlegroups.com.
Visit this group at https://groups.google.com/group/rsgislib-support.
For more options, visit https://groups.google.com/d/optout.
Hi Pete,
*Message from Felix Mason*
I'm working with Matt on this and i've picked up from where he left off. I've set up a new environment from scratch following matts instructions and also got the GDAL error outlined above. As part of this I have pulled the latest code from the default branch and installed it manually into my environment. I was able to resolve the GDAL error, or at least mask it with another one, by running conda update --all. This included a update for gdal. Unforntuanlty when I run arcsi as specified by matt i now get the following error:
Traceback (most recent call last): File "/home/ubuntu/miniconda3/envs/rsgislib2/bin/arcsibuildmultifilelists.py", line 151, in <module> arcsiObj.buildCmds(args.input, args.output, args.header, args.depth, args.sensor)
File "/home/ubuntu/miniconda3/envs/rsgislib2/bin/arcsibuildmultifilelists.py", line 97, in buildCmds sensorClass = sensorFact.getSensorClassFromName(sensor, False, None) File "/home/ubuntu/miniconda3/envs/rsgislib/lib/python3.5/site-packages/arcsilib/arcsiutils.py", line 542, in getSensorClassFromName from arcsilib.arcsisensorsentinel2 import ARCSISentinel2Sensor
File "/home/ubuntu/miniconda3/envs/rsgislib/lib/python3.5/site-packages/arcsilib/arcsisensorsentinel2.py", line 44, in <module> from .arcsisensor import ARCSIAbstractSensor
File "/home/ubuntu/miniconda3/envs/rsgislib/lib/python3.5/site-packages/arcsilib/arcsisensor.py", line 67, in <module> import rsgislib.imagecalc
File "/home/ubuntu/miniconda3/envs/rsgislib/lib/python3.5/site-packages/rsgislib/imagecalc/__init__.py", line 6, in <module> from ._imagecalc import * ImportError: libboost_filesystem.so.1.65.1: cannot open shared object file: No such file or directory
I should point out that actually my interest is in processing multiple files. So at the moment I'm focussed on gettting the output of the arcsibuildmultifilelists.py command. Running this command also results in the same error as above, so it would seem the arcsi package as a whole is affected.
Thanks,
Felix