How to split one input file into different ones

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
feroda

How to split one input file into different ones

#1 Unread post by feroda »

Hi all,

I run into a situation that the forcing file for wind stress is too huge. There are 10 years data in the forcing file. I'd like to split it in 5 files, with 2 years records in each file. Does ROMS agree with that? If so, how to add these 5 files into the *.in file?

Thanks

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: How to split one input file into different ones

#2 Unread post by kate »

ROMS does *not* know how to handle multiple files in a sequence. You can split the file into several using ncks from the nco package, but you should probably make them overlap in time. Then you have to restart during the overlap period, making sure to switch from one to the next.

feroda

Re: How to split one input file into different ones

#3 Unread post by feroda »

Thank you, Kate.

Then, I would a little concern about the potential discontinuity between each restart point. I know that ROMS can do perfect restart, but have not had a try yet.

Post Reply