Ocean Modeling Discussion

ROMS/TOMS

Search for:
It is currently Wed Jul 24, 2019 12:27 am




Post new topic Reply to topic  [ 6 posts ] 

All times are UTC

Author Message
 Post subject: Problem
PostPosted: Tue Oct 15, 2013 12:08 pm 
Offline

Joined: Mon May 27, 2013 11:02 pm
Posts: 14
Hi,

I am trying to run easygrid.m and I get:

??? Undefined function or method 'spheriq_dist' for input arguments of
type 'double'.

Error in ==> easygrid at 167
latdist = spheriq_dist(lon,lat,lon,lat+1); % Length (in meters) of 1
degree of latitude

All routines are in the matlab path. When I replace the values in the place of variables, like:

latdist=spheric_dist(-62.8855,44.8125,-62.8855,45.8125); instead of
latdist = spheriq_dist(lon,lat,lon,lat+1);

it works fine. Otherwise I get the aforementioned error.

Anyone faced the same problem?

Thanks in advance,
Thanos


Top
 Profile  
Reply with quote  
 Post subject: Re: Problem
PostPosted: Wed Oct 16, 2013 3:29 pm 
Offline

Joined: Fri Nov 19, 2010 2:33 pm
Posts: 52
Location: University of Aegean
Greetings,

you can use geodesic_dist.m script
which is located in ROMS/matlab/utility
folder. It's the same with the old
spheric_dist.m plus it gives you the
term galpha which is the Geodesic
azimuth from point 1 to point 2 clockwise
from North in decimal degrees. To be honest
I am using seagrid.

Giannis


Top
 Profile  
Reply with quote  
 Post subject: Re: Problem
PostPosted: Thu Oct 17, 2013 7:37 am 
Offline

Joined: Mon May 27, 2013 11:02 pm
Posts: 14
Thanks Giannis,

I appreciate it! I am also focusing on using seagrid, but I am facing some problems, probably with the Netcdf routines. Do you also have any experience with Roms_tools on the grid/forcing files creation?

Best,
Thanos


Top
 Profile  
Reply with quote  
 Post subject: Re: Problem
PostPosted: Thu Oct 17, 2013 3:15 pm 
Offline

Joined: Fri Nov 19, 2010 2:33 pm
Posts: 52
Location: University of Aegean
Hi Thanos,

I have never used Roms_tools for grid and forcing files.
I am using the last 2.5 years the matlab routines that
are provided through the svn repository. If you download
the latest version of Rutgers ROMS matlab tools I am sure
that you are not going to have any problems with the netcdf
routines because this version uses the matlab (2012+) native netcdf
interface. There is a possibility to have some problems when
you try to create the mex files that seagrid requires. Check it
out. If you have any problem I am sure that you will find plenty
of help in the forum (including me).

Wish you a pleasant evening.

Giannis


Top
 Profile  
Reply with quote  
 Post subject: Re: Problem
PostPosted: Wed May 27, 2015 5:18 am 
Hi All,

Even I am trying to run easygrid but unfortunately I am getting this error message:

"Undefined function 'spheriq_dist' for input arguments of type 'double'.

Error in easygrid (line 166)
latdist = spheriq_dist(-62.8855,44.8125,-62.8855,45.8125); % Length (in meters) of 1 degree of latitude"

I see that Thanos has replaced the variables with the data and could run easygrid that way, but it does not work for me. Can anyone suggest why is this happening or is there any other script to create grids?

Thanks in advance!

Piyali


Top
  
Reply with quote  
 Post subject: Re: Problem
PostPosted: Sat Apr 22, 2017 5:16 am 
Offline

Joined: Wed Jan 11, 2017 3:25 pm
Posts: 16
Location: k.n.toosi University of Technology
hello. how can i change the longitude and latitude of easygrid plot?


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group