![]() > changelog, openDAP is supposed to be supported. ![]() > The netCDF4 is installed from the Anaconda package. > I'm having a problem trying to access OpenDAP files using netCDF4. To D/L them all into a temporary folder and use MFDataset.įrom ojan at Fri Aug 14 12:11:10 2015įrom: ojan at (George Trojan) Since there are a whole bunch ofįiles in the directory, I really need MFDataset, but according to theĭocumentation that doesn't work with URLs. Yes the file does appear to be there, I can download it and I can Perhaps you can go to their project page on Github and file an issue there - they will be more likely to have your answer than people here. ![]() What?s more, it *seems* like the file (/pub/./.dds) was decorated with the ?.dds? suffix for some reason (not sure if the server redirected the request there or not). Since the docs say it?s linking to libcurl, I tried using curl to download the file (curl -# > test.nc) and it worked fine. > So it?s clear that netCDF4 is at least *trying* to go online to look for the file, but it simply can?t find it. > syntax error, unexpected WORD_WORD, expecting SCAN_ATTR or SCAN_DATASET or SCAN_ERROR Indeed, when I run that example, the traceback is more complete (the traceback you printed had omitted some information): Your error message says "file not found", though, which suggested to me that it's trying to interpret the NetCDF file as a local file instead of a URL. However, this requires that the netCDF library be built with OPenDAP support, via the -enable-dap configure option (added in version 4.0.1).? > "Remote OPeNDAP-hosted datasets can be accessed for reading over http if a URL is provided to the netCDF4.Dataset constructor instead of a filename. > Thanks for the reply but that is not what the documentation says. So, what is the correct way toĭetermine the number of bits required to represent a PyInt object in Python Additionally, _PyLong_NumBits() is notĪccurate when the number is negative. Segfaults when the type is a PyInt that has the value of 0xffffffff However, in Python 2.7, _PyLong_NumBits() In Python 3.x, I'm able to determine how many bits are required to write an PyLong_AsUnsignedLongLong() should be used. PyLong_AsLong(), PyLong_AsUnsignedLong(), PyLong_AsLongLong(), or I'm using _PyLong_NumBits() to determine whether I am working on a CPython library that serializes Python objects to disk inĪ custom format. Subject: Python 2.7: _PyLong_NumBits() Segfault > added netCDF4 (with OpenDAP support) on Linux and MacOSX"įrom meily.adam at Fri Aug 14 09:21:57 2015įrom: meily.adam at (Adam Meily) > updates to all important packages: python, numpy, scipy, ipython, matplotlib, pandas, cython ![]() So it?s clear that netCDF4 is at least *trying* to go online to look for the file, but it simply can?t find it. The requested URL /pub/data/cmb/ersst/v3b/netcdf/.dds was not found on this server.įile "netCDF4/_netCDF4.pyx", line 1547, in netCDF4._netCDF4.Dataset._init_ (netCDF4/_netCDF4.c:9551)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |