Writes parameters for describing rho segments
If present, filename, where to write, otherwise writes parameters to stdout