micha-silver / grass-hecras

Scritps for interfacing between GRASS and HEC RAS
10 stars 4 forks source link

gdalinfo does not work #2

Open kurkutesa opened 9 years ago

kurkutesa commented 9 years ago

Hi, I have Maverick OS ..I have installed NetCDF and GDAL using macports. When I issued gdalinfo geo_em_do3.nc command i get following error. gdalinfo geo_em.d03.nc ERROR 4: `geo_em.d03.nc' not recognised as a supported file format.

gdalinfo failed - unable to open 'geo_em.d03.nc'.

I'd tried to resolve this issue, but could not solved it. Could you please help me to resolve this issue ?

Thanking Yours, Shanky

micha-silver commented 9 years ago

body p { margin-bottom: 0cm; margin-top: 0pt; } I don't know exactly how to resolve the problem, but it seems your GDAL is compiled without support for netCDF. You can check with: gdalinfo --formats | grep -i cdf If you get no response, then your GDAL does not include netCDF. So you'll have to either compile GDAL yourself, or find a package that does include it. On 05/10/2014 07:35, shanky1985 wrote:

  Hi, 
    I have Maverick OS ..I have installed NetCDF and GDAL using
    macports.
    When I issued gdalinfo geo_em_do3.nc command i get following
    error.
    gdalinfo geo_em.d03.nc 
    ERROR 4: `geo_em.d03.nc' not recognised as a supported file
    format.
  gdalinfo failed - unable to open 'geo_em.d03.nc'.
  I'd tried to resolve this issue, but could not solved it. Could
    you please help me to resolve this issue ?
  Thanking Yours,
    Shanky
  —
    Reply to this email directly or view
      it on GitHub.
  {"@context":<a class="moz-txt-link-rfc2396E" href="http://schema.org">"http://schema.org"</a>,"@type":"EmailMessage","description":"View this Issue on GitHub","action":{"@type":"ViewAction","url":<a class="moz-txt-link-rfc2396E" href="https://github.com/micha-silver/grass-hecras/issues/2">"https://github.com/micha-silver/grass-hecras/issues/2"</a>,"name":"View Issue"}}
  This mail was received via Mail-SeCure System.
-- 

Micha Silver GIS Consulting 052-3665918 http://www.surfaces.co.il

kurkutesa commented 9 years ago

Hi Micha, Thank you very much for the reply. I have resolved the issue. You are right, I had installed GDAL without netcdf support. Now, I have installed it with netcdf + HDF4 by issuing following command. sudo port install gdal +hdf4 +hdf5 +netcdf And it worked ... Thank You very much .. Now I am trying to use your codes for creating WRF-Hydro input files. I am really appreciate to you for making these open source codes.

Thanking Yours, Shanky