d_ecmwf2roms.m

Discussion about analysis, visualization, and collaboration tools and techniques

Moderators: arango, robertson

Post Reply
Message
Author
eram
Posts: 4
Joined: Wed Apr 29, 2015 7:14 pm
Location: Science and Research University of Tehran

d_ecmwf2roms.m

#1 Unread post by eram »

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
Attachments
Error.jpg
d_ecmwf2roms.m
(20.64 KiB) Downloaded 268 times

fereshteh
Posts: 79
Joined: Sun Dec 30, 2012 2:58 pm
Location: inio:Iranian National Institute for Oceanography

Re: d_ecmwf2roms.m

#2 Unread post by fereshteh »

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

eram
Posts: 4
Joined: Wed Apr 29, 2015 7:14 pm
Location: Science and Research University of Tehran

Re: d_ecmwf2roms.m

#3 Unread post by eram »

HEllo
Thank you very much for quickly response

Post Reply