I have been using python to turn a netcdf into a geotiff. Once I have the geotiff, I am using gdalwarp to transfer it into the right projection. Then use gdal_translate to get the tif into a vrt file.
I then use the vrt with gdal2tiles.
I have tried adding a color ramp two different ways, one with a color-relief using gdaldem. When I do that, I get a
Error : band 1 has no color table
from gdal_translate. I have also used python to set the ColorTable.
All I want is for my NoData to be transparent. Any idea on how to do that?
EDIT: How I create my array, I then use osgeo to make the tif.
noData = array == fill_val
norm_array = array.copy()
norm_array[noData] = 0
I have tried many different options once I have the tif,
gdalwarp -overwrite -ts 1736 932 -s_srs EPSG:4326 -t_srs EPSG:3857 -srcnodata 0 -dstnodata 0 -dstalpha original.tif warpped.tif
I have also tried using the
-a_nodata for gdal_translate and the
-a option for gdal2tiler as well. None of that seems to be working.