Create variables inside the field of netcdf
2 views (last 30 days)
I am trying to create a netcdf with the variables I am having in matrix form. However, I cannot create a variable inside a field.
latdimID = netcdf.defDim(fid,'lat',length(lat));
lat_ID = netcdf.defVar(fid,'lat','double',latdimID);
like this way of working, I am able to create a variable but I want my variable to be inside the field of "Europe" for example.
so in the end, I intend to something like this:
lat_ID = netcdf.defVar(fid,'Europe/lat','double',latdimID);
but of course, it is not correct way to proceed. Do you know how can I put all of my variables inside one field? with the help of this, I can classify my variables.