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

a small example to use wwt_api_client #18

Open
timegate opened this issue May 8, 2023 · 1 comment
Open

a small example to use wwt_api_client #18

timegate opened this issue May 8, 2023 · 1 comment

Comments

@timegate
Copy link

timegate commented May 8, 2023

Hello, I read through the manual (https://wwt-api-client.readthedocs.io/en/latest/) but I feel frustrated.

Could you please give me a small example to use wwt_api_client?

for example, I want to take screenshots while changing the latitude and longitude by 1 degree (latitude => -90 ~ 90, longitude => -180 ~ 180). Could you please let me know how could I do this by using wwt_api_client?

@pkgw
Copy link
Contributor

pkgw commented May 10, 2023

Hi, thanks for reaching out!

For the use case you mention, you probably want to use the pywwt package rather than this one. This package interfaces with the different online WWT data services, but doesn't actually contain code that interacts with the WWT rendering engine.

More specifically, the Qt WWT widget has a render method that can take a screenshot of the current view. The file docs/screenshots.py shows some example usage — but be aware that that file has not been kept up-to-date, so it might need some changes to work with the latest APIs.

If you have any more questions, we can discuss here, or we can close the issue.

To think of this as something actionable for this repository, perhaps the main documentation page should be updated to point to pywwt and some of the other WWT repositories to try to help make sure that people are directed to the right places depending on their needs.

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

No branches or pull requests

2 participants