Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly close any NetCDFs that are opened #67

Open
camrinbraun opened this issue Feb 27, 2022 · 0 comments
Open

Explicitly close any NetCDFs that are opened #67

camrinbraun opened this issue Feb 27, 2022 · 0 comments
Assignees

Comments

@camrinbraun
Copy link
Owner

From Dr. Itoh:

In functions like calc.sst (or calc.sst.par, calc.hycom) which open “nc” data, it is better to close them by RNetCDF::close.nc(nc) for example below the “dat <- RNetCDF::var.get.nc(nc, nameidx)”. Once the nc file was still open when the program stopped with an error, R crashed when I ran the program again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant