define_n0

pyR2D2.util.define_n0(data, main_locals, nd_type='nd')[source]

Define n0 in main_locals if not exists.

Parameters:
  • data (pyR2D2.Data, or, pyR2D2.Read) – instance of pyR2D2.Data or pyR2D2.Read classes

  • main_locals (dict) – locals() in main program, which include local variables

  • nd_type (str) – type of nd. ‘nd’ for MHD output, ‘nd_tau’ for high cadence output.