converting roms grid to swan grid

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
venuscheung

converting roms grid to swan grid

#1 Unread post by venuscheung »

hi all,
i would like to convert roms grid to swan but somethings strange happened, many point in swan.grid show -999
here's my file, Thank you.
Attachments
swan_coord.txt
(85.92 KiB) Downloaded 350 times
roms2swan.m
(2.01 KiB) Downloaded 352 times
roms_roms.nc
(448.63 KiB) Downloaded 338 times

jcwarner
Posts: 1200
Joined: Wed Dec 31, 2003 6:16 pm
Location: USGS, USA

Re: converting roms grid to swan grid

#2 Unread post by jcwarner »

please read the swan manual.
the 999.. values tell swan those are land mask locations.
those 999.. values need to be the same as the Exception value you list in your swan.input file.
-j

venuscheung

Re: converting roms grid to swan grid

#3 Unread post by venuscheung »

but when I run ./scrip_coawst, the following error comes out
Attachments
temp.log
(3.45 MiB) Downloaded 376 times

venuscheung

Re: converting roms grid to swan grid

#4 Unread post by venuscheung »

I am here to update the problem.
I believed that the problem happens in converting the grid from roms to swan.

I make roms grid and converted it to swan grid by roms2swan.m.
Then I used scrip_coawst_WW3SWAN.in for remapping and error in temp comes out.
When I run ./coawstM, the following error comes out.

MCT::m_ExchangeMaps::ExGSMapGSMap_:: MCTERROR, Grid Size mismatch
LocalMap Gsize = 9447 RemoteMap Gsize = 9514
MCT::m_ExchangeMaps::ExGSMapGSMap_: Map Grid Size mismatch error, stat =3
030.MCT(MPEU)::die.: from MCT::m_ExchangeMaps::ExGSMapGSMap_()
application called MPI_Abort(MPI_COMM_WORLD, 2) - process 48
MCT::m_ExchangeMaps::ExGSMapGSMap_:: MCTERROR, Grid Size mismatch
LocalMap Gsize = 9514 RemoteMap Gsize = 9447
Attachments
temp.txt
(1.13 MiB) Downloaded 366 times
swan_coord.txt
(241.57 KiB) Downloaded 348 times
swan_bathy.txt
(141.65 KiB) Downloaded 319 times
scrip_coawst_WW3SWAN.in
(2.38 KiB) Downloaded 305 times
roms2swan.m
(2.01 KiB) Downloaded 317 times

venuscheung

Re: converting roms grid to swan grid

#5 Unread post by venuscheung »

Hi all,
the prooblem is found. Thank you all.

HONGWANG
Posts: 14
Joined: Wed Jan 19, 2022 1:52 pm
Location: UM

Re: converting roms grid to swan grid

#6 Unread post by HONGWANG »

hi, i meet the same problem with you. Could you please give any suggestion for me? thank you so much!

jcwarner
Posts: 1200
Joined: Wed Dec 31, 2003 6:16 pm
Location: USGS, USA

Re: converting roms grid to swan grid

#7 Unread post by jcwarner »

if you are using coawst, you can post a message here:
https://github.com/jcwarner-usgs/COAWST/issues

also i suggest you look at the Inlet_test case and the User manual for descriptions on how to set these up.
-j

master
Posts: 11
Joined: Thu Nov 21, 2019 1:17 pm
Location: Ocean University of China

Re: converting roms grid to swan grid

#8 Unread post by master »

I'm running ROMS-SWAN model. I also have the same question. I set up my own application according to the Inlet_test case. Would you please give me any suggestions?

Post Reply