Hey Kato,
Some dates indeed have no data. For TERRASCOPE_S2_TOC_V2, clouds are masked away, and sometimes the extent could be right on the edge of an satellite image.
For 2024-07-01 for example, you can see that some parcels have no pixel data:
To debug it, it is possible to put a try-except around the root of the error, and add some extra information to it. For example:
def apply_udf_data(data: UdfData):
## DATA ##
# Load data
ts_dict = data.get_structured_data_list()[0].data
try:
# All udf content..
except Exception as e:
raise Exception(f"data: {ts_dict} Error in UDF: {e}")
example output showing date with full data and date without
...
"2024-07-21T00:00:00Z": [
[0.8570518051253425],
[0.6750948457633819],
[0.448033818602562],
[0.4843438924413866],
[0.5221023321151733],
[0.4247104223874899],
[0.7748762883061655],
[0.3261186053522494],
[0.3745484292507172],
[0.3898260928180119],
[0.6785347053879186],
[0.6013477584719658],
[0.6835786989591655],
[0.671942118096025],
[0.7652009990480211],
[0.7984053597510236],
[0.812631408231599],
[0.7812918780230674],
[0.7503446271643043],
[0.6487146471179811],
[0.4645040519535541],
[0.4679112182678403],
[0.5753125915569919],
[0.7401473565253219],
[0.5436416496621802],
[0.7716637833913167],
[0.6086455756879371],
[0.4922040828988572],
[0.632121983456285],
[0.6265893798321486],
[0.5093726385079447],
[0.4625303537949272],
[0.7344460727332475],
[0.686734888653398],
[0.6822119863136955],
[0.6550523322395962],
[0.6488686796798501],
[0.5015533617858229],
[0.3824223267360472],
[0.8114082086831331],
[0.3861597855124742],
[0.5325922912784985],
[0.8319205016317502],
[0.5145040865127857],
[0.4465995261418646],
[0.3304970000938671],
[0.3858031509004437],
[0.3183579211754183],
[0.8354987859725952],
[0.7430333115082585],
[0.7569319856794257],
[0.5214956813993362],
[0.7124942578767476],
[0.2654576441530364],
[0.2521615133646431],
[0.2847584302796692],
[0.283719279180617],
[0.5317853645517908],
[0.4937739551807782],
[0.4785858993568728],
[0.5271638310736134],
[0.5725147386173626],
[0.2989589810961544],
[0.3201076213556986],
[0.3895329804915302],
[0.3594205772876739],
[0.5677102953195572],
[0.5464025835196177],
[0.3475884056091308],
[0.3116959840560159],
],
"2024-07-01T00:00:00Z": [
[0.5823072632153828],
[0.1699785963664163],
[0.184436729333053],
[0.2172549554204519],
[0.2047472642080204],
[0.1677890313704582],
["NaN"],
[0.6128483965541377],
["NaN"],
[0.4472256359988696],
[0.3669533133506775],
[0.3288891437649727],
[0.6153470992463307],
["NaN"],
["NaN"],
["NaN"],
[0.6758419781923294],
["NaN"],
["NaN"],
["NaN"],
[0.2571837585419416],
[0.246400433013568],
[0.4538096615246364],
["NaN"],
["NaN"],
[0.636947397674833],
[0.4769561469554901],
[0.2432188093662262],
[0.2592999690199551],
[0.5305595848709345],
[0.8136955518192716],
["NaN"],
["NaN"],
[0.6019838022631269],
["NaN"],
[0.2100491670587349],
[0.3082389459815076],
["NaN"],
["NaN"],
[0.7018024623394012],
[0.5673989646377102],
[0.269725786788123],
[0.6898954724761802],
["NaN"],
["NaN"],
["NaN"],
["NaN"],
["NaN"],
[0.8185631275177002],
[0.3823173540888481],
["NaN"],
["NaN"],
["NaN"],
[0.2989414166659117],
["NaN"],
["NaN"],
["NaN"],
[0.6745566910710828],
["NaN"],
["NaN"],
[0.2156848811677524],
["NaN"],
[0.7146707514921824],
["NaN"],
["NaN"],
["NaN"],
["NaN"],
["NaN"],
[0.4450587159395218],
[0.4101725849283843],
],
...
