<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
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]--></head><body lang=FR link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></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. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></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. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thank you,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Olivier<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></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"'> postgis-devel-bounces@lists.osgeo.org [mailto:postgis-devel-bounces@lists.osgeo.org] <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<o:p></o:p></span></p></div><p class=MsoNormal><o:p> </o:p></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.<o:p></o:p></p><p>-bborie<o:p></o:p></p><div><p class=MsoNormal>On Dec 19, 2013 2:15 AM, "os662002" <<a href="mailto:olivier.sanchez@airparif.asso.fr">olivier.sanchez@airparif.asso.fr</a>> wrote:<o:p></o:p></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">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><o:p></o:p></p></div></div></body></html>