Fields flagged for output not appearing in history file

Report or discuss software problems and other woes

Moderators: arango, robertson

Post Reply
Message
Author
itswx
Posts: 8
Joined: Wed Sep 03, 2025 10:03 pm
Location: Weather Routing, Inc.

Fields flagged for output not appearing in history file

#1 Post by itswx »

Hey everyone, I wanted to output the east/north current components to the history file, but despite flagging them with a T they do not appear in the output netcdf file:

Code: Select all

! Logical switches (TRUE/FALSE) to activate writing of fields into
! HISTORY output file.

Hout(idangR) == T       ! angle              angle between XI axis and east

Hout(idUvel) == T       ! u                  3D U-velocity
Hout(idVvel) == T       ! v                  3D V-velocity
Hout(idu3dE) == T       ! u_eastward         3D U-eastward  at RHO-points
Hout(idv3dN) == T       ! v_northward        3D V-northward at RHO-points
Hout(idWvel) == T       ! w                  3D W-velocity
Am I doing something foolish?

jcwarner
Posts: 1229
Joined: Wed Dec 31, 2003 6:16 pm
Location: USGS, USA

Re: Fields flagged for output not appearing in history file

#2 Post by jcwarner »

that should work.
do you get other fields in the his file?

itswx
Posts: 8
Joined: Wed Sep 03, 2025 10:03 pm
Location: Weather Routing, Inc.

Re: Fields flagged for output not appearing in history file

#3 Post by itswx »

Yep, u, v and others are outputted just fine. here is the full list of fields flagged T, with a !!!! after the missing ones:

Code: Select all

Hout(idangR) == T       ! angle              angle between XI axis and east			!!!!

Hout(idUvel) == T       ! u                  3D U-velocity
Hout(idVvel) == T       ! v                  3D V-velocity
Hout(idu3dE) == T       ! u_eastward         3D U-eastward  at RHO-points			!!!!
Hout(idv3dN) == T       ! v_northward        3D V-northward at RHO-point			!!!!
Hout(idWvel) == T       ! w                  3D W-velocity
Hout(idOvel) == T       ! omega              omega vertical velocity			
Hout(idUbar) == T       ! ubar               2D U-velocity
Hout(idVbar) == T       ! vbar               2D V-velocity
Hout(idu2dE) == T       ! ubar_eastward      2D U-eastward  at RHO-points			!!!!
Hout(idv2dN) == T       ! vbar_northward     2D V-northward at RHO-points			!!!!
Hout(idFsur) == T       ! zeta               free-surface

Hout(idTzph) == T       ! tide_Ephase        tidal elevation phase angle				!!!!

Hout(idTvar) == T T     ! temp, salt         temperature and salinity

Hout(idUsms) == T       ! sustr              surface U-stress
Hout(idVsms) == T       ! svstr              surface V-stress

Hout(idMtke) == T       ! tke                turbulent kinetic energy
Hout(idMtls) == T       ! gls                turbulent length scale

jcwarner
Posts: 1229
Joined: Wed Dec 31, 2003 6:16 pm
Location: USGS, USA

Re: Fields flagged for output not appearing in history file

#4 Post by jcwarner »

idangR is only written out if you have #ifdef CURVGRID (see def_info.F).

idu3dE and idv3dN are only written out for # ifdef ADJUST_BOUNDARY
idu2dE and idv2dN are only written out for # ifdef ADJUST_BOUNDARY
??

idTzph does not seem to be available for write out.

itswx
Posts: 8
Joined: Wed Sep 03, 2025 10:03 pm
Location: Weather Routing, Inc.

Re: Fields flagged for output not appearing in history file

#5 Post by itswx »

jcwarner wrote: Fri Apr 17, 2026 3:17 pm idangR is only written out if you have #ifdef CURVGRID (see def_info.F).

idu3dE and idv3dN are only written out for # ifdef ADJUST_BOUNDARY
idu2dE and idv2dN are only written out for # ifdef ADJUST_BOUNDARY
??

idTzph does not seem to be available for write out.
Thanks for your help! I was a little surprised to see that I had not defined CURVGRID :lol:

Post Reply