spedas / pyspedas

Python-based Space Physics Environment Data Analysis Software
https://pyspedas.readthedocs.io/
MIT License
147 stars 58 forks source link

Basic implementation of THM_SCPOT2DENS #753

Closed xandrd closed 6 months ago

xandrd commented 6 months ago

The implementation includes tests and documentation.

This is initial implementation, there could be cases that are not validated yet. For example, new function works only with arrays, it does not process single values.

Also, THM_SCPOT2DENS is not the most updated function to calculate density from the spacecraft potential, but it is the most straightforward to convert, and it does have a crib sheet in SPEDAS. It was also initially recommended by Anderi Runov.

The branch scpot2den will be used for further development.

Addressing #751