spedas / pyspedas

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

scpot2dens error on THEMIS probe other than 'c' #756

Closed xandrd closed 6 months ago

xandrd commented 6 months ago

From the user's email:

When I was running the script for other probes than 'c', I got a dimension missmatch of common_offset_matrix. I changed line 210 of scpot2dens.py to

    common_offset_matrix = np.array([[2.2, 2.0, np.nan, np.nan],
                                    [2.2, 2.0, np.nan, np.nan]])

which makes it work. But I am not sure if the values or correct or not. Maybe you could check this yourself.

The detention check and the test for other THEMIS probes is requered.

xandrd commented 6 months ago

This issue is related to #751