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 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 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_wbrsc.pro calculate spherical harmonic coefficients using the global distribution of the photospheric field observed by WSO preadwsosc.pro read WSO file for synoptic magnetogram maps 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 psb_hc.pro calculate the three components of magnetic field over the spheric surface of r < Rcp using the horizontal current field model ghv_csss.pro calculate spherical coefficients on the basis of the global distribution of coronal field calculated at the cusp surface cssshf.pro the r-dependent function valid beyond Rcp 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 WSO.1968.asci data file for testing above routines KPK.1968.fits MDI.1968.fits