Try another fix for the flux climatology.
Add the ability to control which time variables are output when writing the netCDF file. The script defaults to Times since this is the easiest to control from a precision perspective. Also includes an update to the format of the Times output to better store fractions of a second.
Add the ability to control which time variables are output when writing the netCDF file. The script defaults to Times since this is the easiest to control from a precision perspective. Also includes an update to the format of the Times output to better store fractions of a second.
Merge branch 'riqui' into dev
bug fixing on read_netCDF_FVCOM.m
Stop the function returning dimension sizes as it is being run (those are largely for debugging only). Also change preallocation of arrays to use nan(size) rather than nan*ones(size).
Tidy up whitespaces.
Add an updated version of example_init_lag.m which uses the native MATLAB netCDF routines.
Update the help to reflect indexing changes in the function (now 1-based rather than 0-based).
Fix bug when reading 2D arrays after 3D arrays.
remove initial read of time variable with reading first and last entries only
Included a stride option in the time_idx in read_netCDF_fvcom.m. You can now select all date_range in the netcdf file (date_range=-1) but subsample the variables at read time rather than afterwards. I have also coded the option to limit three dimensions simultaneously. Previously only two dimensions were allowed.