NCAR / ldcpy

Statistical and visual tools for gathering metrics and comparing Earth System Model data files. A common use case is comparing data that has been lossily compressed with the original data.
https://ldcpy.readthedocs.io/
Apache License 2.0
19 stars 2 forks source link

incorrect value in spatial rel error for CLOUD sample data #221

Closed allibco closed 3 years ago

allibco commented 3 years ago
col_cloud = ldcpy.open_datasets(
    ["CLOUD"],
    [
        "../../../cam-fv.CLOUD.3months.nc"],
    ["orig"],
    chunks={"time": 1},
)
c_data0 = col_cloud.isel(time=0)

ldcpy.compare_stats(c_data0, 'CLOUD', 'orig', 'orig')

we get spatial relative error(% > 0.0001) : 37.871 (it should be 0!)

allibco commented 3 years ago

OK, i fixed this but it is not checked in yet...