[gdal-dev] SNODAS format
Even Rouault
even.rouault at spatialys.com
Fri Jan 4 07:41:26 PST 2019
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
More information about the gdal-dev
mailing list