; ; PURPOSE: Calculate BrBtBp on a spherical surface located at r > Rcp ; INPUT: g,h,gc,hc,r,phd,thd,nmax,apar,Rcp,Rss ; OUTPUT: bbr,bbt,bbp ; MODIFIED: 08DEC2005 Xuepu Zhao ; pro psb_csss,g,h,gc,hc,rr,phd,thd,bbr,bbt,bbp,APAR=apar,RCP=rcp,RSS=rss print,'This is /home/xuepu/ZIDLLIB/CSSS/psb_csss.pro' if N_params() lt 1 then begin print,'psb_csss,g,h,gc,hc,rr,phd,thd,bbr,bbt,bbp,apar=,Rcp=,Rss=,' return endif ix = N_ELEMENTS(phd) jy = N_ELEMENTS(thd) bbr = fltarr(ix,jy) bbt = bbr bbp = bbr phr = phd*!DTOR thr = thd*!DTOR FOR i = 0, ix-1 do begin phri=phr(i) FOR j = 0, jy-1 do begin thrj=thr(j) ppb_csss,g,h,gc,hc,rr,phri,thrj,br,bt,bp bbr(i,j) = br bbt(i,j) = bt bbp(i,j) = bp ENDFOR ENDFOR end