Skipping NaNs in ct.chart.line plot

Hi! I have made the following plot in the workflow: https://sis-dev.climate.copernicus.eu/toolbox-editor/1474/uc4-monthly-mean-humidity-and-anomalies

Data from the year 2012 is missing, as a result there are NaNs in the time series. For now, I have used ct.math.nan_to_num() to set the NaNs to 0.0.

Is it possible to ignore the NaNs and not plot those?


Thanks,

Huayuan

Hi Huayuan,

To avoid seeing the empty period on the plot I would plot to 2007 to 2011 and then from 2013 to 2017 so that nothing is plotted for the year 2012.

Does that make sense?

Regards.

Vivien

Makes sense, thank you Vivien!