<div dir="ltr"><div dir="ltr">Hi Jukka,<br><br>Thanks for looking into this. If I understand correctly, this means I will have to do a little extra work to convert these into a raster-y/geotiff format other than simply using gdal_translate.</div><div><br></div><div>Thanks for pointing me in the right direction!<br>Scott Smith</div><div>Open Cosmos</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 1 Sept 2022 at 17:07, Rahkonen Jukka <<a href="mailto:jukka.rahkonen@maanmittauslaitos.fi" target="_blank">jukka.rahkonen@maanmittauslaitos.fi</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
<div lang="FI">
<div>
<p class="MsoNormal"><span>Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span>Ogrinfo seems to open the file.<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span>-Jukka Rahkonen-<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm">
<p class="MsoNormal"><b>Lähettäjä:</b> gdal-dev <<a href="mailto:gdal-dev-bounces@lists.osgeo.org" target="_blank">gdal-dev-bounces@lists.osgeo.org</a>>
<b>Puolesta </b>Scott Smith via gdal-dev<br>
<b>Lähetetty:</b> torstai 1. syyskuuta 2022 19.04<br>
<b>Vastaanottaja:</b> <a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<b>Aihe:</b> [gdal-dev] Understand Why a netCDF4 File Is Not Supported<u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></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" target="_blank">https://smos-diss.eo.esa.int/oads/access/</a>.<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></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<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">ERROR 4: '<file>' not recognized as a supported file format.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></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.<u></u><u></u></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" target="_blank">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<u></u><u></u></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" target="_blank">https://drive.google.com/file/d/1r4R2gy0w2nyEv1fwmMNNR8CHhwjvayIk/view?usp=sharing</a>
.<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<p style="margin:0cm"><span style="font-size:10pt;font-family:Arial,sans-serif;color:rgb(102,102,102)">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><u></u><u></u></p>
<p style="margin:0cm"><u></u> <u></u></p>
<p style="margin:0cm"><span style="font-size:10pt;font-family:Arial,sans-serif;color:rgb(102,102,102)">Open Cosmos Ltd is a company registered in England & Wales. Registration number: 09704443. Registered office: Electron Building, Fermi Avenue, Harwell, OX11 0QR.</span><u></u><u></u></p>
</div>
</div>
</div></blockquote></div>
</div>
<br>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-family:Arial;color:rgb(102,102,102);vertical-align:baseline;white-space:pre-wrap"><font size="2">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.</font></span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-family:Arial;color:rgb(102,102,102);vertical-align:baseline;white-space:pre-wrap"><font size="2"><br></font></span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-family:Arial;color:rgb(102,102,102);vertical-align:baseline;white-space:pre-wrap"><font size="2">Open Cosmos Ltd is a company registered in England & Wales. Registration number: 09704443. Registered office: Electron Building, Fermi Avenue, Harwell, OX11 0QR.</font></span></p>