[gdal-dev] Is it possible to switch warnings off?

Joaquim Manuel Freire Luís jluis at ualg.pt
Sun Mar 7 12:42:02 PST 2021


Hi,

I have this strange case where some warnings come from don't know where.

>From a shell command (cmd but it doesn't matter) all fine

gdalinfo AQUA_MODIS.20020717T135006.L2.SST.nc
Driver: netCDF/Network Common Data Format
Files: AQUA_MODIS.20020717T135006.L2.SST.nc
Size is 512, 512
Metadata:
  /navigation_data/NC_GLOBAL#gringpointlatitude={28.923635,25.633446,42.81229,46.942131}
...


However, the same but this time called from Julia that wraps calls to
                              options = GDALInfoOptionsNew(options, C_NULL)
                              result = GDALInfo(ds.ptr, options)
                              GDALInfoOptionsFree(options)

I get these warnings

julia> println(gdalinfo("AQUA_MODIS.20020717T135006.L2.SST.nc"))
Warning 1: The dataset has several variables that could be identified as vector fields, but not all share the same primary dimension. Consequently they will be ignored.
Warning 1: The dataset has several variables that could be identified as vector fields, but not all share the same primary dimension. Consequently they will be ignored.
Driver: netCDF/Network Common Data Format
Files: AQUA_MODIS.20020717T135006.L2.SST.nc
Size is 512, 512
Metadata:
  /navigation_data/NC_GLOBAL#gringpointlatitude={28.923635,25.633446,42.81229,46.942131}
...

Also get several of these in other commands

Warning 1: dimension #1 (pixels_per_line) is not a Longitude/X dimension.
Warning 1: dimension #0 (number_of_lines) is not a Latitude/Y dimension.


Is there anyway to shut up this warnings, or warnings in general?


Thanks

Joaquim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210307/e0873a46/attachment.html>


More information about the gdal-dev mailing list