add latitude and longitude info into the diag file

Questions about modifying the MPAS-Atmosphere code, and general discussion of MPAS code structure and development
Post Reply
bruceyoung01
Posts: 56
Joined: Mon Sep 10, 2018 6:06 pm

add latitude and longitude info into the diag file

Post by bruceyoung01 » Wed Oct 30, 2019 10:56 pm

I found there is no latitude and longitude information in the diag file. It's better to add this info into diag file. At least, it's more convenient to use it. Otherwise, we need to use both history file and diag file together. Thank you.

mgduda
Posts: 458
Joined: Mon Feb 26, 2018 7:35 pm

Re: add latitude and longitude info into the diag file

Post by mgduda » Wed Oct 30, 2019 11:13 pm

You can have MPAS-Atmosphere write the latCell and lonCell fields to your diagnostics files by simply adding these two lines to the stream_list.atmosphere.diagnostics file:

Code: Select all

latCell
lonCell
If you'd like to have these fields included by default, you can add them to the definition of the default diagnostics stream in the src/core_atmosphere/Registry.xml file. We haven't included these by default to save space.
NCAR/MMM

bruceyoung01
Posts: 56
Joined: Mon Sep 10, 2018 6:06 pm

Re: add latitude and longitude info into the diag file

Post by bruceyoung01 » Thu Oct 31, 2019 12:14 am

This is much easier. Thank you for letting me know this.

Post Reply

Return to “Code development”