Error using nc.geovariable when looping(iteration)

50 views
Skip to first unread message

Robi Muharsyah

unread,
Jun 13, 2014, 11:58:05 AM6/13/14
to ncto...@googlegroups.com
dear all,
I already success read GRIB2 File using ncgeodataset, in this case I want read many file, for example i have 30 file grib2 with different name in year,like this
surf_Pss_mon.19811217.gbr2
surf_Pss_mon.19821217.grb2
:
:
surf_Pss_mon.20101217.grb

so I do this with looping using for..end in Matlab, but when it run , it is only success till read for 15 file when looping for file 16th I got error like this :

Dot name reference on non-scalar structure.

Error in ncdataset (line 72)
                obj.variables = url.variables;

Error in ncgeodataset/geovariable (line 165)
                    ncd = ncdataset(obj);

Error in ncgeodataset/subsref (line 378)
                            B = builtin('subsref',obj,g);

Error in testGPVhindcastNew (line 32)   
vargrib = nc.geovariable('Water_temperature_surface_Mixed_intervals_Average');

note :testGPVhindcastNew is my name m file

So, how to fix this problem, I already check the grib2 data, if I open it one by one each data its work, but it will hard to do with many data.

Maybe some one can give me solution, I will appreciate for it

Thanks ...

regards
Robi



Brian Schlining

unread,
Jun 15, 2014, 3:41:43 PM6/15/14
to ncto...@googlegroups.com
Can you share a file or opendap url to a dataset that's causing the failure? Without that it's hard to figure out what's going on.

Thanks
Brian
Reply all
Reply to author
Forward
0 new messages