MITgcm / gcmfaces

gcmfaces is a Matlab / Octave toolbox that handles gridded earth variables in generic fashion. Read more at:
http://gcmfaces.readthedocs.io/en/latest/
MIT License
24 stars 21 forks source link

can't use read_nctiles function in Matlab #16

Open ghost opened 2 years ago

ghost commented 2 years ago

I have learned that I must use read_nctiles function to read the ECCO nctiles data. Unfortunately, Matlab keeps reporting errors when running the basic function: " errors read_nctiles (line 172) fldTile=netcdf.getVar(nc,vv,start,count)", and reminds me that the "START" parameter must be 5 numbers but not 4 when call netcdflib function. For example, when I want to read THETA_199201.nc data, ncdisp('THETA_199201.nc') shows the THETA is a 5-D data, but the "start" parameter of read_nctiles seems to be 4 but not 5. I am a rookie to the gcmfaces function toolbox, and I really want to know why this happens.

owang01 commented 2 years ago

@cyang2022 Thanks for reporting this. Can you please post an example command you used and also which data set you were trying to read?