The VISIBILITY() function in GRID doesn't respect the SETCELL or SETWINDOW settings.
This is a known software limitation.
Solution or Workaround
These are two methods to make an output grid with the desired resolution:
- Method 1: Run the SETWINDOW command to specify the correct extent, and then use the RESAMPLE() function on the result from VISIBILITY().
- Method 2: Clip and resample the grid before performing VISIBILITY().