spedas / pyspedas

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

Warning in ERG test output from cdf_to_tplot (related to FILLVAL handling) #722

Closed jameswilburlewis closed 6 months ago

jameswilburlewis commented 9 months ago

This looks like something we ought to take a close look at:

20-Jan-24 03:31:21: Downloading https://ergsc.isee.nagoya-u.ac.jp/data/ergsc/satellite/erg/hep/l2/omniflux/2017/03/erg_hep_l2_omniflux_20170327_v03_01.cdf to data/ergsc/satellite/erg/hep/l2/omniflux/2017/03/erg_hep_l2_omniflux_20170327_v03_01.cdf
20-Jan-24 03:31:21: Download complete: data/ergsc/satellite/erg/hep/l2/omniflux/2017/03/erg_hep_l2_omniflux_20170327_v03_01.cdf
20-Jan-24 03:31:21: /opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/pytplot/importers/cdf_to_tplot.py:324: FutureWarning: elementwise comparison failed; returning scalar instead, but in the future will perform elementwise comparison
  if ydata[ydata == var_atts["FILLVAL"]].size != 0:
jameswilburlewis commented 6 months ago

This warning no longer appears, possibly due to updates to cdflib?