class_docstr: File handler for NUCAPS netCDF4 format.
class_docstr_tok: ["File","handler","for","NUCAPS","netCDF4","format","."]
docstr: Return data array shape for item specified.
docstr_tok: ["Return","data","array","shape","for","item","specified","."]
code: def get_shape(self, ds_id, ds_info):
      """Return data array shape for item specified."""
      var_path = ds_info.get("file_key", "{}".format(ds_id["name"]))
      if var_path + "/shape" not in self:
          # loading a scalar value
          shape = 1
      else:
          shape = self[var_path + "/shape"]
          if "index" in ds_info:
              shape = shape[1:]
          if "pressure_index" in ds_info:
              shape = shape[:-1]
      return shape
  
imports: import logging
  from collections import defaultdict
  import numpy
  import pandas
  import xarray
  from satpy.readers.netcdf_utils import NetCDF4FileHandler
  from satpy.readers.yaml_reader import FileYAMLReader
label_desc: Use image node_id 10 for calling the NUCAPSFileHandler obj's underlying member method code with example usage: obj.get_shape(ds_id, ds_info) and returns: shape