FIDUCEO / FCDR_HIRS

Other
1 stars 2 forks source link

u_common all zero #290

Closed gerritholl closed 5 years ago

gerritholl commented 5 years ago

All u_common common uncertainty are coming out as zero in the easy FCDR.

In [119]: ds = xarray.open_dataset("/group_workspaces/cems2/fiduceo/Data/FCDR/HIRS/v0.8pre/easy/noaa19/2012/08/31/FIDUCEO_FCDR_L1C_HIRS4_noaa19_20120831084058
     ...: _20120831102257_easy_v0.8pre_fv0.7.nc")

In [120]: ds["u_common"].max()
Out[120]:
<xarray.DataArray 'u_common' ()>
array(0.)
gerritholl commented 5 years ago

Looking at the underlying radiances in the debug FCDR, it appears the uncertainty is 4 orders of magnitude smaller than for independent or structured, so brightness temperature uncertainties get 'rounded' to zero due to storage digitisation. The above was based on a test run based on the old harmonisation run from April 2018, which was wrong. It may be that this problem gets resolved when using the output of the improved harmonisation run from October 2018.

Out[133]:
<xarray.DataArray 'u_R_Earth_random' ()>
array(1.319945e-15)
Coordinates:
    calibrated_channel  float32 8.0

In [134]: dsd["u_R_Earth_nonrandom"].sel(calibrated_channel=8).median()
Out[134]:
<xarray.DataArray 'u_R_Earth_nonrandom' ()>
array(5.89319e-15)
Coordinates:
    calibrated_channel  float32 8.0

In [135]: dsd["u_R_Earth_harm"].sel(calibrated_channel=8).median()
Out[135]:
<xarray.DataArray 'u_R_Earth_harm' ()>
array(1.55e-19)
Coordinates:
    calibrated_channel  float32 8.0
gerritholl commented 5 years ago

I seem to be misinterpreting the harmonisation parameters. See commit 24d27d18246faaf1e638c92d32b753309a5ee090 where they were all set to very small values, effectively zero. May need to check with @octoflar on whether something has changed or whether I'm doing something wrong.