gdal_translate netcdf_file.nc output.tif

I'm trying to generate a GeoTiff using this command, and it works... kind of. The output tif image is just black and white, and I'd like actual colors on the output image. When I do a "gdalinfo" on the netCDF file, it says there is only 1 band, and that the "ColorInterp" is "Undefined."

  • There are no colors in 1 band image before you apply a color table into it. – user30184 Sep 19 at 16:42
  • So my next step should be finding out how to write multiple bands? – user150669 Sep 19 at 18:24
  • No, because you have only one band in your source data. Learn how to show your only band as pseudo-color by applying color table/palette. That depends on your viewer. Here is a tutorial for QGIS qgistutorials.com/en/docs/raster_styling_and_analysis.html. – user30184 Sep 19 at 18:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy