def check_satpy(readers=None, writers=None, extras=None):
    """Check the satpy readers and writers for correct installation.

    Args:
        readers (list or None): Limit readers checked to those specified
        writers (list or None): Limit writers checked to those specified
        extras (list or None): Limit extras checked to those specified

    Returns: bool
        True if all specified features were successfully loaded.

    """
    from satpy.readers import configs_for_reader
    from satpy.writers import configs_for_writer

    print('Readers')
    print('=======')
    for reader, res in sorted(check_yaml_configs(configs_for_reader(reader=readers), 'reader').items()):
        print(reader + ': ', res)
    print()

    print('Writers')
    print('=======')
    for writer, res in sorted(check_yaml_configs(configs_for_writer(writer=writers), 'writer').items()):
        print(writer + ': ', res)
    print()

    print('Extras')
    print('======')
    module_names = extras if extras is not None else ('cartopy', 'geoviews')
    for module_name, res in sorted(_check_import(module_names).items()):
        print(module_name + ': ', res)
    print()
def check_satpy ( readers = None , writers = None , extras = None ) : from satpy . readers import configs_for_reader from satpy . writers import configs_for_writer print ( 'Readers' ) print ( '=======' ) for reader , res in sorted ( check_yaml_configs ( configs_for_reader ( reader = readers ) , 'reader' ) . items ( ) ) : print ( reader + ': ' , res ) print ( ) print ( 'Writers' ) print ( '=======' ) for writer , res in sorted ( check_yaml_configs ( configs_for_writer ( writer = writers ) , 'writer' ) . items ( ) ) : print ( writer + ': ' , res ) print ( ) print ( 'Extras' ) print ( '======' ) module_names = extras if extras is not None else ( 'cartopy' , 'geoviews' ) for module_name , res in sorted ( _check_import ( module_names ) . items ( ) ) : print ( module_name + ': ' , res ) print ( )
Check the satpy readers and writers for correct installation.

    Args:
        readers (list or None): Limit readers checked to those specified
        writers (list or None): Limit writers checked to those specified
        extras (list or None): Limit extras checked to those specified

    Returns: bool
        True if all specified features were successfully loaded.