code: public static boolean isGrass( String path ) {
          File file = new File(path);
          File cellFolderFile = file.getParentFile();
          File mapsetFile = cellFolderFile.getParentFile();
          File windFile = new File(mapsetFile, "WIND");
          return cellFolderFile.getName().toLowerCase().equals("cell") && windFile.exists();
      }
docs: Checks if the given path is a GRASS raster file.
  
  <p>Note that there is no check on the existence of the file.
  
  @param path the path to check.
  @return true if the file is a grass raster.