Math utilities for Jacchia-Roberts atmospheric density model.
Returns the Julian day number (i.e., the Julian date at Greenwich noon) on the specified YEAR, MONTH, and DAY.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=ip), | intent(in) | :: | y |
year (YYYY) |
||
| integer(kind=ip), | intent(in) | :: | m |
month (MM) |
||
| integer(kind=ip), | intent(in) | :: | d |
day (DD) |
Finds the roots of a polynomial using Newton's method
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=dp), | intent(in) | :: | a(:) |
Array of polynomial coefficients (lowest power first) |
||
| integer(kind=ip), | intent(in) | :: | na |
Number of coefficients |
||
| real(kind=dp), | intent(inout) | :: | croots(:,:) |
Initial guesses and output roots (real, imaginary) |
||
| integer(kind=ip), | intent(in) | :: | irl |
Number of roots to solve for |
Reduces the order of a polynomial by division
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=dp), | intent(in) | :: | c(:) |
Polynomial coefficients |
||
| integer(kind=ip), | intent(in) | :: | n |
Order + 1 of polynomial |
||
| real(kind=dp), | intent(in) | :: | root |
A single real root of the polynomial |
||
| real(kind=dp), | intent(inout) | :: | c_new(:) |
Output array with new coefficients |
Convert calendar date to Modified Julian Date (MJD)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=ip), | intent(in) | :: | year | |||
| integer(kind=ip), | intent(in) | :: | month | |||
| integer(kind=ip), | intent(in) | :: | day | |||
| real(kind=dp), | intent(out) | :: | mjd |