Closed MarkTaylorNOC closed 1 year ago
Hi. Using the nc file you sent, I get as below (using the very handy reprex::reprex()
function). Can you try this and report what you get on the problematic machine?
I want to isolate the problem. Note that argoFloats uses oce to try to read the file, and that oce in turn uses ncdf to read the raw contents. So, my questions are
does this reprex illlustrate the problem? (If so, this issue ought to be on the github.com/dankelley/oce issue list.)
what are you expecting to get? (Please express this in terms of code, not snapshots.)
I forgot to say: in the reprex from the previous comment, if I add a[["time"]]
I see just a single time. That makes sense, because this file has no MTIME data (as revealed by the direct ncdf4
work).
So I think there is no issue. Time has just a single value because this profile does not have an MTIME field. But now I'm confused. Are you saying that some machines give time an others do not?
I am really quite sure this is an oce
issue, not an argoFloats
issue. So I'd like to shift the discussion there, unless you disagree, @MarkTaylorNOC. The reason is that I check on oce issues quite frequently, and am not even notified when argoFloats issues are reported (since argoFloats is in a group repo, not an individual repo).
I'm happy with moving the issue to oce. Can the issue be transferred on Github or should I copy and paste the issue onto the oce page?
I think the easiest is to copy/paste. Thanks for the help.
PS. an advantage of being on oce is that it will attract more attention there, which might speed things up a bit (with travel and other work assignments, I'm the only one available for argoFloats for a month or so).
Okay, thanks. I will set up a new issue on oce.
Discussion has been moved over to https://github.com/dankelley/oce/issues/2122 so I'm closing the present issue.
Recently, I have not been able to read in the date/time variable of profiles using
readProfiles()
(although I have many times in the past). When using the example code from the package help file, theargoFloats
object reports all variables (latitude, longitude, temperature, etc...) except the date.I've emailed the netcdf of the downloaded file (SD1900722_003.nc) to Kelley. The resulting output looks normal other than the absence of the time variable.
I've tried uninstalling and updating the package, as well as using older versions, however this hasn't made a difference. This only happens on my work PC (Windows), and identical code works fine on my laptop (also Windows).
I'm currently using the following versions: R version 4.3.0 (2023-04-21 ucrt) argoFloats 1.0.6, oce 1.8-0 ncdf4 1.21
Here are some details of my machine: platform x86_64-w64-mingw32
arch x86_64
os mingw32