pyrad.util.get_box_coords#

pyrad.util.get_box_coords(x_point, y_point, we_length=1000.0, sn_length=1000.0, rotation=0.0, origin='center', we_offset=0.0, sn_offset=0.0)[source]#

Get the points defining a rectangle from the position of its centre and the radius

Parameters:
  • x_point, y_point (float) – The Cartesian coordinates of the point at which the rectangle will rotate. Typically in m

  • we_length, sn_length (float) – west-east and south-north rectangle lengths

  • rotation (float) – The angle of rotation. Positive is counterclockwise from North in deg.

  • origin (str) – The number of points used to define a quarter of the cercle

  • we_offset, sn_offset (float) – west-east and south-north offset from rotation position

Returns:

x_roi, y_roi (array of floats) – The position of the points defining the box