<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 http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.Shkpostityyli19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 2.0cm 70.85pt 2.0cm;}
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="FI" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Ogrinfo seems to open the file.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">-Jukka Rahkonen-<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b>Lähettäjä:</b> gdal-dev <gdal-dev-bounces@lists.osgeo.org>
<b>Puolesta </b>Scott Smith via gdal-dev<br>
<b>Lähetetty:</b> torstai 1. syyskuuta 2022 19.04<br>
<b>Vastaanottaja:</b> gdal-dev@lists.osgeo.org<br>
<b>Aihe:</b> [gdal-dev] Understand Why a netCDF4 File Is Not Supported<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Hi All,<br>
<br>
I am trying to work with some SMOS data, specifically the netCDF4 files from <a href="https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsmos-diss.eo.esa.int%2Foads%2Faccess%2F&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7Cc25e0b0ca843423558f608da8c33a3d2%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C637976450669051916%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=SJapG8IICE%2BWs%2BRDqSyza9pXnAPCzh0uczKPzoFtYNs%3D&reserved=0">https://smos-diss.eo.esa.int/oads/access/</a>.<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Running gdalinfo or gdal_translate using the Docker image osgeo/gdal:ubuntu-full-latest on these netCDF4 files seems to fail with<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">ERROR 4: '<file>' not recognized as a supported file format.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Full command and output<br>
<br>
docker run -v /local/directory/containing/file/:/mnt/data/ osgeo/gdal:ubuntu-full-latest gdalinfo --debug ON /mnt/data/SM_OPER_MIR_SMUDP2_20220101T001713_20220101T011034_700_001_1.nc<br>
<br>
GDAL_netCDF: driver detected file type=3, libnetcdf detected type=3<br>
GDAL_netCDF: No UNIDATA NC_GLOBAL:Conventions attribute<br>
GDAL_netCDF: var_count = 72<br>
GDAL: GDALOpen(/mnt/data/SM_OPER_MIR_SMUDP2_20220101T001713_20220101T011034_700_001_1.nc, this=0x55cdea7bac30) succeeds as netCDF.<br>
GDAL: GDALClose(/mnt/data/SM_OPER_MIR_SMUDP2_20220101T001713_20220101T011034_700_001_1.nc, this=0x55cdea7bac30)<br>
GDAL: GDALOpen(/mnt/data/SM_OPER_MIR_SMUDP2_20220101T001713_20220101T011034_700_001_1.nc, this=0x55cdea7bac30) succeeds as netCDF.<br>
GDAL: GDALClose(/mnt/data/SM_OPER_MIR_SMUDP2_20220101T001713_20220101T011034_700_001_1.nc, this=0x55cdea7bac30)<br>
ERROR 4: `/mnt/data/SM_OPER_MIR_SMUDP2_20220101T001713_20220101T011034_700_001_1.nc' not recognized as a supported file format.<br>
gdalinfo failed - unable to open '/mnt/data/SM_OPER_MIR_SMUDP2_20220101T001713_20220101T011034_700_001_1.nc'.<br>
<br>
>From this I'm not really able to understand what is wrong with the file.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><br>
The file with which I am testing is available here: <a href="https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdrive.google.com%2Ffile%2Fd%2F1r4R2gy0w2nyEv1fwmMNNR8CHhwjvayIk%2Fview%3Fusp%3Dsharing&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7Cc25e0b0ca843423558f608da8c33a3d2%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C637976450669208186%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=IhJTrg4lnBCIABpwpwTKiKBA3rJF0B%2FcLvIz%2BrOpqjM%3D&reserved=0">https://drive.google.com/file/d/1r4R2gy0w2nyEv1fwmMNNR8CHhwjvayIk/view?usp=sharing</a><br>
<br>
I am trying to figure out what is "wrong" with these files which render them unreadable by gdal. I have not managed to find much by Googling. I'm happy to continue investigating if anyone is happy to provide any pointers to where I should be looking.<br>
<br>
Any advice, pointers or help would be greatly appreciated.<br>
<br>
Many Thanks<br>
Scott Smith<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Open Cosmos<br>
<br>
p.s. I'm not sure if this is relevant or helpful, but I have managed to have some partial success with an older version of gdal and some "single variable" files I created from the original. Included for information, the gdal version is   GDAL 3.3.2, released
 2021/09/01   and a file which worked with gdalinfo is <a href="https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdrive.google.com%2Ffile%2Fd%2F1r4R2gy0w2nyEv1fwmMNNR8CHhwjvayIk%2Fview%3Fusp%3Dsharing&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7Cc25e0b0ca843423558f608da8c33a3d2%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C637976450669208186%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=IhJTrg4lnBCIABpwpwTKiKBA3rJF0B%2FcLvIz%2BrOpqjM%3D&reserved=0">https://drive.google.com/file/d/1r4R2gy0w2nyEv1fwmMNNR8CHhwjvayIk/view?usp=sharing</a>
 .<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p style="margin:0cm"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#666666">This email is private and confidential. If you are not the intended recipient, do not copy or disclose its content, but please contact the sender immediately.</span><o:p></o:p></p>
<p style="margin:0cm"><o:p> </o:p></p>
<p style="margin:0cm"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#666666">Open Cosmos Ltd is a company registered in England & Wales. Registration number: 09704443. Registered office: Electron Building, Fermi Avenue, Harwell, OX11 0QR.</span><o:p></o:p></p>
</div>
</body>
</html>