This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Matt, > Thanks, but the problem is that I am using the default NcError. > verbose_fatal, Now with that set to something else like nonfatal it works > > void main() { > > NcError::Behavior bb= (NcError::Behavior) 0; > NcError nce(bb ); > NcFile *ncf =new NcFile("density.nc",NcFile::ReadOnly); > ncf->get_var("TisdfmeCents"); > printf("asdf\n"); > } Oops, I forgot about that. We'll consider changing the default of NcError to be silent_nonfatal or verbose_nonfatal. Thanks for the feedback! --Russ