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.
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