cannot subset like in the tutorial?

28 views
Skip to first unread message

Mario Ariyanto

unread,
Jan 21, 2018, 11:51:57 PM1/21/18
to RSGISLib Support
Hi, i am new at python and rsgislib, 

While i am following tutorial from JAXA K&C 20 Global Mangrove Watch Workshop at subset image. 
I got an error like in the image i attached.

How to resolve it?

Cheers,
Mario.R.A
Capture.JPG

Daniel Clewley

unread,
Jan 22, 2018, 4:07:41 PM1/22/18
to Mario Ariyanto, RSGISLib Support
Hi Mario,

It looks like the problem is with finding the vector, is the path in the script correct?

If it doesn’t work using the relative path perhaps try using the full path to the file in the script (e.g., D:\RSGISLib....).

It could be that it is a Windows specific problem - has anyone on the list run through the tutorial on Windows?

Thanks,

Dan

--
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.
<Capture.JPG>

Mario Ariyanto

unread,
Jan 22, 2018, 11:26:45 PM1/22/18
to RSGISLib Support
Thanks for the follow up Dan

I tried to follow your tips using full path for the vector file

And IT WORKS!

I guess it's because windows now using \ for path, while i need to use / in the script for it to found the vector file 

Mario Ariyanto

unread,
Jan 22, 2018, 11:53:32 PM1/22/18
to RSGISLib Support
Also, looks like there's something missing, because there's nothing about subsetting the JERS1 image

But suddenly it's being used in the next tutorial

So i try to change the code slightly to only find the JERS1 file and subset it

And got the following error

Did i miss something?

Capture.JPG
Reply all
Reply to author
Forward
0 new messages