ROMS tidal forcing file

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
s193264
Posts: 18
Joined: Wed Apr 06, 2022 5:59 pm
Location: College

ROMS tidal forcing file

#1 Unread post by s193264 »

Hello

I am working on COAWST model on Japan sea.
I have been working on this project for 3months and I had problem on ROMS. Which below down here. I cant upload my files here because size is too big.

Blowing-up: Saving latest model state into RESTART file
REASON: KEchar = NaN, PEchar = NaN
WRT_RST - wrote re-start

I used TPXO9_atlas_v5 to make my tidal forcing file. I think that, what causing error on my roms is might be my tidal forcing file. So I tried to make tidal forcing file through otps2frc.m by using TPXO7.2 and TPXO9v5 but I failed bot of them.

Can you help me on this problem.

Below down i uploaded my grid file and otps2frc script and my error message as picture. I cant upload any other files because size is too big.

Thank you for your time and consideration and have a nice day.
Sincerely
Attachments
roms_japan_grid.nc.zip
(297.29 KiB) Downloaded 197 times
otps2frc_v5.m.zip
(2.29 KiB) Downloaded 205 times
image.png

User avatar
wilkin
Posts: 922
Joined: Mon Apr 28, 2003 5:44 pm
Location: Rutgers University
Contact:

Re: ROMS tidal forcing file

#2 Unread post by wilkin »

The error says "Permission denied" which suggests you are trying to write to a non-existent directory or you lack the permissions to create files there.

Matlab has great debugging tools. Try:

>> dbstop in write_roms_otps_ncfile_v2

and when Matlab pauses there, check what directory you are in

>> pwd

and whether you can make files there, e.g.

>> system('touch foo.txt')
>> dir('foo.txt')

Before line 33 when your error was triggered, write_roms_otps_ncfile_v2 writes an information message:

Code: Select all

fprintf ( 1, '%s:  writing %s...\n', mfilename, output_tides_ncfile );
which may be informative. You didn't show that report in your post.
John Wilkin: DMCS Rutgers University
71 Dudley Rd, New Brunswick, NJ 08901-8521, USA. ph: 609-630-0559 jwilkin@rutgers.edu

Post Reply