def METHOD_NAME(self):
    with netcdf_file(self.filename, mode="w") as ncdf:
        self._write_settings(ncdf)
        self._create_dimensions(ncdf)
        self._create_variables(ncdf)
        self._write_variables()