8 real*8 year, lat, long, h
15 *
'Enter year(1996.5) lat(-90~90) long(-180~180) height(0)' 16 read(*, *) year, lat, long, h
18 *
"Enter 1 or 2 for 1) IGRF data 2) Dod WMM data" 22 call crdgeomag(
'../Data/Geomag/igrf', year)
24 call crdgeomag(
'../Data/Geomag/wmm', year)
30 write(*,*)
' icon=',icon
31 write(*,*)
' ned=',
b%n,
b%e,
b%d
33 tand = atan( hva%v/hva%h) * 180./3.141592
35 write(*,*)
' x=',
b%x,
' y=',
b%y,
' z=',
b%z
38 * sngl(hva%h), sngl(hva%v), sngl(hva%a)
40 * sngl(hva%x), sngl(hva%y), sngl(hva%z)
42 write(*,*)
' fukaku =', tand,
' deg'
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
subroutine ctransmagto(sys, pos, a, b)