Package: yt-idefix
yt_idefixA maturing yt frontend for Idefix and Pluto, packaged as an extension for yt.Installationpython-mpipinstallyt_idefixSupported formatsCodeformatsupported sinceadditional dependenciesIdefix.dmpv0.1.0Idefix.vtkv0.3.0Pluto.vtkv0.9.0PlutoXDMFv1.1.0h5pyUsageIntegration with yt is seamless.Installingthis plugin is all that's required to make yt
compatible with data formats supported byyt_idefix!Additional arguments toyt.loadThe metadata are parsed from data file, definitions header file and inifile when loading dataset.Definitions header file (definitions.hfor Pluto, ordefinitions.hppfor Idefix) and inifile (pluto.iniandidefix.inirespectively) are discovered automatically if they match default names, are located along with data files, and unique. Otherwise, they can be specified explicitly as paths (either relative to data files or absolute paths) with parametersdefinitions_headerandinifilerespectively.Geometry is parsed automatically whenever possible, but as a last resort, it can also be specified as a keyword argument (possible values are "cartesian", "spherical", "cylindrical" and "polar").# Examplesds=yt.load("data.0010.vtk",definitions_header="../definitions.h",inifile="example.ini")ds=yt.load("data.0010.vtk",geometry="spherical")The data are loaded as physical quantities with units. The default unit system iscgsin yt. This frontend can convert data from code units intocgsproperly, based on the unit definitions from metadata.Users are able to choose the unit displayed in two ways, throughunit_system("code", "mks" and "cgs") andunits_override(only valid for Pluto).# Examples on unitsds=yt.load("data.0010.vtk",unit_system="mks")units_override=dict(length_unit=(100.0,"au"),mass_unit=yt.units.mass_sun)# Caution that other units will also be changed for consistency!ds=yt.load("data.0010.vtk",unit_override=unit_override)With Pluto data, the rest of the system will be derived consistently with given units, within the following rules:Temperature unit cannot be overridden (always set to Kelvin)No more than three units can be overridden at once (overconstrained systems are never validated for simplicity)When given less than three overrides, base units in Pluto (ordered: velocity_unit, density_unit, length_unit) are assumedThe following combinations are not allowed{"magnetic_unit","velocity_unit","density_unit"},{"velocity_unit","time_unit","length_unit"},{"density_unit","length_unit","mass_unit"},yt is able to provide some derived fields from existed fields, e.g.,"cell_volume". Fields related to element species can be created according to primordial abundances of H and He, throughdefault_species_fields("neutral"and"ionized") parameters.# Exampleds=yt.load("data.0010.vtk",default_species_fields="ionized")Convention of field namesThe outputs are loaded from disk with field names in uppercase. This normalization is only applied to the standard outputs but user-defined outputs and Pluto's ion fraction outputs.# Exampleds.field_list# Output:# [('pluto-vtk', 'PRS'),   # standard output#  ('pluto-vtk', 'RHO'),   # standard output#  ('pluto-vtk', 'VX1'),   # standard output#  ('pluto-vtk', 'VX2'),   # standard output#  ('pluto-vtk', 'VX3'),   # standard output#  ('pluto-vtk', 'temp')]  # This is a user-defined output