class_docstr: File handler for Ocean Color CCI netCDF files.
class_docstr_tok: ["File","handler","for","Ocean","Color","CCI","netCDF","files","."]
docstr: Get the area definition based on information in file.
  
  There is no area definition in the file itself, so we have to compute it
  from the metadata, which specifies the area extent and pixel resolution.
docstr_tok: ["Get","the","area","definition","based","on","information","in","file",".","There","is","no","area","definition","in","the","file","itself",",","so","we","have","to","compute","it","from","the","metadata",",","which","specifies","the","area","extent","and","pixel","resolution","."]
code: def get_area_def(self, dsid):
      """Get the area definition based on information in file.
  
      There is no area definition in the file itself, so we have to compute it
      from the metadata, which specifies the area extent and pixel resolution.
      """
      proj_param = "EPSG:4326"
  
      lon_res = float(self["/attr/geospatial_lon_resolution"])
      lat_res = float(self["/attr/geospatial_lat_resolution"])
  
      min_lon = self["/attr/geospatial_lon_min"]
      max_lon = self["/attr/geospatial_lon_max"]
      min_lat = self["/attr/geospatial_lat_min"]
      max_lat = self["/attr/geospatial_lat_max"]
  
      area_extent = (min_lon, min_lat, max_lon, max_lat)
      lon_size = np.round((max_lon - min_lon) / lon_res).astype(int)
      lat_size = np.round((max_lat - min_lat) / lat_res).astype(int)
  
      area = geometry.AreaDefinition(
          "gridded_occci",
          "Full globe gridded area",
          "longlat",
          proj_param,
          lon_size,
          lat_size,
          area_extent,
      )
      return area
  
file_path: satpy/satpy/readers/oceancolorcci_l3_nc.py
imports: import logging
  from datetime import datetime
  import dask.array
  import numpy
  from pyresample import geometry
  from satpy.readers.netcdf_utils import NetCDF4FileHandler
label_desc: Use image node_id 7 for calling the OCCCIFileHandler obj's underlying member method code with example usage: obj.get_area_def(dsid) and returns: area