[gdal-dev] SNODAS format

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[gdal-dev] SNODAS format

John Burkhart
Hello,

Trying to open SNODAS datasets from:
server = 'sidads.colorado.edu'
ftp_directory = 'pub/DATASETS/NOAA/G02158/masked/{}/{}'.format(yyyy, m_month)

I have untarred/unzipped the files and have the following files:
$ls
us_ssmv11034tS__T0001TTNATS2019010105HP001.Hdr  us_ssmv11034tS__T0001TTNATS2019010305HP001.Hdr
us_ssmv11034tS__T0001TTNATS2019010105HP001.dat  us_ssmv11034tS__T0001TTNATS2019010305HP001.dat

When I run gdal_translate, I get the following error:

$gdal_translate -of GTiff -a_srs '+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs' -a_nodata -9999 -a_ullr  -124.73333333 52.87500000 -66.94166667 24.95000000 us_ssmv11034tS__T0001TTNATS2019010105HP001.dat temp.tiff
ERROR 4: `us_ssmv11034tS__T0001TTNATS2019010105HP001.dat' not recognized as a supported file format.

and if I try with the .Hdr file:
$gdal_translate -of GTiff -a_srs '+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs' -a_nodata -9999 -a_ullr  -124.73333333 52.87500000 -66.94166667 24.95000000 us_ssmv11034tS__T0001TTNATS2019010105HP001.Hdr temp.tiff
ERROR 1: Maximum number of characters allowed reached.

Do I need to specify the SNODAS driver somehow? I am using gdal version 2.2.4
$gdal_translate --version
GDAL 2.2.4, released 2018/03/19

Thank you.

_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: SNODAS format

Even Rouault-2
On vendredi 4 janvier 2019 10:33:58 CET John Burkhart wrote:

> Hello,
>
> Trying to open SNODAS datasets from:
>
> server = 'sidads.colorado.edu'
> ftp_directory = 'pub/DATASETS/NOAA/G02158/masked/{}/{}'.format(yyyy,
> m_month)
>
>
> I have untarred/unzipped the files and have the following files:
> $ls
> us_ssmv11034tS__T0001TTNATS2019010105HP001.Hdr
> us_ssmv11034tS__T0001TTNATS2019010305HP001.Hdr
> us_ssmv11034tS__T0001TTNATS2019010105HP001.dat
> us_ssmv11034tS__T0001TTNATS2019010305HP001.dat
>
> When I run gdal_translate, I get the following error:
>
> $gdal_translate -of GTiff -a_srs '+proj=longlat +ellps=WGS84 +datum=WGS84
> +no_defs' -a_nodata -9999 -a_ullr  -124.73333333 52.87500000 -66.94166667
> 24.95000000 us_ssmv11034tS__T0001TTNATS2019010105HP001.dat temp.tiff
> ERROR 4: `us_ssmv11034tS__T0001TTNATS2019010105HP001.dat' not recognized as
> a supported file format.
>
> and if I try with the .Hdr file:
> $gdal_translate -of GTiff -a_srs '+proj=longlat +ellps=WGS84 +datum=WGS84
> +no_defs' -a_nodata -9999 -a_ullr  -124.73333333 52.87500000 -66.94166667
> 24.95000000 us_ssmv11034tS__T0001TTNATS2019010105HP001.Hdr temp.tiff
> ERROR 1: Maximum number of characters allowed reached.
>
> Do I need to specify the SNODAS driver somehow? I am using gdal version
> 2.2.4
> $gdal_translate --version
> GDAL 2.2.4, released 2018/03/19

This is a bug of the SNODAS driver in GDAL 2.2.4. It was fixed by GDAL 2.3.0
or later

Alternatively you may manually edit the .hdr file to avoid lines to be greater
than 1024 characters

Even


--
Spatialys - Geospatial professional services
http://www.spatialys.com
_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: SNODAS format

John Burkhart
Thanks.

On Fri, Jan 4, 2019 at 10:41 AM Even Rouault <[hidden email]> wrote:
On vendredi 4 janvier 2019 10:33:58 CET John Burkhart wrote:
> Hello,
>
> Trying to open SNODAS datasets from:
>
> server = 'sidads.colorado.edu'
> ftp_directory = 'pub/DATASETS/NOAA/G02158/masked/{}/{}'.format(yyyy,
> m_month)
>
>
> I have untarred/unzipped the files and have the following files:
> $ls
> us_ssmv11034tS__T0001TTNATS2019010105HP001.Hdr
> us_ssmv11034tS__T0001TTNATS2019010305HP001.Hdr
> us_ssmv11034tS__T0001TTNATS2019010105HP001.dat
> us_ssmv11034tS__T0001TTNATS2019010305HP001.dat
>
> When I run gdal_translate, I get the following error:
>
> $gdal_translate -of GTiff -a_srs '+proj=longlat +ellps=WGS84 +datum=WGS84
> +no_defs' -a_nodata -9999 -a_ullr  -124.73333333 52.87500000 -66.94166667
> 24.95000000 us_ssmv11034tS__T0001TTNATS2019010105HP001.dat temp.tiff
> ERROR 4: `us_ssmv11034tS__T0001TTNATS2019010105HP001.dat' not recognized as
> a supported file format.
>
> and if I try with the .Hdr file:
> $gdal_translate -of GTiff -a_srs '+proj=longlat +ellps=WGS84 +datum=WGS84
> +no_defs' -a_nodata -9999 -a_ullr  -124.73333333 52.87500000 -66.94166667
> 24.95000000 us_ssmv11034tS__T0001TTNATS2019010105HP001.Hdr temp.tiff
> ERROR 1: Maximum number of characters allowed reached.
>
> Do I need to specify the SNODAS driver somehow? I am using gdal version
> 2.2.4
> $gdal_translate --version
> GDAL 2.2.4, released 2018/03/19

This is a bug of the SNODAS driver in GDAL 2.2.4. It was fixed by GDAL 2.3.0
or later

Alternatively you may manually edit the .hdr file to avoid lines to be greater
than 1024 characters

Even


--
Spatialys - Geospatial professional services
http://www.spatialys.com

_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev