Alternative to Windows users: RSGISlib for linux can be run on the Windows 10 Ubuntu bash

96 views
Skip to first unread message

Thiago Sanna Freire Silva

unread,
Mar 8, 2017, 4:52:32 PM3/8/17
to RSGISLib Support
Hello everyone,

I would like to report my successful testing of running RSGISlib on the new "Linux inside Windows" feature of Windows 10. If you haven't heard about it, it was introduced on the Anniversary Update:

"This isn’t a virtual machine, a container, or Linux software compiled for Windows (like Cygwin). Instead, Windows 10 gains a Windows Subsystem for Linux, which is based on Microsoft’s abandoned Project Astoria work for running Android apps on Windows. Think of it as the opposite of Wine. While Wine allows you to run Windows applications directly on Linux, the Windows Subsystem for Linux allows you to run Linux applications directly on Windows."


The Windows disks can be accessed on bash at /mnt/(drive letter)/:


I followed the instructions above to enable bash, and then installed anaconda and RSGISlib as I would on a Linux machine. I did ran into some of the dependency problems people have been encountering lately, but was able to fix them by installing everything at once from condaforge and au-eoed, and then running "conda update -c au-eoed -c conda-forge --all" while my environment was activated.

The only thing that won't work is Tuiview, since there is no graphical environment available. But as you can easily work on Windows folders, QGIS or other software can be used for visualization, and it seems there is a Tuiview binary for Windows.

To test the installation, I ran all scripts from the RSGISlib training course given by Pete during the 23rd ALOS K&C meeting, last January in Tokyo:

01_BandMaths.py
02C_PALSARStack.py (it did use all available cores!)
03B_MosaicImages.py
04_Resample2Landsat.py
05_ValidImageryMask.py
06A_RasterToVector.py
06B_VectorToRaster.py
07_Subset2ROI.py
08_MaskImage.py
09_BandSubset.py
10_LeeFilter.py
11_Convert2dBs.py
12_CalcReflIndices.py
13_CombinedPreProcessing.py
14_PixelBasedClass.py
15_SegData.py
16_PerformObjClass.py

All scripts ran flawlessly, and with good performance (under a minute each, on a 6-core i7 5820k, 64GB RAM). 

This is pretty exciting, as it seems we can now use RSGISlib on any windows machine without the hassle of dual booting or vm-ing, no noticeable loss of performance.

Pete, Daniel, let me know if you would like me to do any specific tests.

Cheers,

--
Thiago Sanna Freire Silva
Professor Assistente Doutor

Ecosystem Dynamics Observatory
Departamento de Geografia
Instituto de Geociências e Ciência Exatas (IGCE)
Universidade Estadual Paulista (UNESP)
Rio Claro, SP - Brasil


Pete Bunting [pfb]

unread,
Mar 8, 2017, 6:26:10 PM3/8/17
to Thiago Sanna Freire Silva, RSGISLib Support
Hi Thiago, 

That’s great. I know Dan briefly tried it but great to know it is working well. If the training course scripts run through fine then I’d expect everything else to be OK so I don’t think there is anything else to specifically test. 

As you found tuiview is available for Windows so that is a good solution - particularly for opening KEA files with RAT’s when doing OO classification. 

We have a beta windows native build (it’s a version behind though) of rsgislib so we are looking to support that directly at some point but I would suggest that this might be a better solution for windows users as the linux/bash terminal is so much more powerful for batch processing. 

Best wishes, 

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.



--------------------------------------------------------------------
Un o’r 4 prifysgol uchaf yn y DU a’r orau yng Nghymru am fodlonrwydd myfyrwyr.
(Arolwg Cenedlaethol y Myfyrwyr 2016)
www.aber.ac.uk

Top 4 UK university and best in Wales for student satisfaction
(National Student Survey 2016)
www.aber.ac.uk
Reply all
Reply to author
Forward
0 new messages