<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body>
<p>Joaquim,</p>
<p>I suspect you are not testing with the same GDAL version with
your gdalinfo shell invokation or within julia.</p>
<p>With the C API, you can shut down warnings and errors with</p>
<p>CPLPushErrorHandler(CPLQuietErrorHandler);</p>
<p>...</p>
<p>CPLPopErrorHandler();</p>
<p>You can install a custom error handler that filters only some
category of events. See <br>
</p>
<p><a class="moz-txt-link-freetext" href="https://gdal.org/api/cpl.html?highlight=cplpusherrorhandler#_CPPv419CPLPushErrorHandler15CPLErrorHandler">https://gdal.org/api/cpl.html?highlight=cplpusherrorhandler#_CPPv419CPLPushErrorHandler15CPLErrorHandler</a></p>
<p>Even<br>
</p>
<div class="moz-cite-prefix">Le 07/03/2021 à 21:42, Joaquim Manuel
Freire Luís a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:AM6PR04MB39599315FC3E8ED1095901DFA6949@AM6PR04MB3959.eurprd04.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style>@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}div.WordSection1
{page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I have this strange case
where some warnings come from don’t know where.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">From a shell command
(cmd but it doesn’t matter) all fine<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR">gdalinfo
AQUA_MODIS.20020717T135006.L2.SST.nc<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Driver: netCDF/Network
Common Data Format<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR">Files:
AQUA_MODIS.20020717T135006.L2.SST.nc<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Size is 512, 512<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Metadata:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">
/navigation_data/NC_GLOBAL#gringpointlatitude={28.923635,25.633446,42.81229,46.942131}<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">…<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">However, the same but
this time called from Julia that wraps calls to
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">
options = GDALInfoOptionsNew(options, C_NULL)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">
result = GDALInfo(ds.ptr, options)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">
GDALInfoOptionsFree(options)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I get these warnings<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">julia>
println(gdalinfo("AQUA_MODIS.20020717T135006.L2.SST.nc"))<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Driver: netCDF/Network
Common Data Format<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR">Files:
AQUA_MODIS.20020717T135006.L2.SST.nc<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Size is 512, 512<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Metadata:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">
/navigation_data/NC_GLOBAL#gringpointlatitude={28.923635,25.633446,42.81229,46.942131}<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">…<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Also get several of
these in other commands<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Warning 1: dimension #1
(pixels_per_line) is not a Longitude/X dimension.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Warning 1: dimension #0
(number_of_lines) is not a Latitude/Y dimension.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Is there anyway to shut
up this warnings, or warnings in general?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Joaquim<o:p></o:p></span></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a></pre>
</body>
</html>