Wapor v2 level 3 NPP data not available when processing a date range

Issue #48 wontfix
Alan Salinas created an issue

While working with the latest version of pywapor (3.6.0) we tried to process the following bounding box and dates:

import pywapor

project_folder = "laposta_wapor2_level3"
bb = [-99.103, 23.93, -99.09, 23.94] # [xmin, ymin, xmax, ymax]
period = ["2024-06-15", "2024-07-30"]

# Set up a project.
project = pywapor.Project(project_folder, bb, period)

# Load a configuration.
project.load_configuration(name = "WaPOR2_level_3")

# Set up required accounts.
project.set_passwords()

# Download the input data.
datasets = project.download_data()

se_root_in = project.run_pre_se_root()
se_root = project.run_se_root()

et_look_in = project.run_pre_et_look()
et_look = project.run_et_look()

And everything runs fine, however when examining the output raster for NPP we see the following:

Only a span of the full date range contains NPP values, we are unsure if this is a bug, or not.

Comments (1)

  1. bert.coerver

    Hi Alan,

    It doenst look like a bug to me. Gaps (e.g. due to cloud cover) can be filled in two ways in pywapor. Firstly by spatially filling them (up to a maximum distance) using gdal_fillnodata. Secondly by interpolating data. Since your domain is very small, spatial gapfilling will be difficult and if no values are near the edges of your chosen period, then interpolating is not possible (pywapor doesn't to extrapolate).

    So you could check which of your inputs are missing, then maybe consider extending your period.

    Regards, Bert

  2. Log in to comment