def __init__(self, granule, dataset):
        """Prepare data paths depending on if ZIP or not."""
        self.dataset = dataset
        if self.dataset.is_zip:
            granules_path = os.path.join(self.dataset._zip_root, "GRANULE")
        else:
            granules_path = os.path.join(dataset.path, "GRANULE")
        self.granule_identifier = granule.attrib["granuleIdentifier"]
        self.granule_path = os.path.join(
            granules_path, self.granule_identifier)
        self.datastrip_identifier = granule.attrib["datastripIdentifier"]
def __init__ ( self , granule , dataset ) : self . dataset = dataset if self . dataset . is_zip : granules_path = os . path . join ( self . dataset . _zip_root , "GRANULE" ) else : granules_path = os . path . join ( dataset . path , "GRANULE" ) self . granule_identifier = granule . attrib [ "granuleIdentifier" ] self . granule_path = os . path . join ( granules_path , self . granule_identifier ) self . datastrip_identifier = granule . attrib [ "datastripIdentifier" ]
Prepare data paths depending on if ZIP or not.