some of the standard output in netcdf

Propose new capabilities for ROMS algorithms

Moderators: arango, robertson

Post Reply
Message
Author
rduran
Posts: 152
Joined: Fri Jan 08, 2010 7:22 pm
Location: Theiss Research

some of the standard output in netcdf

#1 Unread post by rduran »

I think that this might be a relatively easy and quite useful feature:

There are several good reasons why one would want to plot time series of kinetic or potential energy, volume, or maximum velocities ... all that info is available in the out file but it is not straightforward to put it into vectors to plot. If the same info was written in a netcdf file (including a time vector) then it should be straightforward to plot and carry the info in a small valuable netcdf file. Units would be readily available too!

julian.kuhlmann
Posts: 24
Joined: Wed Sep 07, 2011 4:13 pm
Location: GFZ Potsdam

Re: some of the standard output in netcdf

#2 Unread post by julian.kuhlmann »

I agree, netcdf output for these variables would be nice! For the time being, here's a fix using awk and cdo:

Code: Select all

awk '/0:00  / { print $4 }' output.out > ekin.txt
cdo -f nc input,r1x1 ekin.nc < ekin.txt
For epot, replace "$4" with "$5", etc.

Who knows, someone might find it useful.

Post Reply