Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

Choose Vars in diag* files

Monica

New member
Hi all,

Just MPAS-Atmosphere Model User’s Guide told me that we can choose fields we like that will be written to the stream, like:

<stream name="output"
type="output"
io_type="pnetcdf,cdf5"
precision="single"
filename_template="../V15km_GF/history.$Y-$M-$D_$h.$m.$s.nc"
output_interval="6:00:00" >
<var name="u10"/>
<var name="v10"/>
</stream>

When I output all variables, all programs run smoothly, but the file is too large. When I select some variable I like output, an error occurs:

WARNING: Requested field t2m already in stream output
WARNING: Requested field q2 already in stream output
WARNING: Requested field u10 already in stream output
WARNING: Requested field v10 already in stream output
WARNING: Requested field precipw already in stream output
WARNING: Requested field rainnc already in stream output
WARNING: Requested field rainc already in stream output
ERROR: Requested field not available

Could anyone help me ? Thank you very much!
I have attached 'streams.atmosphere.txt' & 'log.atmosphere.0000.out.txt'
 

Attachments

  • streams.atmosphere.txt
    2.7 KB · Views: 3
  • log.atmosphere.0000.out.txt
    4.6 KB · Views: 0
The default "output", "diagnostics", and "surface" streams include a <file name="..."/> tag that includes in those streams every field listed in the named file. Taking the default "diagnostics" stream as an example,
XML:
<stream name="diagnostics"
        type="output"
        filename_template="diag.$Y-$M-$D_$h.$m.$s.nc"
        output_interval="3:00:00" >

        <file name="stream_list.atmosphere.diagnostics"/>
</stream>
all fields listed in the stream_list.atmosphere.diagnostics file will be written to the stream.

In your streams.atmosphere file, it looks like the <file name="..."/> tag is still present, in addition to fields that you have included in the stream with <var name="..."/> tags. Just deleting the <file name="..."/> tags from the "diagnostics" and "output" streams should be all that's needed in your case; alternatively, you can just edit the list of fields in, e.g., the stream_list.atmosphere.diagnostics file rather than adding fields to the streams.atmosphere file.
 
Top