filename: Readme.txt A software package for the computation of magnetic fields in the corona and heliosphere on the basis of observed photospheric magnetic fields Xuepu Zhao and J. Todd Hoeksema Solar Observatories Group Stanford University W. W. Hansen Experimental Physics Laboratory 455 Via Palou, Stanford, CA 94305-4085 phone: 1-650-725-0474 fax : 1-650-725-2333 email: xpzhao@solar.stanford.edu Readme.txt this file ModelDescription.txt The physical model credit.txt credit to be given to the routines pzgrid.pro grid spacing pdpi.pro the Legendre function for a specified \theta and N pdp.pro the Legendre function for all \theta csmphj Calculate Cos(MPHiJ) & Sin(MPHiJ) csmph.pro Calculate Cos(MPHiJ) & Sin(MPHiJ) for ALL Phis gfnj.pro Calculate Cos(GMPHiJ) & Sin(HMPHiJ) gfn.pro run gfnj.pro for j=0,J-1 brtp.pro the model-independent formula for calculating three components of the magnetic field pgh_mbrsc.pro calculate spherical harmonic coefficients using the global distribution of the photospheric field observed by MDI or KPNO hchf.pro the r-dependent function valid below Rcp ppb_hc.pro calculate the three components of magnetic field at a point r <= Rcp using the horizontal current model psb_hc.pro calculate the three components of magnetic field over the spheric surface of r < Rcp using the horizontal current field model pghfcsss_gaha.pro calculate spherical coefficients on the basis of ghv_csss.pro the global distribution of coronal field calculated at the cusp surface cssshf.pro the r-dependent function valid beyond Rcp brtp_csss.pro calculate three components of magnetic field pb0_csss.pro calculate the no-sign vector field at a point between Rcp and Rss ppb_csss.pro calculate the sign of the vector field at a point between Rcp and Rss psb_csss.pro calculate Br,Bt,Bp at a spherical surface of r between Rcp and Rss runsample.pro test above routines using one of the following data files MDI.1968.fits data file for testing above routines KPK.1968.fits