I am running into an error attempting to use 'plots.asi_projection' in which negative slant range values are being produced and the code is throwing an error because slant range should be in the range [0,infinity). Below is the code that will reproduce the error. Note that the data I am reading in lacks an 'alt_km' attribute, which is needed by 'asi_projection', so I am manually setting that attribute. I am uncertain whether it is my error that is causing negative slant ranges or if a check for these non-physical ranges is needed.
import numpy as np
import os
import themisasi as ta
time_query = '2016-11-29T12'
ta.download(time_query, 'mcgr', '~/Documents/THEMIS_data')
dat = ta.load('~/Documents/THEMIS_data/', site='mcgr', treq=time_query)
dat['alt_km'] = dat.attrs['alt_m']*1000
import themisasi.plots as tap
tap.asi_projection(dat,110e3)
I am running into an error attempting to use 'plots.asi_projection' in which negative slant range values are being produced and the code is throwing an error because slant range should be in the range [0,infinity). Below is the code that will reproduce the error. Note that the data I am reading in lacks an 'alt_km' attribute, which is needed by 'asi_projection', so I am manually setting that attribute. I am uncertain whether it is my error that is causing negative slant ranges or if a check for these non-physical ranges is needed.