Use PREF_SET, 'IDL_DLM_PATH', 'j:\idlcom\dll\hk_geopack;', /commit to integrate into IDL. Restart IDL. LP, 4/2007 http://ampere.jhuapl.edu/code/idl_geopack.html LP 5/2016 v9.4 with Geopack 2008 c@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ c c c ########################################################################## c # # c # GEOPACK-2008 # c # (MAIN SET OF FORTRAN CODES) # c # # c ########################################################################## C c c This collection of subroutines is a result of several upgrades of the original package c written by N. A. Tsyganenko in 1978-1979. c c PREFATORY NOTE TO THE VERSION OF FEBRUARY 8, 2008: c c To avoid inappropriate use of obsolete subroutines from earlier versions, a suffix 08 was c added to the name of each subroutine in this release. c c A possibility has been added in this version to calculate vector components in the c "Geocentric Solar Wind" (GSW) coordinate system, which, to our knowledge, was first c introduced by Hones et al., Planet. Space Sci., v.34, p.889, 1986 (aka GSWM, see Appendix, c Tsyganenko et al., JGRA, v.103(A4), p.6827, 1998). The GSW system is analogous to the c standard GSM, except that its X-axis is antiparallel to the currently observed solar wind c flow vector, rather than aligned with the Earth-Sun line. The orientation of axes in the c GSW system can be uniquely defined by specifying three components (VGSEX,VGSEY,VGSEZ) of c the solar wind velocity, and in the case of a strictly radial anti-sunward flow (VGSEY= c VGSEZ=0) the GSW system becomes identical to the standard GSM, which fact was used here c to minimize the number of subroutines in the package. To that end, instead of the special c case of the GSM coordinates, this version uses a more general GSW system, and three more c input parameters are added in the subroutine RECALC_08, the observed values (VGSEX,VGSEY, c VGSEZ) of the solar wind velocity. Invoking RECALC_08 with VGSEY=VGSEZ=0 restores the c standard (sunward) orientation of the X axis, which allows one to easily convert vectors c between GSW and GSM, as well as to/from other standard and commonly used systems. For more c details, see the documentation file GEOPACK-2008.DOC. c c Another modification allows users to have more control over the procedure of field line c mapping using the subroutine TRACE_08. To that end, three new input parameters were added c in that subroutine, allowing one to set (i) an upper limit, DSMAX, on the automatically c adjusted step size, (ii) a permissible step error, ERR, and (iii) maximal length, LMAX, c of arrays where field line point coordinates are stored. Minor changes were also made in c the tracing subroutine, to make it more compact and easier for understanding, and to c prevent the algorithm from making uncontrollable large number of multiple loops in some c cases with plasmoid-like field structures. c C One more subroutine, named GEODGEO_08, was added to the package, allowing one to convert c geodetic coordinates of a point in space (altitude above the Earth's WGS84 ellipsoid and c geodetic latitude) to geocentric radial distance and colatitude, and vice versa. c C For a complete list of modifications made earlier in previous versions, see the c documentation file GEOPACK-2008.DOC.