/// <summary>Rewrite the HDU.</summary> public virtual void Rewrite() { if (this.Rewriteable) { myHeader.Rewrite(); myData.Rewrite(); } else { throw new FitsException("Invalid attempt to rewrite HDU"); } }