How to stop GranToGridSnowIceCover remove snow tile?

Issues related to VIIRS EDR algorithms and data
Post Reply
wzchen
Posts: 89
Joined: Wed Jul 18, 2012 3:01 pm

How to stop GranToGridSnowIceCover remove snow tile?

Post 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
kbisanz
Posts: 280
Joined: Wed Jan 05, 2011 7:02 pm
Location: Omaha NE

Re: How to stop GranToGridSnowIceCover remove snow tile?

Post 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.
Kevin Bisanz
Raytheon Company
wzchen
Posts: 89
Joined: Wed Jul 18, 2012 3:01 pm

Re: How to stop GranToGridSnowIceCover remove snow tile?

Post 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
kbisanz
Posts: 280
Joined: Wed Jan 05, 2011 7:02 pm
Location: Omaha NE

Re: How to stop GranToGridSnowIceCover remove snow tile?

Post 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.
Kevin Bisanz
Raytheon Company
Post Reply