map_draw_box#

map_draw_box(lon_min, lon_max, lat_min, lat_max, title, lon_data, lat_data, data_draw, lon_min_box, lon_max_box, lat_min_box, lat_max_box, label, path_save, name_save)[source]#

Draw a 2D geospatial field on a Mercator map with labeled rectangular boxes.

Parameters:
  • lon_min (float) – Minimum and maximum longitude boundaries of the map.

  • lon_max (float) – Minimum and maximum longitude boundaries of the map.

  • lat_min (float) – Minimum and maximum latitude boundaries of the map.

  • lat_max (float) – Minimum and maximum latitude boundaries of the map.

  • title (str) – Title displayed at the top of the figure.

  • lon_data (np.ndarray) – 2D array of longitudes (same shape as data_draw).

  • lat_data (np.ndarray) – 2D array of latitudes (same shape as data_draw).

  • data_draw (np.ndarray) – 2D array of scalar values to visualize (e.g., rainfall, temperature).

  • lon_min_box (list or np.ndarray) – Lists of minimum and maximum longitudes for each box.

  • lon_max_box (list or np.ndarray) – Lists of minimum and maximum longitudes for each box.

  • lat_min_box (list or np.ndarray) – Lists of minimum and maximum latitudes for each box.

  • lat_max_box (list or np.ndarray) – Lists of minimum and maximum latitudes for each box.

  • label (list of str) – Text labels to annotate each box. Length must match the number of boxes.

  • path_save (str) – Directory path where the output PNG file will be saved.

  • name_save (str) – Base filename (without extension) for the saved image.

Return type:

None