Grid
create_latlon_grid(region, resolution)
Create a latitude-longitude grid within the specified region.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
region |
Tuple[float, float, float, float]
|
The region of interest defined by (lon_min, lat_min, lon_max, lat_max), e.g. (-180, -90, 180, 90) for global grid. |
required |
resolution |
float
|
The resolution of the grid in degrees. |
required |
Returns:
Type | Description |
---|---|
Tuple[np.ndarray, np.ndarray]: A tuple containing two numpy arrays representing the latitudes and longitudes of the grid, respectively. |