erlang: use resources
netcdf: use resources