User-defined particle attributes (PAR_NATT_USER>0 in Makefile) and grid fields (NCOMP_PASSIVE_USER>0 in Makefile can have arbitrary units, which cannot be recognized by yt
The units of all built-in grid fields and particle attributes are hard-coded
Tasks
[ ] Support FieldUnit and ParAttUnit just like FieldLabel and ParAttLabel when initiating all fields (by calling AddField() in Init_Field()) and particle attributes (by calling AddParticleAttribute() in Par_Init_Attribute()).
[ ] Output FieldUnit and ParAttUnit for all output fields and particle attributes, including derived fields like Pres, in HDF5 snapshots
Issues
PAR_NATT_USER>0
inMakefile
) and grid fields (NCOMP_PASSIVE_USER>0
inMakefile
can have arbitrary units, which cannot be recognized byyt
Tasks
FieldUnit
andParAttUnit
just likeFieldLabel
andParAttLabel
when initiating all fields (by callingAddField()
inInit_Field()
) and particle attributes (by callingAddParticleAttribute()
inPar_Init_Attribute()
).FieldUnit
andParAttUnit
for all output fields and particle attributes, including derived fields likePres
, in HDF5 snapshotsyt
(#77)libyt