Hello Dear all user
I used d_ecmwf2roms.m (ecm.m) to create forcing data so I provided 4 files data
ecmwf_era_atms_1992.nc
ecmwf_era_flux_1992.nc
ecmwf_era_heat_1992.nc
ecmwf_era_temp_1992.nc
Then I run the d_ecmwf2roms.m (ecm.m i renamed it) and I got this error (attached file)
** Creating ROMS NetCDF forcing file: CS_sms_era.nc**
Error using nc_read
Too many input arguments.
Error in ecm (line 331)
Lon=nc_read(inputFile, ‘longitude’,
Any help or insight would be greatly appreciated
Thanks very much
d_ecmwf2roms.m
d_ecmwf2roms.m
- Attachments
-
- d_ecmwf2roms.m
- (20.64 KiB) Downloaded 312 times
-
- Posts: 79
- Joined: Sun Dec 30, 2012 2:58 pm
- Location: inio:Iranian National Institute for Oceanography
Re: d_ecmwf2roms.m
It will be solved by adding some directories path into MATLAB, which include old functions for netCDF(such as nc_read) :
addpath ../roms/matlab/netcdf
addpath ../RNT/matlib/mexnc (if you download RNT from roms site)
addpath ../roms/matlab/utility
addpath ../roms/matlab/netcdf
addpath ../RNT/matlib/mexnc (if you download RNT from roms site)
addpath ../roms/matlab/utility
Re: d_ecmwf2roms.m
HEllo
Thank you very much for quickly response
Thank you very much for quickly response