[gdal-dev] SNODAS format

John Burkhart jfburkhart.reg at gmail.com
Fri Jan 4 08:05:09 PST 2019


Thanks.

On Fri, Jan 4, 2019 at 10:41 AM Even Rouault <even.rouault at spatialys.com>
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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20190104/e5200f24/attachment.html>


More information about the gdal-dev mailing list