Can someone tell me how to set or create the 'time' string within the netcdf file?
Now i try to use COAWSTv3.1, and i can find there is a new file 'check_multifile.F' (COAWST/ROMS/Utility) that do the file checking. But i dont know how to create such netcdf files (One example is that i want to create two forcing files, one for tide, another for wind stresses. In the previous version, i set 'sms_time' within the second file and it works, but in the new version it shows error message: 'unable to find time variable in input NetCDF file'.....'variable name does not contains the 'time' string').
Thanks very much!
I just figure out my problem. The problem comes from the code that i used to create the NetCDF file for wind stress.
The original matlab code was written as:
v1 = netcdf.defVar(nc,'sms_time','double',[time_steps one]);
% Here 'time_steps' is a self-defined parameter.
Because the new 'check_multifile.F' 'Search for the time variable: any 1D array variable with the string 'time' in the variable name'. So, the code above is not reasonable any more. It should be modified as:
v1 = netcdf.defVar(nc,'sms_time','double',time_steps);
I made the modification, and now it works. Hope i make myself clear. Thanks!