I have a NetCDF file including 1365 bands (when opening in QGIS for example). To display it on an online map like OpenLayers, I tried to export it as a GeoTIFF image. I read a solution here that suggests MapTiler to convert the file to Tile, but it does not work, since the file has more than one band!

Do you know any other way to display GeoTIFF on OpenLayers?

  • Not sure you can display GeoTIFF in any browser (without some extension), so not sure how you'll get a GeoTIFF to display natively in an OpenLayers client. Are you really after a GeoTIFF solution, or would some way of viewing the NetCDF data itself work?
    – nmtoken
    Oct 11, 2017 at 14:59
  • Actually I prefer to find a direct way for visualizing NetCDF, but as far as I understood it would be a more difficult task! Oct 11, 2017 at 15:15
  • 1
    Would the WMS and other services of THREDDS unidata.ucar.edu/software/thredds/current/tds serve your needs? I like its Godiva interface for browsing around time series of netcdf rasters.
    – Dave X
    Oct 11, 2017 at 19:21
  • I see either WMS or WCS as the solution here, depending on what you want to do with the data in OpenLayers.
    – nmtoken
    Oct 11, 2017 at 19:57

1 Answer 1


The easiest way would be to use the WMS services provided by the THREDDS Data Server, as long are your NetCDF data are CF-Compliant. You can display the data in your browser using WMS-consuming clients like Leaflet, OpenLayers, ArcGIS or TerriaJS.

Here's a cool example visualizing NetCDF data via WMS from THREDDS Data Server using Leaflet Time dimension. Try double clicking a point, then scroll down to see the time series plots underneath the map!

Installing THREDDS Data Server is now really easy also now that there is a THREDDS Docker Container.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.