stcorp / harp

Data harmonization toolset for scientific earth observation data
http://stcorp.github.io/harp/doc/html/index.html
BSD 3-Clause "New" or "Revised" License
55 stars 18 forks source link

Nan values in HARP #284

Closed makr-a closed 1 year ago

makr-a commented 1 year ago

Hello everyone, Pascal Hedelt sent me the Link to your Github. I am working with TROPOMI COBRA Data and trying to compare them to model Data. That's why while regridding the data and plotting them, I got some inconsistencies in the box and I think it is because of Nan values. How doese HARP deal with those values and what does he do when he finds Nan values in a Gricell.

Thank you in advance, Ismail Makroum

svniemeijer commented 1 year ago

Hi Ismail, This is actually a better question to ask on the forum. If you have NaN value in the regridding then the result will also be NaN. So you need to make sure that you filter out all NaN values before performing the regridding (e.g. valid(<variable_name>)).

makr-a commented 1 year ago

Hello Sander, ja I do that. But what happens then if I make QA_Flag>0.5? How is he handling that in the regridding?

Thank you in advance. Ismail

Von: Sander Niemeijer @.> Gesendet: Donnerstag, 16. Februar 2023 10:52 An: stcorp/harp @.> Cc: Makroum, Ismail @.>; Author @.> Betreff: Re: [stcorp/harp] Nan values in HARP (Issue #284)

Hi Ismail, This is actually a better question to ask on the forumhttps://forum.atmospherictoolbox.org. If you have NaN value in the regridding then the result will also be NaN. So you need to make sure that you filter out all NaN values before performing the regridding (e.g. valid()).

— Reply to this email directly, view it on GitHubhttps://github.com/stcorp/harp/issues/284#issuecomment-1432810944, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATJTBOF3VG337WELW5I4L3LWXX2DTANCNFSM6AAAAAAU55K4FI. You are receiving this because you authored the thread.Message ID: @.**@.>>