EQUATES Memory Leak Issue

Hi, I encountered a problem trying to use EQUATES for the continental US run. I would like to link the discussion from another topic to help EQUATES users solve the netcdf4 memory leak issue in the EQUATES category. The issue is related to using a large number of netcdf4 files during simulation. One simple solution is to convert EQUATES netcdf4 files to netcdf3-classic files using nccopy. I have written a short C-shell script and attached it below.

#!/bin/csh -f
foreach file (*.nc4) 
	set BN=`basename $file .nc4`
	nccopy -k classic $file $BN.nc
	echo 'Conversion complete for' $file
end
4 Likes

Thank you for sharing this solution. It is my understanding that this requires using the libraries built for nc4 compression to do this conversion, but once the files are converted you can use the netcdf classic libraries to run CMAQ.