cormorack / yodapy

Your Ocean Data Access in Python
https://cormorack.github.io/yodapy/
MIT License
9 stars 10 forks source link

Xarray occasionally forces data variables to all zeros #66

Open s-kganz opened 6 years ago

s-kganz commented 6 years ago

First observed on CTD instrument RS01SBPS-SF01A-2A-CTDPFA102 for November 2016. Calling open_mfdataset or open_dataset to open data at an OpenDAP URL will sometimes result in the obs and/or time variables being set to all zeros.

s-kganz commented 6 years ago

Issue also occurs for some data variables, but more rarely. For ex, requesting CTD in June 2016 results in seawater_pressure getting zero'd.

jun.search(region="cabled",instrument="ctd,nitrate",node="SF01A")

s-kganz commented 6 years ago

Issue can occur for only part of the dataset. Below, the plot color codes with pressure. One streak is colored, the other is all zeros. newplot

s-kganz commented 6 years ago

Continually redoing the to_xarray() call will sometimes fix the problem. In 40 trials checking 3 different variables, all three arrived 19 times.