Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
Orekit Python Wrapper
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Orekit Labs
Orekit Python Wrapper
Commits
8f414f9c
Commit
8f414f9c
authored
8 years ago
by
Petrus Hyvönen
Committed by
petrush
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Updated absolutedate conversions from incorrect millisecond conversoins
parent
fe41c120
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
orekit-conda-recipe/CHANGES.txt
+3
-0
3 additions, 0 deletions
orekit-conda-recipe/CHANGES.txt
orekit-conda-recipe/meta.yaml
+1
-1
1 addition, 1 deletion
orekit-conda-recipe/meta.yaml
orekit-conda-recipe/pyhelpers.py
+20
-1
20 additions, 1 deletion
orekit-conda-recipe/pyhelpers.py
with
24 additions
and
2 deletions
orekit-conda-recipe/CHANGES.txt
+
3
−
0
View file @
8f414f9c
Changelog python orekit package
2016-11-13 Version 8.0 Build 1
- Corrected the datetime to absolute conversions, microseconds was incorrectly converted
2016-07-03 Version 8.0 Build 0
- Updated to orekit 8.0 version with fixes as of 3rd July
- Changed from apache common maths3 to hipparhcus
...
...
This diff is collapsed.
Click to expand it.
orekit-conda-recipe/meta.yaml
+
1
−
1
View file @
8f414f9c
...
...
@@ -6,7 +6,7 @@ build:
# If this is a new build for the same version, increment the build
# number. If you do not include this key, it defaults to 0.
number
:
0
number
:
1
# Builds:
# 1 - orekit 7.1dev0 version from git 2015-10-05
# 2 - orekit 7.1dev0 version from git 2015-12-17
...
...
This diff is collapsed.
Click to expand it.
orekit-conda-recipe/pyhelpers.py
+
20
−
1
View file @
8f414f9c
...
...
@@ -67,7 +67,26 @@ def absolutedate_to_datetime(orekit_absolutedate):
or_time
.
getHour
(),
or_time
.
getMinute
(),
int
(
math
.
floor
(
seconds
)),
int
(
1000.0
*
(
seconds
-
math
.
floor
(
seconds
))))
int
(
1000000.0
*
(
seconds
-
math
.
floor
(
seconds
))))
def
datetime_to_absolutedate
(
dt_date
):
'''
Converts between orekit.AbsoluteDate objects
and python datetime objects (utc)
Args:
dt_date (datetime): python datetime object to convert
Returns:
AbsoluteDate: time in orekit format
'''
utc
=
TimeScalesFactory
.
getUTC
()
return
AbsoluteDate
(
dt_date
.
year
,
dt_date
.
month
,
dt_date
.
day
,
dt_date
.
hour
,
dt_date
.
minute
,
dt_date
.
second
+
dt_date
.
microsecond
/
1000000.
,
utc
)
def
to_elevationmask
(
az
,
el
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment