Page 1 of 1

How to stop GranToGridSnowIceCover remove snow tile?

Posted: Thu Oct 24, 2013 9:30 am
by wzchen
Hi,

The VIIRS-GIP-GranToGridSnowIceCover algorithm will remove the processed Snow Tiles from the input directory after it runs. Since I am using a shared folder, I am wondering how I can stop it so that the input Snow tile will keep no change after run?

Thanks,

Weizhong

Re: How to stop GranToGridSnowIceCover remove snow tile?

Posted: Thu Oct 24, 2013 5:47 pm
by kbisanz
There is not a configurable way to prevent removal of the tiles. GranToGrid algorithms are supposed to update the tiles. The algorithm is doing what it's supposed to do: remove old tiles and replace them with updated tiles.

I would recommend removing write access from the input directory (chmod a-w). I *believe* that'll work. You need to remove write access from the directory (vs the files) because file removal is an operation on the directory, not the file.

Re: How to stop GranToGridSnowIceCover remove snow tile?

Posted: Fri Oct 25, 2013 10:29 am
by wzchen
Hi Kevin,

OK. That's what we did right now. Do you have any idea if there is any other algorithms which will also remove tiles? Thanks.

Weizhong

Re: How to stop GranToGridSnowIceCover remove snow tile?

Posted: Fri Oct 25, 2013 10:59 am
by kbisanz
Yes, there are other algorithms which remove their tile inputs. The GranToGrid algorithms remove their tile inputs:
ProGipViirsGranToGridDSR.exe
ProGipViirsGranToGridMonthlySRBTVI.exe
ProGipViirsGranToGridSnowIceCover.exe

The GridToGrid algorithms also remove their tile inputs:
ProGipViirsLSADispatcher.exe
ProGipViirsMonthlyPostCompDispatcher.exe
ProGipViirsNbarNdviDispatcher.exe

CrIS SDR may also do the same thing with its correction matrix.

You will have this problem any time an algorithm creates an output that's intended to replace an input.