@details This subroutine checks the status of a netCDF command and prints an error message if necessary.
netCDF command status