<div dir="ltr">If 1.9.2 worked for that file but 1.10.1 does not, that would be a regression. If possible, could you bring this up on the GDAL mailing list? I would but I don't have a copy of the file that demonstrates the problem.<div>

<br></div><div>-bborie</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Dec 20, 2013 at 1:54 AM, Olivier Sanchez <span dir="ltr"><<a href="mailto:Olivier.Sanchez@airparif.asso.fr" target="_blank">Olivier.Sanchez@airparif.asso.fr</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="FR" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">You were right. </span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I tested gdal_translate from nc to tiff and got the same error message. <u></u><u></u></span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I was using gdal1.10.1. After installing the 1.9.2 version, it seems ok. <u></u><u></u></span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thank you,<u></u><u></u></span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Olivier<u></u><u></u></span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>

<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">De :</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:postgis-devel-bounces@lists.osgeo.org" target="_blank">postgis-devel-bounces@lists.osgeo.org</a> [mailto:<a href="mailto:postgis-devel-bounces@lists.osgeo.org" target="_blank">postgis-devel-bounces@lists.osgeo.org</a>] <b>De la part de</b> Bborie Park<br>

<b>Envoyé :</b> vendredi 20 décembre 2013 03:55<br><b>À :</b> PostGIS Development Discussion<br><b>Objet :</b> Re: [postgis-devel] netCDF support<u></u><u></u></span></p></div><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p>

<p>From the error message, it looks like GDAL doesn't like reading the bottom up file. Can you try something like gdal_translate to a different format? gdalinfo doesn't really read through the whole file like other utilities.<u></u><u></u></p>

<p>-bborie<u></u><u></u></p><div><p class="MsoNormal">On Dec 19, 2013 2:15 AM, "os662002" <<a href="mailto:olivier.sanchez@airparif.asso.fr" target="_blank">olivier.sanchez@airparif.asso.fr</a>> wrote:<u></u><u></u></p>

<p class="MsoNormal">Hi all,<br><br>I have a problem trying to convert netcdf to POSTGIS raster.<br><br>I've got a netcdf file which header is the following<br>netcdf out.NO2.1 {<br>dimensions:<br>        Time = UNLIMITED ; // (97 currently)<br>

        lat = 46 ;<br>        lon = 67 ;<br>        DateStrLen = 19 ;<br>variables:<br>        float NO2(Time, lat, lon) ;<br>                NO2:long_name = "NO2 Concentration" ;<br>                NO2:units = "ppb vol" ;<br>

                NO2:grid_mapping = "crs" ;<br>        char Times(Time, DateStrLen) ;<br><br>When using raster2pgsql (raster2pgsql -f conc NETCDF:out.NO2.1.nc:NO2<br>esmassim_data<br>), I got the following error message :<br>

<br>ERROR 1: nBlockYSize = 46, only 1 supported when reading bottom-up dataset<br>ERROR 1: NETCDF:out.NO2.1.nc:NO2, band 1: IReadBlock failed at X offset 0, Y<br>offset 0<br>ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0<br>

<br>While gdalinfo seems to work fine giving all the raster bands that are in<br>the file.<br><br>When time dimension is absent ,the raster2pgsql works fine.<br><br>Does anyone have an idea ? Is it normal, I thought that adding the -b 1<br>

option to raster2pgsql would allow me extract the right index band.<br><br>Thanks in advance,<br><br>Regards,<br><br>Olivier SANCHEZ<br><br><br><br><br>--<br>View this message in context: <a href="http://postgis.17.x6.nabble.com/netCDF-support-tp4889659p5005322.html" target="_blank">http://postgis.17.x6.nabble.com/netCDF-support-tp4889659p5005322.html</a><br>

Sent from the PostGIS - Dev mailing list archive at Nabble.com.<br>_______________________________________________<br>postgis-devel mailing list<br><a href="mailto:postgis-devel@lists.osgeo.org" target="_blank">postgis-devel@lists.osgeo.org</a><br>

<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-devel" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-devel</a><u></u><u></u></p></div></div></div></div></div><br>_______________________________________________<br>


postgis-devel mailing list<br>
<a href="mailto:postgis-devel@lists.osgeo.org">postgis-devel@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-devel" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-devel</a><br></blockquote></div><br></div>