Creating Tidal Forcing Input Netcdf File

Discussion about analysis, visualization, and collaboration tools and techniques

Moderators: arango, robertson

Post Reply
Message
Author
nils.lindeen
Posts: 19
Joined: Fri Jul 30, 2010 3:56 am
Location: Pontifica Universidad Catolica de Chile

Creating Tidal Forcing Input Netcdf File

#1 Unread post by nils.lindeen »

Hi,

I have been trying to run a basic tidal model for a Channel in the South of Chile, for which I need to create a tidal forcing file. For this I have been following the instructions on the Wiki Tidal Forcing site (https://www.myroms.org/wiki/index.php/Tidal_Forcing), by which I do the following:

* >> t=datenum(2005,1,1);
* >> tpred=datenum(2006,1,1);
* >> gfile='/home/nils/Projects/nils/nils_grd_2.nc';
* >> otps2frc_v3(gfile,t,tpred,'test_PO.nc','DATA/Model_PO')

Yet, when I run otps2frc_v3 on Matlab, I get the following error:

??? Undefined variable "NetcdfFile" or class "NetcdfFile.open".

Error in ==> snctools/private/nc_varget_java at 24
jncid = NetcdfFile.open(ncfile);

Error in ==> nc_varget at 51
data = nc_varget_java(ncfile,varname,start,count,stride);

Error in ==> roms2ll at 13
lon = nc_varget ( input_ncfile, 'lon_rho' );

Error in ==> otps2frc_v3 at 35
roms2ll(gfile,llfile);

Does anyone by any chance have any idea what this means? I was told it is related to Matlab no finding the gfile, yet I checked the path and confirmed it was correct. I cannot manage to figure out what it could be. Hopefully someone can help me.

Thanks alot.

Post Reply