>>>>> "IS" == Ivan Shmakov <i...@main.uusia.org> writes:

[…]

 IS> The version of NetCDF currently in Debian Sid supports retrieving
 IS> datasets via OpenDAP (see below for an example.)  On the contrary,
 IS> PDL::NetCDF doesn't:

 > pdl> my $nc = PDL::NetCDF->new 
 > ("http://test.opendap.org:8080/dods/dts/test.01";); 
 > new:  Cannot create netCDF file -- No such file or directory

 > pdl> 

 IS> I've traced this issue down to the PDL::NetCDF::nc_open () wrapper
 IS> (newlines added to for readability):

[…]

        Strangely enough, but it seems that it's the OCLOGFILE=/dev/null
        workaround for Debian Bug#611338 that makes
        PDL::NetCDF->nc_open () fail.  With OCLOGFILE unset or empty, it
        seems to work.

        As for the PDL::NetCDF->new () constructor, the “if (-e $file)”
        logic has to be amended to check for a “looks like an URI” case.
        (A regular expression, perhaps?)  Or, alternatively, I'd vote
        for a completely separate new_from_uri () constructor to handle
        the URI objects and strings.  (And then would hope for NetCDF to
        follow with a similar change.)

-- 
FSF associate member #7257

Attachment: pgpKgjPY5c1Yz.pgp
Description: PGP signature

Reply via email to