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

The plot rotates with changing the date #11

Closed
MohamedNedal opened this issue Jun 1, 2022 · 6 comments
Closed

The plot rotates with changing the date #11

MohamedNedal opened this issue Jun 1, 2022 · 6 comments

Comments

@MohamedNedal
Copy link

MohamedNedal commented Jun 1, 2022

Hi, I noticed that once the date and time are changed, the polar plot rotates and it's no longer adjusted as shown in the example notebook (i.e., the 90 deg. points upward, 0 deg. points to the right, etc.).
Is there a workaround to make the polar plot fixed when changing the date and time?
Also I don't know why the grid circles disappear

image

image

@jgieseler
Copy link
Owner

jgieseler commented Jun 2, 2022

Hi, I noticed that once the date and time are changed, the polar plot rotates and it's no longer adjusted as shown in the example notebook (i.e., the 90 deg. points upward, 0 deg. points to the right, etc.).
Is there a workaround to make the polar plot fixed when changing the date and time?

This is the expected behavior. With default settings, the longitudes are provided in Carrington coordinates (more details at SunPy). In this system, lines of longitude rotate with the Sun. And by default we plot the Earth at "6 o'clock", so downwards. Of course, one could define the plot in such a way that 0° Carrington longitude is always at "6 o'clock", but I doubt this brings any advances. Because then we would have the longitude values fixed, but all spacecraft would rotate 'wildly'.

Also I don't know why the grid circles disappear.

Me neither. 😉 This is already opened as #5

@jgieseler
Copy link
Owner

I forgot to mention that you can in addition plot the Stoneyhurst coordinate system as an overlay (in green, see below). This coordinate system will stay fixed. It's planned to be included directly in solarmach, cf. #1 where you can also find a code example.

image

@MohamedNedal
Copy link
Author

I forgot to mention that you can in addition plot the Stoneyhurst coordinate system as an overlay (in green, see below). This coordinate system will stay fixed. It's planned to be included directly in solarmach, cf. #1 where you can also find a code example.

image

Yes I saw that. The reason why I mentioned the fixed degrees and rotating spirals would be easier to follow by eye is that, for instance, to be in the same way as the ENLIL-WSA model showing the Parker spirals with the evolution of the solar wind.

image

@MohamedNedal
Copy link
Author

@jgieseler Could you please mention how could we define the plot in such a way that 0° Carrington longitude is always at "6 o'clock"? Which part of the code should be modified?

@jgieseler
Copy link
Owner

jgieseler commented Jun 2, 2022

But isn't the ENLIL example doing exactly the same as Solar-MACH? It has Earth at a fixed position. The main difference is that Earth is at 3 o'clock (instead of 6), besides it also uses Stoneyhurst coordinates. If you fixed 0° Carrington longitude at 6 o'clock, you will have the Earth circling the Sun.

@jgieseler
Copy link
Owner

Here as an animation using Carringtion coordinates with 0° Carrington longitude fixed at 3 o'clock:

solarmach

This is achieved by just removing L354 from solarmach/init.py

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