NOAA-GFDL / FRE-NCtools

Tools for manipulating and creating netCDF inputs for FMS managed models
GNU Lesser General Public License v3.0
17 stars 28 forks source link

The time_average program is broken for instantaneous output #307

Open uramirez8707 opened 1 month ago

uramirez8707 commented 1 month ago

Describe the bug When trying to use timavg.csh with instantaneous output it fails with

 NETCDF ERROR in program time_average

 error getting varid for time bounds

 NetCDF: Variable not found

To Reproduce From workstation, you can do

module load fre-nctools/2024.02
timavg.csh -m -o output.nc /ptmp/Olga.Sergienko/archive/Olga.Sergienko/fre/iOMGrAIS/iOM4GrAIS/gfdl.ncrc5-intel23-prod/history/20120101.nc/20120101.ice_shelf.nc

Expected behavior This should not fail

System Environment This happens in any system

Additional context https://helpdesk.gfdl.noaa.gov/otrs/index.pl?Action=AgentTicketZoom;TicketID=24934#283668

The 2023 version of frenctools works

ceblanton commented 5 days ago

This isn't a terribly bleeding problem (as it's a clear error and a workaround exists), but we still want to support timeaveraging instantaneous output for this user at least.

@uramirez8707 can you attempt a fix in the moderate-term future?