viz_utils/eoa_viz.py
def xr_summary(self, ds):
        """ Prints a summary of the netcdf (global attributes, variables, etc)
        :param ds:
        :return:
        """
        print("\n========== Global attributes =========")
        for name in ds.attrs:
            print(F"{name} = {getattr(ds, name)}")

        print("\n========== Dimensions =========")
        for name in ds.dims:
            print(F"{name}: {ds[name].shape}")

        print("\n========== Coordinates =========")
        for name in ds.coords:
            print(F"{name}: {ds[name].shape}")

        print("\n========== Variables =========")
        for cur_variable_name in ds.variables:
            cur_var = ds[cur_variable_name]
            print(F"{cur_variable_name}: {cur_var.dims} {cur_var.shape}")
 Prints a summary of the netcdf (global attributes, variables, etc)
        :param ds:
        :return:
        
Prints a summary of the netcdf (global attributes, variables, etc)
Prints a summary of the netcdf ( global attributes variables etc )
def xr_summary(self, ds):
        print("\n========== Global attributes =========")
        for name in ds.attrs:
            print(F"{name} = {getattr(ds, name)}")
        print("\n========== Dimensions =========")
        for name in ds.dims:
            print(F"{name}: {ds[name].shape}")
        print("\n========== Coordinates =========")
        for name in ds.coords:
            print(F"{name}: {ds[name].shape}")
        print("\n========== Variables =========")
        for cur_variable_name in ds.variables:
            cur_var = ds[cur_variable_name]
            print(F"{cur_variable_name}: {cur_var.dims} {cur_var.shape}")
def xr_summary ( self , ds ) : print ( "\n========== Global attributes =========" ) for name in ds . attrs : print ( F"{name} = {getattr(ds, name)}" ) print ( "\n========== Dimensions =========" ) for name in ds . dims : print ( F"{name}: {ds[name].shape}" ) print ( "\n========== Coordinates =========" ) for name in ds . coords : print ( F"{name}: {ds[name].shape}" ) print ( "\n========== Variables =========" ) for cur_variable_name in ds . variables : cur_var = ds [ cur_variable_name ] print ( F"{cur_variable_name}: {cur_var.dims} {cur_var.shape}" )
Prints a summary of the netcdf (global attributes, variables, etc)
Prints a summary of the netcdf ( global attributes variables etc )
""" Prints a summary of the netcdf (global attributes, variables, etc)
        :param ds:
        :return:
        """
None
self
ds
None