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

Scalar variables (introduced by toolbox v2.4) are not supported #14

Open
ggalibert opened this issue Jan 29, 2016 · 3 comments
Open

Scalar variables (introduced by toolbox v2.4) are not supported #14

ggalibert opened this issue Jan 29, 2016 · 3 comments
Assignees

Comments

@ggalibert
Copy link
Contributor

ncParse('/mnt/opendap/1/IMOS/opendap/ANMN/NRS/NRSKAI/CTD_timeseries/IMOS_ANMN-NRS_ACESTZ_20140506T051319Z_NRSKAI_FV01_NRSKAI-1405-NXIC-CTD-104.49_END-20141104T031329Z_C-20150903T024338Z.nc')

triggers the following error:

Error using warning
A message identifier must be followed by another input argument, of type char, representing the message text.

Error in ncdataset/readdata (line 464)
                    warning('NCTOOLBOX:ncdataset:readdata', ['An error occurred while reading "' variable ...

Error in ncdataset/data (line 159)
                    d = obj.readdata(variable);

Error in ncParse (line 325)
                data =  (nctoolbox_datasetInfo.data(variablesToExport(iiVar)))
@ggalibert ggalibert added the bug label Jan 29, 2016
@sspagnol
Copy link

I always thought this was something wrong with my setup. Worked around by
using code idea from
http://au.mathworks.com/matlabcentral/fileexchange/28556-read-netcdf/content/read_netcdf.m
and
changing line

d = array.copyToNDJavaArray();

to

if v.getSize == 1
d = array.copyTo1DJavaArray;
else
d = array.copyToNDJavaArray();
end

I don't know if the comment "% this fails if the variable has no java
shape/no dimension was assigned" still applies.

Simon.

On 29 January 2016 at 14:11, Guillaume Galibert notifications@github.com
wrote:

ncParse('/mnt/opendap/1/IMOS/opendap/ANMN/NRS/NRSKAI/CTD_timeseries/
IMOS_ANMN-NRS_ACESTZ_20140506T051319Z_NRSKAI_FV01_NRSKAI-1405-NXIC-CTD-104.49_END-20141104T031329Z_C-20150903T024338Z.nc
')

triggers the following error:

Error using warning
A message identifier must be followed by another input argument, of type char, representing the message text.

Error in ncdataset/readdata (line 464)
warning('NCTOOLBOX:ncdataset:readdata', ['An error occurred while reading "' variable ...

Error in ncdataset/data (line 159)
d = obj.readdata(variable);

Error in ncParse (line 325)
data = (nctoolbox_datasetInfo.data(variablesToExport(iiVar)))


Reply to this email directly or view it on GitHub
#14.

@ggalibert
Copy link
Contributor Author

@sspagnol a fix is suggested here : #15

@ggalibert
Copy link
Contributor Author

@sspagnol thanks for your input though, this is relevant for nctoolbox, not ncParse from the imos user code library. I can pass this on to nctoolbox github.

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

No branches or pull requests

4 participants