Read spherical harmonic coefficients from a CHAMP or GRACE-like ascii-formatted file.
call SHRead2 (
filename: input, character(*)
- The ascii-formatted filename containing the spherical harmonic coefficients.
cilm: output, real(dp), dimension (2,
- The spherical harmonic coefficients contained in
lmax: output, integer
- The maximum spherical harmonic degree of
gm: output, real(dp)
- The mass-gravitational constant.
r0_pot: output, real(dp)
- The reference radius of the potential coefficients.
error: output, optional, real(dp), dimension (2,
- The errors corresponding to the spherical harmonic coefficients
dot: output, optional, real(dp), dimension (2,
- The time derivatives of the spherical harmonic coefficients. The dimension of this array can be smaller than
doystart: output, optional, real(dp)
- The starting time of the solution.
doyend: output, optional, real(dp)
- The ending time of the solution
epoch: output, optional, real(dp)
- The epoch time for the time derivates.
exitstatus: output, optional, integer
- If present, instead of executing a STOP when an error is encountered, the variable exitstatus will be returned describing the error. 0 = No errors; 1 = Improper dimensions of input array; 2 = Improper bounds for input variable; 3 = Error allocating memory; 4 = File IO error.
SHRead2 will read spherical harmonic coefficients from a CHAMP or GRACE-like ascii-formatted file into an array
cilm. The errors and time derivatives associated with the coefficients will be read if the optional arrays
dot are specified, respectively. The staring and ending date of the solution are specified by the optional parameters
doyend, and the epoch of the time derivates is specified by the optional parameter
epoch. The maximum spherical harmonic degree is read from the file, and the file does not need to be ordered by angular degree or order.
This routine does not read and output all parameters in the file. Records that are read (and at least partially output) include:
dot. Comments specified by the record
CMMNT will be print out to the screen, as will the record names that are not currently implemented.
Each line of the file starts with a character string describing what follows.
SHM: Maximum spherical harmonic degree of file.
gfc: spherical harmonic coefficients, formatted as (
slm) or (