How to save monthly data in average file?

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
javadi
Posts: 115
Joined: Mon Jan 27, 2020 5:55 pm
Location: UoT

How to save monthly data in average file?

#1 Unread post by javadi »

Dear users,

I am going to record the average of variables at the end of each month. My DT=400 and I guess that I should change this part of .in. By default, it records 8 hours.

LDEFOUT == T
NHIS == 72
NDEFHIS == 0
NQCK == 0
NDEFQCK == 0
NTSAVG == 1
NAVG == 72
NDEFAVG == 0
NTSDIA == 1
NDIA == 72
NDEFDIA == 0


How can I record average monthly data in roms_avg?

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

Re: How to save monthly data in average file?

#2 Unread post by kate »

If you want thirty-day months, that is simple enough to do. Just figure out how many timesteps per month and ask for that.

I typically save daily, one record per file, rename the files to have the date in the filename, then average to get monthlies.

javadi
Posts: 115
Joined: Mon Jan 27, 2020 5:55 pm
Location: UoT

Re: How to save monthly data in average file?

#3 Unread post by javadi »

Thank you so much for your response

I change only NAVG and I estiamte

NAVG=30.2*24*3600/400=6523

I put this value but the result would be:
15 Jan,16 Feb,17 Aug...

Excuse me!

Should I change other variables NDEFAVG ,NTSDIA,NDIA...?

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

Re: How to save monthly data in average file?

#4 Unread post by kate »

There are models which know about the different months, but ROMS isn't one of them. You could add that feature with some effort. You could run for 31 days to average for January, then restart and run for x days for February.

Post Reply