class_docstr: File handler for GHRSST L2 netCDF files.
class_docstr_tok: ["File","handler","for","GHRSST","L2","netCDF","files","."]
docstr: Get the xarray Dataset for the filename.
docstr_tok: ["Get","the","xarray","Dataset","for","the","filename","."]
code: def nc(self):
      """Get the xarray Dataset for the filename."""
      if os.fspath(self.filename).endswith("tar"):
          file_obj = self._open_tarfile()
      else:
          file_obj = self.filename
  
      nc = xr.open_dataset(
          file_obj,
          decode_cf=True,
          mask_and_scale=True,
          engine=self._engine,
          chunks={"ni": CHUNK_SIZE, "nj": CHUNK_SIZE},
      )
  
      return nc.rename({"ni": "x", "nj": "y"})
  
file_path: satpy/satpy/readers/ghrsst_l2.py
imports: import os
  import tarfile
  from contextlib import suppress
  from datetime import datetime
  from functools import cached_property
  import xarray
  from satpy.readers.file_handlers import BaseFileHandler
  from satpy.utils import get_legacy_chunk_size
label_desc: Use image node_id 2 for calling the GHRSSTL2FileHandler obj's underlying member method code with example usage: obj.nc() and returns: nc