class_docstr: Test the NcNWCSAF reader for Geo products.
class_docstr_tok: ["Test","the","NcNWCSAF","reader","for","Geo","products","."]
docstr: Test that orbital parameters are present in the dataset attributes.
docstr_tok: ["Test","that","orbital","parameters","are","present","in","the","dataset","attributes","."]
code: def test_orbital_parameters_are_correct(
      self, nwcsaf_geo_ct_filehandler
  ):
      """Test that orbital parameters are present in the dataset attributes."""
      dsid = {"name": "ct"}
      var = nwcsaf_geo_ct_filehandler.get_dataset(dsid, {})
      assert "orbital_parameters" in var.attrs
      for param in var.attrs["orbital_parameters"]:
          assert isinstance(
              var.attrs["orbital_parameters"][param], (float, int)
          )
  
      assert (
          var.attrs["orbital_parameters"]["satellite_nominal_altitude"]
          == NOMINAL_ALTITUDE
      )
      assert (
          var.attrs["orbital_parameters"]["satellite_nominal_longitude"]
          == NOMINAL_LONGITUDE
      )
      assert (
          var.attrs["orbital_parameters"]["satellite_nominal_latitude"]
          == 0
      )
  
imports: import h5netcdf
  import numpy
  import pytest
  import xarray
  from satpy.readers.nwcsaf_nc import NcNWCSAF, read_nwcsaf_time
label_desc: Use image node_id 8 for calling the TestNcNWCSAFGeo obj's underlying member method code with example usage: obj.test_orbital_parameters_are_correct(nwcsaf_geo_ct_filehandler) without return types