NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
hello TDS community, I have a problem I'm quite pickled on. We had a dataset that was working fine until (i think) we pushed the latest file. Our server is continually updated with new files and all of the other datasets seem to work fine. I'm able to get the data from the individual file URLS, but not the time concatenated ncml file. I can display the file or variables, but not obtain any of the data through OPeNDAP, but i'm able to see the data returned via the "get ASCII" button on the OPeNDAP page. The below python script demonstrates the problem: # success with ncml: https://chldata.erdc.dren.mil/thredds/dodsC/frf/geomorphology/DEMs/surveyDEM/surveyDEM.ncml.ascii?latitude%5B0:1:0%5D%5B0:1:0%5D,time%5B0:1:425%5D,elevation%5B0:1:0%5D%5B0:1:0%5D%5B0:1:0%5D # Failure with python (matlab as well) import netCDF4 as nc for url in urls: print(nc.Dataset(url)['time']) variables= nc.Dataset(url).variables.keys() for var in variables: try: nc.Dataset(url)[var][0] print('Success! {} from {}'.format(var, url)) except IndexError as e: print("won't load variable {} from {}".format(var, url)) print(' {}'.format(e)) Any help would be much appreciated! -- +++++++++++++++++++++++++++ Spicer Bak, PhD USACE CHL Field Research Facility 252-305-9975
thredds
archives: