Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature lac #5

Closed
wants to merge 11 commits into from
Closed

Feature lac #5

wants to merge 11 commits into from

Conversation

mraspaud
Copy link
Member

@mraspaud mraspaud commented Feb 2, 2017

Refactor pygac to merge common gac and lac parts.

Conflicts:
	pygac/gac_klm.py
	pygac/gac_pod.py
	pygac/reader.py

Signed-off-by: Martin Raspaud <[email protected]>
Signed-off-by: Martin Raspaud <[email protected]>
Signed-off-by: Martin Raspaud <[email protected]>
Signed-off-by: Martin Raspaud <[email protected]>
Signed-off-by: Martin Raspaud <[email protected]>
tle1, tle2 = self.get_tle_lines()

scan_points = np.arange(3.5, 2048, 5)

if utcs is None:
utcs = self.get_times()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The origin of the timestamp mismatch between feature-lac and develop is here: get_times() returns a reference to self.utcs, so that decrementing utcs below (utcs -= ...) actually modifies self.utcs. I don't know whether this is intended or not. But I guess it is not, because each time compute_lonlat() is called, self.utcs changes its value. Using a local copy utcs = self.get_times().copy() resolves the timestamp mismatch. However, lat/lon is still different compared to the develop branch. The problem does not occur in the develop branch, because compute_lonlat() is never called with utcs=None.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing this out. I will have a closer look.

mraspaud pushed a commit that referenced this pull request Mar 19, 2019
@mraspaud mraspaud changed the base branch from develop to master March 19, 2019 17:50
@mraspaud mraspaud closed this Mar 20, 2019
@mraspaud mraspaud reopened this Mar 20, 2019
@mraspaud mraspaud mentioned this pull request Dec 4, 2019
@mraspaud mraspaud closed this in #45 Dec 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants