PhyToString function

Convert between strings and phyDat objects