[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #JON-360369]: Python crashes when opening an OPeNDAP dataset on Windows from a directory without write access



Depending on which version of netcdf
you are using, there are potentially two
temporary file being used.
The problem ultimately is that there is no good equivalent
of the Unix /tmp directory under windows.

The problem should be fixed in 4.2.1-rc1
because it now used the NC_DISKLESS capability
so that it builds temporary files in-memory
instead of using a temporary file.

If you are seeing this behavior with 4.2.1-rc1, then
it is a bug that needs to be fixed.

If you are using 4.2 or earlier and have a directory
that can be treated as /tmp, then we can publish some fixes.

But first, try this: put the string "[fetch=memory]"
at the front of your url like this:
url='[fetch=memory]http://geoport.whoi.edu/thredds/dodsC/bathy/adria15'
and see if it still fails.
The second thing to do is edit the file libdap2/nccommon.h
and change PSEUDOFILE to something else. Note it currently assumes
"/tmp" because windows support went away a while ago and has only now
returned in 4.2.1 where (I hope) the problem no longer exists.
=Dennis Heimbigner
  Unidata


Ticket Details
===================
Ticket ID: JON-360369
Department: Support netCDF
Priority: Normal
Status: Closed