Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Orekit Orekit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 67
    • Issues 67
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 9
    • Merge requests 9
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Orekit
  • OrekitOrekit
  • Issues
  • #895
Closed
Open
Created Feb 22, 2022 by Li Rongwang@lirw19841

Suggestion of enhancements for SP3Parser

To be more smart, the followings changes are suggested to fit sp3 files provided by ILRS ACs(ASI,BKG,DGFI,ESA,GFZ,JCET,NSGF, and ilrsa, ilrsb, https://ilrs.gsfc.nasa.gov/data_and_products/products/index.html#s2, ftp://edc.dgfi.tum.de/pub/slr/products/orbits/):

(1) DATA_EPOCH: use the rest as seconds.

final double second = Double.parseDouble(line.substring(20, 31).trim());

==>

final double second = Double.parseDouble(line.substring(20).trim());

(2) HEADER_COMMENTS: both “%/*” and “/*”

HEADER_COMMENTS("^/\\*.*")

==>

HEADER_COMMENTS("^[%]/\\*.*")

(3) clock record in DATA_POSITION and DATA_VELOCITY:

// clock (microsec)
pi.latestClock = line.length() <= 46 ?
                                        DEFAULT_CLOCK_VALUE :
                                        Double.parseDouble(line.substring(46, 60).trim()) * 1e-6;

==>

// clock (microsec)
pi.latestClock = line.trim().length() <= 46 ?
                                             DEFAULT_CLOCK_VALUE :
                                             Double.parseDouble(line.substring(46, 60).trim()) * 1e-6;

There is already a topic in forum details.

Additional, there maybe no EOF. I've no idea how to handle it.

ilrsa.orb.lageos1.220101.v70.sp3.gz

ilrsb.orb.lageos1.220101.v70.sp3.gz

gfz.orb.lageos1.220101.v70.sp3.gz

jcet.orb.lageos1.220101.v70.sp3.gz

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking