NISAR L2 GUNW (P05023): mask layer appears to have passed through float32 (odd codes lost)

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
ASF - bhauer
User Services
User Services
Posts: 83
Joined: Thu Dec 12, 2024 5:54 pm America/New_York
Answers: 0

NISAR L2 GUNW (P05023): mask layer appears to have passed through float32 (odd codes lost)

by ASF - bhauer » Mon Nov 30, 2026 7:29 pm America/New_York

This was received as an email and transcribed to a Forum post:

I am a PhD researcher at King Abdulaziz University (Jeddah) evaluating the ionospheric phase screen of the NISAR L2 GUNW product (CRID P05023) over six low-latitude sites. While processing 445 full-frame GUNW granules (November 2025 – October 2026), I found two things in the validity mask that I would like to report and ask about.

1. Possible float32 encoding defect
The mask is stored as an unsigned 32-bit integer layer, with the reference/secondary subswath code in the low byte and a flag in bit 24. For every pixel that has bit 24 set, the low byte is never odd: in all 445 granules, not a single mask value at or above 2^24 is an odd number. The decoded codes that should read 11, 21, 31 and 41 appear as 12, 20, 32 and 40. This is exactly what happens if the values were held as 32-bit floats (24-bit significand) at some stage, since such floats cannot represent odd integers above 2^24 and round them to the nearest even value.


The practical effect is that a valid pixel whose secondary subswath is 1 decodes as "secondary invalid". In one frame, about 2 million valid pixels would be discarded by a user who follows the documented decoding.

A quick check on any granule:
m = <mask array as uint32>
big = m[m >= 2**24]
print((big % 2 == 1).sum()) # returns 0 in every granule we checked


Example granule: NISAR_L2_PR_GUNW_032_093_D_075_033_2000_SH_20261006T155333_20261006T155408_20261018T155333_20261018T155408_P05023_N_F_J_001

2. Meaning of bit 24
The documentation describes bit 24 as "masked out and filled". However, in our data the pixels with bit 24 set carry valid unwrapped phase and screen values, and pairs in which no pixel carries bit 24 have ionospheric screens that look like pure noise. Could you confirm whether bit 24 means that the pixel was masked out, or that it was kept?


Our current workaround is to decide validity for bit-24 pixels from the zero-fill test of the unwrapped phase rather than from the subswath digits. We would be glad to know whether this is correct, and whether a fix is planned for a later release. We intend to describe both points in a manuscript, and we would like to represent the product correctly.

Thank you for your help, and for making these data openly available.

Filters:

Post Reply