University-of-Reading-Space-Science / HUXt

HUXt - a lightweight solar wind model.
MIT License
37 stars 17 forks source link

HUXt2D lon_init keywork shouldn't default to 0. #4

Closed LukeBarnard closed 4 years ago

LukeBarnard commented 4 years ago

The lon_init keyword specifies the carrington longitude of Earth at the models initialisation time.

Currently this defaults to 0, but this should be 360. I forgot Carrington longitudes go down from 360 to 0, so the current implementation assumes the model run starts at the end of the rotation.

This doesn't affect the model solution, but it does make HUXt2D.time_init incorrect by 1 carrington rotation when lon_init isn't specified. Consequently the position of the solar system bodies in the plotting routines will be wrong too.

LukeBarnard commented 4 years ago

This is done.