viscid.cython.null_tools module

viscid.cython.null_tools.find_classified_nulls()

Find nulls, and classify them as in Cowley 1973

Parameters:
  • fld (VectorField) – Magnetic field with nulls
  • ibound (float) – ignore points within ibound of origin
  • rtol (float) – used in np.isclose when classifying nulls
  • atol (float) – used in np.isclose when classifying nulls
Returns:

{“O”: [Oinds, Opts], “A”: […], “B”: […]}

each of these are 3xN ndarrays of either ingegers of floats

Return type:

dict

viscid.cython.null_tools.find_nulls()

Just find null points and closest indices in fld

Parameters:
  • fld (VectorField) – Magnetic field with nulls
  • ibound (float) – ignore points within ibound of origin
Returns:

(null_inds, null_pts) both of which are 3xN ndarrays,

the first is integers, the second floats

Return type:

tuple