11 #include "Zmagfield.h" 12 real*8 year, lat, long, h
15 integer icon, ilat, ilong, igrf
21 *
'Enter year of geomagnetism (=2000) and height(=0 m)',
26 *
'Enter 1, 2 or 3 for 1) igrf, 2) wmm or other data', 1)
30 file =
'../Data/Geomag/igrf' 31 elseif(igrf .eq. 2)
then 32 file =
'../Data/Geomag/wmm' 34 call cerrormsg(
'Enter file path for geomag data',1)
39 write(*,
'("# lat long H V (Tesla) Ang(deg) ")')
42 do ilong = -180, 180, 10
49 write(*, *) float(ilat), float(ilong),
51 * sngl(hva%h), sngl(hva%v), sngl(hva%a)
53 * sngl(hva%x), sngl(hva%y), sngl(hva%z)
subroutine cerrormsg(msg, needrtn)
subroutine crdgeomag(filepath, yearin)
latitude latitude this system is used *****************************************************************! type coord sequence union map real z z in m endmap xyz map real ! latitude in deg is to the north ! longitude in deg is to the east *h ! height in m endmap llh map real ! polar angle ! azimuthal angle *radius ! radial distance endmap sph endunion character *sys ! which system llh
subroutine cgeomag(yearin, llh, h, icon)
subroutine cned2hva(a, b)
subroutine csetcoord(sys, x, y, z, a)
dE dx *! Nuc Int sampling table b