8000 Use the geotiepoints library by alirezamdv · Pull Request #34 · pytroll/pygac · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Use the geotiepoints library #34

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

Merged
merged 5 commits into from
Oct 15, 2019
Merged

Use the geotiepoints library #34

merged 5 commits into from
Oct 15, 2019

Conversation

alirezamdv
Copy link

I added Python-geotiepoints in requirments list and looked after Chenges in gac_klm and gac_pod and finally removed geotiepoints.py.

Copy link
Member
@mraspaud mraspaud left a comment

Choose a reason for hiding this comment

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

Thank you for the prompt PR ! Did you have some data to try out the changes ?
Regarding the geotiepoints part, my only concern is that there is some code duplication that could be factorized. Maybe the Gac_Lat_Lon_Interpolator function could be kept but made to use the geotiepoint lib. (And the name of that function would need to be sanitized)

Regarding the config file handling, I agree that some action needs to be taken, but I think it deserves some more discussion first and should be dealt with in another PR. So for now, could you just revert the changes in gac_io.py and maybe open an issue so that we can discuss the best course of action ?

pygac/gac_klm.py Outdated
Comment on lines 528 to 541
cols_subset = np.arange(4, 405, 8)
cols_full = np.arange(409)
lines = arr_lat.shape[0]
rows_subset = np.arange(lines)
rows_full = np.arange(lines)
along_track_order = 1
cross_track_order = 3
satint = gtp.SatelliteInterpolator((arr_lon, arr_lat),
(rows_subset, cols_subset),
(rows_full, cols_full),
along_track_order,
cross_track_order)
self.lons, self.lats = satint.interpolate()
return self.lons, self.lats
Copy link
Member

Choose a reason for hiding this comment

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

Could you make a function for that ? It's being used in 2 places

Copy link
Author

Choose a reason for hiding this comment

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

I limited the changes and kept the Gac Lat_Lon Interpolator function.I just made it work with Python Geotiepoints. Could you please take a look?! I test it with test code and everything is fine!

setup.py Outdated
Comment on lines 106 to 107
# extras_require={'geolocation interpolation': ['python-geotiepoints'],
# },
Copy link
Member

Choose a reason for hiding this comment

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

You don't need to keep this as a comment, just remove it.

@alirezamdv alirezamdv requested a review from mraspaud October 15, 2019 07:31
@mraspaud
Copy link
Member

@sfinkens would you like to test this ?

@mraspaud mraspaud requested a review from sfinkens October 15, 2019 08:51
@mraspaud mraspaud changed the title updated geotiepoints and some change in gac_io to work with sample CFG Use the geotiepoints library Oct 15, 2019
Copy link
Member
@mraspaud mraspaud left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member
@sfinkens sfinkens left a comment

Choose a reason for hiding this comment

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

Tested, results are identical to master. Nice work, thank you!

@mraspaud
Copy link
Member

Thanks for the contribution !

@mraspaud mraspaud merged commit 2df63fa into pytroll:master Oct 15, 2019
@alirezamdv
Copy link
Author

Thanks for the contribution !

You're welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0