Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correction of dsr and usr filters out daily transmission #243

Open
BaptisteVandecrux opened this issue May 14, 2024 · 0 comments
Open

Correction of dsr and usr filters out daily transmission #243

BaptisteVandecrux opened this issue May 14, 2024 · 0 comments

Comments

@BaptisteVandecrux
Copy link
Member

There's a range check on dsr and usr that removes "invalid" data:

# Remove data where TOA shortwave radiation invalid
isr_toa = calcTOA(ZenithAngle_deg, ZenithAngle_rad) # Calculate TOA shortwave radiation
TOA_crit_nopass = (ds['dsr_cor'] > (0.9 * isr_toa + 10)) # Determine filter
ds['dsr_cor'][TOA_crit_nopass] = np.nan # Apply filter and interpolate
ds['usr_cor'][TOA_crit_nopass] = np.nan

The problem is that for stations that:

  • had a problem with their loggers and therefore only transmissions are available
  • start to have sunlight before the logger program switches to hourly transmission
    then we have daily average shortwave radiation instead of hourly values.

These daily values are lower than the hourly values and are removed from dsr_cor an usr_cor.

This range-check should therefore be done only on hourly values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant