<div dir="ltr"><div dir="ltr"><div>Hmm... these are netcdf 5 according to file. Does that not imply that that I don't need to worry about NC4? </div><div><br></div><div>file *.nc<br>OR_ABI-L2-FDCF-M6_G17_s20192011300341_e20192011309408_c20192011309501.nc: Hierarchical Data Format (version 5) data<br>OR_ABI-L2-FDCF-M6_G17_s20192011310341_e20192011319407_c20192011319507.nc: Hierarchical Data Format (version 5) data<br>OR_ABI-L2-FDCF-M6_G17_s20192011320341_e20192011329408_c20192011329487.nc: Hierarchical Data Format (version 5) data<br>OR_ABI-L2-FDCF-M6_G17_s20192011330341_e20192011339408_c20192011339497.nc: Hierarchical Data Format (version 5) data<br>OR_ABI-L2-FDCF-M6_G17_s20192011340341_e20192011349408_c20192011349492.nc: Hierarchical Data Format (version 5) data<br>OR_ABI-L2-FDCF-M6_G17_s20192011350341_e20192011359408_c20192011359486.nc: Hierarchical Data Format (version 5) data<br></div><div><br></div><div>I have the extra fun that my build is bazel based. I do have:</div><div><br></div><div> "-DFRMT_hdf4",<br> "-DFRMT_hdf5",<br> "-DFRMT_netcdf",<br></div></div><div><br></div><div>This indeed give nothing:</div><div><br></div><div>gdalinfo --format netcdf | grep NETCDF_HAS_NC4<br></div><div><br></div><div>I have more digging to do on the config checking side of things. I don't have the dispatch tables for hdf4 in netcdf.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 7, 2019 at 1:51 PM Ivan Lucena <<a href="mailto:ivan.lucena@outlook.com">ivan.lucena@outlook.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div 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="gmail-m_8653944737037061593appendonsend"></div>
<hr style="display:inline-block;width:98%">
<div id="gmail-m_8653944737037061593divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> gdal-dev <<a href="mailto:gdal-dev-bounces@lists.osgeo.org" target="_blank">gdal-dev-bounces@lists.osgeo.org</a>> on behalf of Even Rouault <<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>><br>
<b>Sent:</b> Wednesday, August 7, 2019 4:39 PM<br>
<b>To:</b> <a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a> <<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>><br>
<b>Subject:</b> Re: [gdal-dev] NetCDF driver detected file type</font>
<div> </div>
</div>
<div class="gmail-m_8653944737037061593BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="gmail-m_8653944737037061593PlainText">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" target="_blank">
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>
> <a href="http://20192011310341_e20192011319407_c20192011319507.nc" target="_blank">20192011310341_e20192011319407_c20192011319507.nc</a><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" target="_blank">
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" target="_blank">http://www.spatialys.com</a><br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a></div>
</span></font></div>
</div>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a></blockquote></div></div>