Re: [gdal-dev] Problems with gdalwarp re-projecting from lat-long to Lambert Conformal

2010-03-03 Thread Bill Hudspeth
Thanks for the input Kyle. Just a quick question. In the second operation using gdal_translate, you indicate an -s_srs of EPSG:4326 for the *.vrt file. Wasn't the vrt file written in the Lambert projection in the first step? And if so, the second step could probably be done without having to

Re: [gdal-dev] Problems with gdalwarp re-projecting from lat-long to Lambert Conformal

2010-03-03 Thread Kyle Shannon
Yes, that is correct, that was a cut and paste mistake. You should not need either -s_srs or -t_srs. kss -Kyle On Wed, Mar 3, 2010 at 9:44 AM, Bill Hudspeth w...@unm.edu wrote: Thanks for the input Kyle. Just a quick question. In the second operation using gdal_translate, you indicate an

Re: [gdal-dev] Problems with gdalwarp re-projecting from lat-long to Lambert Conformal

2010-03-02 Thread Bill Hudspeth
Hello, Thanks for responding. When I use gdalinfo --formats, I see that AAIGrid is included in the list of acceptable formats. However, when I use /usr/local/gdal/bin/gdalwarp -of AAIGrid -s_srs EPSG:4326 -t_srs '+proj=lcc +lat_1=33n +lat_2=45n +lon_0=97w' mcd12_sep2109.asc

Re: [gdal-dev] Problems with gdalwarp re-projecting from lat-long to Lambert Conformal

2010-03-02 Thread Kyle Shannon
Bill, It may be necessary to create an intermediate file that supports creation (I think the (rw+) flag on gdalinfo --formats shows which formats support create, AAIGrid supports CreateCopy() but not Create()). Use gdalwarp to make a vrt file, then translate the file to AAIGrid:

[gdal-dev] Problems with gdalwarp re-projecting from lat-long to Lambert Conformal

2010-03-01 Thread Bill Hudspeth
Hello, I am having problems re-projecting an ArcAscii Grid from LatLong/WGS84 to Lambert Conformal. The source grid was derived from a GRASS mapset. Using r.out.gdal, a GRASS raster was exported to AAIGrid format using: r.out.gdal input=MODIS_input_raster format=AAIGrid type=UInt16

Re: [gdal-dev] Problems with gdalwarp re-projecting from lat-long to Lambert Conformal

2010-03-01 Thread Markus Neteler
On Mon, Mar 1, 2010 at 7:12 PM, Bill Hudspeth w...@unm.edu wrote: ... When I try to re-project the exported AAIGrid to another projection, I use: gdalwarp -s_srs EPSG:4326 -t_srs '+proj=lcc +lat__1=33n +lat_2=45n +lon_0=97w' MODIS_output_latlong.asc MODIS_output_lambert.asc Note that without