Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Orekit
Orekit
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 54
    • Issues 54
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 3
    • Merge Requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Orekit
  • OrekitOrekit
  • Issues
  • #178

Closed
Open
Created Aug 14, 2014 by Luc Maisonobe@lucOwner

magnetic field declination is NaN for dates like 1995-01-01 or 2005-0101

The following code returns a NaN for magnetic field declination:

~
@Test
public void testIntepolationYYY5() throws OrekitException {
double decimalYear = GeoMagneticField.getDecimalYear(1, 1, 2005);
GeoMagneticField field = GeoMagneticFieldFactory.getIGRF(decimalYear);
GeoMagneticElements e = field.calculateField(1.2, 0.7, -340);
Assert.assertEquals(-5.6164, e.getDeclination(), 1.0e-4);
}
~

(from redmine: issue id 178, created on 2014-08-14, closed on 2015-01-12)

  • Uploads:
    • magnetic_field.patch
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None