Skip to content

Question: How to extract two different values for pressure #51

@blaylockbk

Description

@blaylockbk

This is a pdbufr (v0.10.2) usage question. Please excuse my novice knowledge of BUFR data; I'm just learning about this data type.

I'm reading a BUFR file that has two values for "pressure" for each observation; the two values are the top and bottom pressure level used to describe one observation.

The command bufr_dump -d <bufr_file.bufr> produces this output showing there are two different pressure levels:

...(more above)

031001  delayedDescriptorReplicationFactor      DELAYED DESCRIPTOR REPLICATION FACTOR [Numeric]
007004  pressure        PRESSURE [Pa]
007004  pressure        PRESSURE [Pa]
103000  103000  103000 [103000]
031001  delayedDescriptorReplicationFactor      DELAYED DESCRIPTOR REPLICATION FACTOR [Numeric]
008023  firstOrderStatistics    FIRST-ORDER STATISTICS [CODE TABLE]
011003  u       U-COMPONENT [m/s]
011004  v       V-COMPONENT [m/s]

...(more below)

But when I read the file with pdbufr, only one value for pressure is returned.

pdbufr.read_bufr(
    FILE,
    columns=["latitude", "longitude", "pressure", "u", "v"],
)

image

Is there a way to target a specific pressure value (first or second) or return both?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions