arlmet.File.create_grid#

File.create_grid(nx, ny, *, pole_lat, pole_lon, tangent_lat, tangent_lon, grid_size, orientation, cone_angle, sync_x, sync_y, sync_lat, sync_lon)[source]#

Create and attach the horizontal grid metadata for a writable file.

Parameters:
  • nx (int) – Number of grid points in the x direction.

  • ny (int) – Number of grid points in the y direction.

  • pole_lat (float) – Projection pole definition from the ARL index record.

  • pole_lon (float) – Projection pole definition from the ARL index record.

  • tangent_lat (float) – Reference latitude and longitude that define the projection.

  • tangent_lon (float) – Reference latitude and longitude that define the projection.

  • grid_size (float) – Grid spacing in kilometers at the projection reference point.

  • orientation (float) – Rotation of the grid y-axis relative to true north.

  • cone_angle (float) – Projection cone angle used for stereographic, Lambert, or Mercator grids.

  • sync_x (float) – One-based grid coordinates of the synchronization point.

  • sync_y (float) – One-based grid coordinates of the synchronization point.

  • sync_lat (float) – Geographic coordinates of the synchronization point.

  • sync_lon (float) – Geographic coordinates of the synchronization point.

Returns:

The created grid instance, also stored on the file.

Return type:

Grid