gedidb.L2BBeam#

class gedidb.L2BBeam(granule: granule_handler, beam: str, field_mapping: Dict[str, Dict[str, str]])[source]#

Represents a Level 2B (L2B) GEDI beam and processes the beam data. This class extracts geolocation, time, and elevation data, applies quality filters, and returns the filtered beam data as a dictionary.

__init__(granule: granule_handler, beam: str, field_mapping: Dict[str, Dict[str, str]])[source]#

Initialize the L2BBeam class.

Parameters:
  • granule (Granule) – The parent granule object.

  • beam (str) – The beam name within the granule.

  • field_mapping (Dict[str, Dict[str, str]]) – A dictionary mapping fields to SDS names.

Methods

__init__(granule, beam, field_mapping)

Initialize the L2BBeam class.

apply_filter(data[, filters])

Apply a set of filters to the beam data.

build_virtual_dataset(name, shape, dtype[, ...])

Assemble a virtual dataset in this group.

clear()

copy(source, dest[, name, shallow, ...])

Copy an object or group.

create_dataset(name[, shape, dtype, data])

Create a new HDF5 dataset

create_dataset_like(name, other, **kwupdate)

Create a dataset similar to other.

create_group(name[, track_order])

Create and return a new subgroup.

create_virtual_dataset(name, layout[, fillvalue])

Create a new virtual dataset in this group.

get(name[, default, getclass, getlink])

Retrieve an item or other information.

items()

Get a view object on member items

keys()

Get a view object on member names

move(source, dest)

Move a link to a new location in the file.

pop(k[,d])

If key is not found, d is returned if given, otherwise KeyError is raised.

popitem()

as a 2-tuple; but raise KeyError if D is empty.

require_dataset(name, shape, dtype[, exact])

Open a dataset, creating it if it doesn't exist.

require_group(name)

Return a group, creating it if it doesn't exist.

setdefault(k[,d])

update([E, ]**F)

If E present and has a .keys() method, does: for k in E.keys(): D[k] = E[k] If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v In either case, this is followed by: for k, v in F.items(): D[k] = v

values()

Get a view object on member objects

visit(func)

Recursively visit all names in this group and subgroups.

visit_links(func)

Recursively visit all names in this group and subgroups.

visititems(func)

Recursively visit names and objects in this group.

visititems_links(func)

Recursively visit links in this group.

Attributes

attrs

Attributes attached to this object

beam_type

Get the beam type (e.g., 'full', 'coverage') based on the beam description attribute.

field_mapper

Return the field mapping dictionary for the beam.

file

Return a File instance associated with this object

id

Low-level identifier appropriate for this object

main_data

Retrieve the main data for the beam from the granule file.

n_shots

Get the number of shots in the beam.

name

Return the full name of this object.

parent

Return the parent group of this object.

ref

An (opaque) HDF5 reference to this object

regionref

Create a region reference (Datasets only).