diff --git a/sen2chain/indices_functions.py b/sen2chain/indices_functions.py
index d59fe8539253e0e23a7c203d4fbbe26b6cc18a26..d449005eb178ffe5868cb9fc1141b81e894d470a 100644
--- a/sen2chain/indices_functions.py
+++ b/sen2chain/indices_functions.py
@@ -159,6 +159,8 @@ def index_tiff_2_jp2(img_path: Union[str, pathlib.PosixPath],
     logger.info("converting raw indice to JPEG2000")
     src_ds = gdal.Open(str(img_path))
     driver = gdal.GetDriverByName("JP2OpenJPEG")
+    for i in range(src_ds.RasterCount):
+            src_ds.GetRasterBand(i+1).SetNoDataValue(float(16383))
     dst_ds = driver.CreateCopy(str(out_path), src_ds, options=['NBITS=15', 'CODEC=JP2', 'QUALITY=20'])
     dst_ds = None
     src_ds = None