/// <summary> /// Returns a subdomain defined by the given north/west/south/east boundaries. /// At this time, boxes are only supported for regular and reduced Gaussian grids. /// </summary> /// <param name="nw">The NW corner of the box.</param> /// <param name="se">The SE corner of the box.</param> /// <returns></returns> public GribBox Box(GeoCoordinate nw, GeoCoordinate se) { if (!GridType.Contains("regular_gg") && !GridType.Contains("reduced_gg")) { throw new GribApiException("Only regular and reduced Gaussian grids support boxes."); } return(new GribBox(Handle, nw, se)); }