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!
some of the standard output in netcdf
-
- Posts: 24
- Joined: Wed Sep 07, 2011 4:13 pm
- Location: GFZ Potsdam
Re: some of the standard output in netcdf
I agree, netcdf output for these variables would be nice! For the time being, here's a fix using awk and cdo:
For epot, replace "$4" with "$5", etc.
Who knows, someone might find it useful.
Code: Select all
awk '/0:00 / { print $4 }' output.out > ekin.txt
cdo -f nc input,r1x1 ekin.nc < ekin.txt
Who knows, someone might find it useful.