Using sed to modify namelist.wps and maelist.input

Any miscellaneous question/problem/comment related to WRF support that does not fit under any of the other category
Post Reply
methane-rain
Posts: 2
Joined: Fri Jun 12, 2020 9:32 pm

Using sed to modify namelist.wps and maelist.input

Post by methane-rain » Fri Jun 12, 2020 9:37 pm

Quick question: is it possible to use sed in unix/linux to modify contents of the namelist.wps and namelist.input files since they aren't regular text files?

If not, is there a better way to edit those files without going in and changing the information by hand?

I'm looking to use some declared variables to change things like start date and run hours, etc.

Thanks!

kwerner
Posts: 2287
Joined: Wed Feb 14, 2018 9:21 pm

Re: Using sed to modify namelist.wps and maelist.input

Post by kwerner » Mon Jun 15, 2020 10:49 pm

Yes, you should be able to use sed. The namelists actually are regular text files. Did you give it a try?
NCAR/MMM

methane-rain
Posts: 2
Joined: Fri Jun 12, 2020 9:32 pm

Re: Using sed to modify namelist.wps and maelist.input

Post by methane-rain » Mon Aug 31, 2020 11:07 pm

Yeah, sed worked fine, thanks!

Post Reply

Return to “Miscellaneous”