Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cdms2 cannot open files if xml generated by cdscan contains different base urls #1376

cchriste opened this issue Jun 9, 2015 · 4 comments


Copy link

@cchriste cchriste commented Jun 9, 2015

Create cdat xml using cdscan -x outfile.xml -f filelist.txt where filelist.txt contains more than one base url, for example:

(note the different port in the two urls)

Results are the same as in #1368: trying to read the actual data fails unable to open the file:

>>> dd=dv[10000][60]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/uvcdat/2.2.0/lib/python2.7/site-packages/cdms2/", line 82, in __getitem__
    return AbstractVariable.__getitem__(self, key)
  File "/usr/local/uvcdat/2.2.0/lib/python2.7/site-packages/cdms2/", line 1399, in __getitem__
    return self.getSlice(numericSqueeze=1, raw=0, isitem=1, *speclist)
  File "/usr/local/uvcdat/2.2.0/lib/python2.7/site-packages/cdms2/", line 656, in getSlice
    result = self.subSlice(*specs, **keys)
  File "/usr/local/uvcdat/2.2.0/lib/python2.7/site-packages/cdms2/", line 549, in subSlice
    d = self.expertSlice (slicelist)
  File "/usr/local/uvcdat/2.2.0/lib/python2.7/site-packages/cdms2/", line 556, in expertSlice
    f = self.parent.openFile(filename,'r')
  File "/usr/local/uvcdat/2.2.0/lib/python2.7/site-packages/cdms2/", line 754, in openFile
    f = Cdunif.CdunifFile(path,mode)
IOError: No error
@doutriaux1 doutriaux1 added this to the 2.3 milestone Jun 9, 2015
@doutriaux1 doutriaux1 assigned doutriaux1 and dnadeau4 and unassigned doutriaux1 Sep 14, 2015
Copy link

@dnadeau4 dnadeau4 commented Sep 23, 2015

@cchriste The port 9090 is now closed at NCCS. Do you have another example where you want to aggregate 2 files with 2 different URL?

Copy link

@dnadeau4 dnadeau4 commented Sep 24, 2015

I tried with 2 different URL both at NCCS and it worked. I think the problem happened when NCCS was transitioning between port 9090 and port 80 with their opendap server.

@dnadeau4 dnadeau4 closed this Sep 24, 2015
Copy link

@doutriaux1 doutriaux1 commented Sep 28, 2015

@dnadeau4 did you take a look at #1368 ?

Copy link

@dnadeau4 dnadeau4 commented Sep 28, 2015

I just did and got a fix for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants