code: public static GeneralParameterValue[] createGridGeometryGeneralParameter( double xres, double yres, double north,
              double south, double east, double west, CoordinateReferenceSystem crs ) {
          // make sure the resolution gives integer rows and cols
          int height = (int) Math.round((north - south) / yres);
          if (height < 1)
              height = 1;
          int width = (int) Math.round((east - west) / xres);
          if (width < 1)
              width = 1;
  
          GeneralParameterValue[] generalParameter = createGridGeometryGeneralParameter(width, height, north, south, east, west,
                  crs);
  
          return generalParameter;
      }
docs: Utility method to create read parameters for {@link GridCoverageReader}
  
  @param xres the X resolution.
  @param yres the Y resolution.
  @param north the northern boundary.
  @param south the southern boundary.
  @param east the eastern boundary.
  @param west the western boundary.
  @param crs the {@link CoordinateReferenceSystem}. Can be null, even if it should not.
  @return the {@link GeneralParameterValue array of parameters}.