<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
<span>Even, Kurt,</span></div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
<span><br>
</span></div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
<span>I've been thru the same issue last week. I might be wrong but the only way that I found to add support for NC4 into the netcdf-c-4.6.3 build was by enabling HDF4</span><span> .</span></div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
<span><br>
</span></div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
<span>You might try run "./configure --help | grep 4" on the netCDF SDK to see if there is another way.</span></div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
I rebuild everything, HDF5, HDF4 and netCDF SDKs and GDAL and the netCDF driver and now I am not getting warnings like that anymore. </div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
Regards,</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
Ivan</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> gdal-dev <gdal-dev-bounces@lists.osgeo.org> on behalf of Even Rouault <even.rouault@spatialys.com><br>
<b>Sent:</b> Wednesday, August 7, 2019 4:39 PM<br>
<b>To:</b> gdal-dev@lists.osgeo.org <gdal-dev@lists.osgeo.org><br>
<b>Subject:</b> Re: [gdal-dev] NetCDF driver detected file type</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Kurt,<br>
<br>
I would say that your netCDF build lacks libhdf5 support needed to open netCDF <br>
4 files, and/or that your GDAL build has been done against a netCDF version <br>
that lacked it (if you added support of HDF5 in the netCDF build, after doing <br>
an initial build of GDAL, you also need to rebuild GDAL)<br>
<br>
It is likely that with your build the following<br>
gdalinfo --format netcdf | grep NETCDF_HAS_NC4=YES<br>
reports currently nothing<br>
<br>
Rebuild netCDF with HDF5 support, and GDAL against this new netCDF build.<br>
<br>
Even<br>
<br>
> For a custom build of gdal, I'm seeing:<br>
> <br>
> Warning 1: NetCDF driver detected file type=5, but libnetcdf detected<br>
> type=3<br>
> <br>
> Any idea what is causing this? With gdal 2.3.2, from debian testing, I<br>
> don't see the message.<br>
> <br>
> This warning message was added here:<br>
> <br>
> <a href="https://github.com/OSGeo/gdal/commit/813aa221af3ac13a3747f4d4a3f312f098869ad">
https://github.com/OSGeo/gdal/commit/813aa221af3ac13a3747f4d4a3f312f098869ad</a><br>
> c<br>
> <br>
> using:<br>
> <br>
> gs://gcp-public-data-goes-17/ABI-L2-FDCF/2019/201/13/OR_ABI-L2-FDCF-M6_G17_s<br>
> 20192011310341_e20192011319407_c20192011319507.nc<br>
> <br>
> netcdf 4.6.1<br>
> HDF5 claims to be 1.11.2 and is a bit newer than<br>
> <a href="https://bitbucket.hdfgroup.org/projects/HDFFV/repos/hdf5/browse?at=807187e2f">
https://bitbucket.hdfgroup.org/projects/HDFFV/repos/hdf5/browse?at=807187e2f</a><br>
> 200e63adb4918dd475d47546c8588e9 GDAL from head ~ 2018-Oct<br>
> <br>
> gdalinfo<br>
> NETCDF:OR_ABI-L2-FDCF-M6_G17_s20192011310341_e20192011319407_c20192011319507<br>
> .nc:Area Warning 1: NetCDF driver detected file type=5, but libnetcdf<br>
> detected type=3 Driver: netCDF/Network Common Data Format<br>
> Files: none associated<br>
> Size is 5424, 5424<br>
> Coordinate System is:<br>
> PROJCS["unnamed",<br>
> GEOGCS["unknown",<br>
> DATUM["unknown",<br>
> SPHEROID["Spheroid",6378137,298.2572221]],<br>
> PRIMEM["Greenwich",0],<br>
> UNIT["degree",0.0174532925199433]],<br>
> PROJECTION["Geostationary_Satellite"],<br>
> PARAMETER["central_meridian",-137],<br>
> PARAMETER["satellite_height",35786023],<br>
> PARAMETER["false_easting",0],<br>
> PARAMETER["false_northing",0],<br>
> EXTENSION["PROJ4","+proj=geos +lon_0=-137 +h=35786023 +x_0=0 +y_0=0<br>
> +ellps=GRS80 +units=m +no_defs +sweep=x"]]<br>
> Origin = (-5434894.700982173904777,-5434895.218222249299288)<br>
> Pixel Size = (2004.017315487541055,2004.017315487541055)<br>
> Metadata:<br>
> Area#add_offset=4000<br>
> Area#cell_methods=sunglint_angle: point (no pixel produced)<br>
> local_zenith_angle: point (good quality pixel produced) solar_zenith_angle:<br>
> point (good quality pixel produced) t: point<br>
> Area#coordinates=sunglint_angle local_zenith_angle solar_zenith_angle t y<br>
> x<br>
> Area#grid_mapping=goes_imager_projection<br>
> Area#long_name=ABI L2+ Fire-Hot Spot Characterization: Fire Area<br>
> Area#scale_factor=60.98<br>
> [SNIP]<br>
<br>
<br>
-- <br>
Spatialys - Geospatial professional services<br>
<a href="http://www.spatialys.com">http://www.spatialys.com</a><br>
_______________________________________________<br>
gdal-dev mailing list<br>
gdal-dev@lists.osgeo.org<br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a></div>
</span></font></div>
</body>
</html>