Re: [gdal-dev] Re: Do we have to know UTM zone a priori to convert to UTM from lat/lon

2011-09-13 Thread Matt Funk
es are defined for longitude zones, both north and south (not > in 8-degree zones), so in GDAL you only need to find the longitudinal > zone and define if it is north or south. > > e.g. from spatialreference.org > EPSG:32718 -> WGS 84 / UTM zone 18S > EPSG:32618 -> WGS 84 / UTM

Re: [gdal-dev] Re: Do we have to know UTM zone a priori to convert to UTM from lat/lon

2011-09-12 Thread Matt Funk
On 9/12/2011 4:07 PM, Tim Osborn wrote: > I should have said that the above equation is valid for longitudes greater > than or equal to -180.0 and less than +180.0. I assume it is the same to determine the latitude zone (using 8 degrees). The one thing though are the exceptions (even though I don't

Re: [gdal-dev] Do we have to know UTM zone a priori to convert to UTM from lat/lon

2011-09-12 Thread Matt Funk
On 9/12/2011 3:46 PM, Chris 'Xenon' Hanson wrote: > On 9/12/2011 3:35 PM, Matt Funk wrote: >> Hi, >> if i want to convert from lat/lon to UTM (both based on WGS84). Do i >> have to know the UTM zone a priori? If so, why? >> Can anyone provide some insig

[gdal-dev] Do we have to know UTM zone a priori to convert to UTM from lat/lon

2011-09-12 Thread Matt Funk
Hi, if i want to convert from lat/lon to UTM (both based on WGS84). Do i have to know the UTM zone a priori? If so, why? Can anyone provide some insight on this? I'd greatly appreciate it. thanks matt ___ gdal-dev mailing list gdal-dev@lists.osgeo.org h

[gdal-dev] question about transform from geo to proj reference system

2011-09-09 Thread Matt Funk
Hi, I have a satellite scene specified in geographic coordinates (i.e. WSG84, lat/lon). For the purpose of interpolating onto a distance-regular grid i want to transform that data to a projected systems (UTM). I am using gdal in python. To go from projected to geographic (the inverse of i what i wa

Re: [gdal-dev] using GDALGridCreate in python?

2011-09-06 Thread Matt Funk
could not find it. thanks matt On 9/1/2011 10:10 AM, Matt Funk wrote: > Hi, > i got a question on using the gdal_grid utility: > My input file looks like: > > lat,lon,data > 24.007521,-114.111420,-0.078077 > 24.003864,-114.064293,-0.017523 > 24.000221,-114.017540,-0.069692

[gdal-dev] Re: help with getting started for writing swig typemaps for GDALGridCreate()

2011-09-01 Thread Matt Funk
Nevermind, i got confused. Downloaded the wrong code. Sorry about that. matt On 9/1/2011 12:15 PM, Matt Funk wrote: > Hi, > i would like be able to make use of GDALGridCreate() in my python > code. Since it has not been mapped to python i'd like to do that > myself. I don'

[gdal-dev] help with getting started for writing swig typemaps for GDALGridCreate()

2011-09-01 Thread Matt Funk
Hi, i would like be able to make use of GDALGridCreate() in my python code. Since it has not been mapped to python i'd like to do that myself. I don't have experience with this though, so i am looking for some direction on how to get started. I read up a little on it and i think i understand the ge

Re: [gdal-dev] using GDALGridCreate in python?

2011-09-01 Thread Matt Funk
rated, but when i try to open it, but i cannot open it and the file is somehow corrupted. For the experts on this utility, am i doing something obviously wrong? thanks matt On 8/30/2011 3:04 PM, Even Rouault wrote: > Le mardi 30 août 2011 22:57:34, Matt Funk a écrit : >> On 8/30/2011 1:

Re: [gdal-dev] using GDALGridCreate in python?

2011-08-30 Thread Matt Funk
On 8/30/2011 1:39 PM, Even Rouault wrote: > Le mardi 30 août 2011 21:28:11, Matt Funk a écrit : >> Hi, >> i have several satellite scenes which basically give me 3 vectors: >> lat/lon/data which is on an irregular. I would like to interpolate those >> onto a

[gdal-dev] using GDALGridCreate in python?

2011-08-30 Thread Matt Funk
Hi, i have several satellite scenes which basically give me 3 vectors: lat/lon/data which is on an irregular. I would like to interpolate those onto a regular grid. I found that GDALGridCreate would meet my need except that i am developing in python, but it appears the bindings for it don't exist (

Re: [gdal-dev] gdal reading in grib values in awrong state?

2011-05-05 Thread Matt Funk
Yup, that was it. I should have looked a little closer i suppose ... thanks matt On 5/5/2011 3:09 PM, Brian Case wrote: > Matt, > > At a quick glance I would say pygrib is outputting in kelvin and gdal > Celsius. also it looks like there not in the same order. > > Brian > > > > On Thu, 2011-05-05

Re: [gdal-dev] gdal and hdf-eos

2011-03-04 Thread Matt Funk
this by running the command "gdalinfo --formats". See > if HDF4 is in the output. > http://www.gdal.org/frmt_hdf4.html > > On Fri, Mar 4, 2011 at 6:03 AM, Matt Funk <mailto:maf...@nmsu.edu>> wrote: > > Hi, > i am using python/gdal. I am trying to open a MO

[gdal-dev] gdal and hdf-eos

2011-03-03 Thread Matt Funk
Hi, i am using python/gdal. I am trying to open a MODIS satellite file from the Terra satellite (which is hdf4-eos format). Doing: ds = gdal.Open(file) drivertype=ds.GetDriver().LongName returns ERROR 4: `C:/tmp/SrcData/2010Data/MODISData/MOD03/MOD03.A2010002.1810.005.201025806273

[gdal-dev] gdal vs wgrib2 output for grb2 files

2011-02-17 Thread Matt Funk
origin = %f, %f, pixel_size=%f, %f\n", > my_x_size, my_y_size, my_raster_bands, > my_geo_transform[0], > my_geo_transform[3], my_geo_transform[1], > my_geo_transform[5]); > > >From this information you can calculate t

[gdal-dev] possible (probably) dumb question w.r.t to OpenGrADS and GDAL

2011-02-04 Thread Matt Funk
Hi, i am fairly new to the earth science field and its implementation in terms of programming. I had a question that is probably fairly obvious to most: What is the difference/relationship between gdal and opengrads (or does there even exist such a relationship?). Is one build on top of the other.

Re: [gdal-dev] question about reading grib2 file

2011-01-20 Thread Matt Funk
\n", > my_x_size, my_y_size, my_raster_bands, > my_geo_transform[0], > my_geo_transform[3], my_geo_transform[1], > my_geo_transform[5]); > > >From this information you can calculate the lat-lon of each p

Re: [gdal-dev] question about reading grib2 file

2011-01-20 Thread Matt Funk
when given the -spread flag. Anyway, maybe this is not a gdal issue after all. thanks matt On 1/20/2011 2:38 PM, Matt Funk wrote: > Hi, > > i am somewhat new to gdal and the grib format. > I need to read in a grib2 file which contains latitude longitude and > elevation.

[gdal-dev] question about reading grib2 file

2011-01-20 Thread Matt Funk
Hi, i am somewhat new to gdal and the grib format. I need to read in a grib2 file which contains latitude longitude and elevation. So i do: ds = gdal.Open(filename) and print "ds.GetRasterCount(): %s" % ds.GetRasterCount() gives: 1 I can proceed to read in this band, but all the data that i get i

[gdal-dev] question about ReadAsArray

2010-12-13 Thread Matt Funk
Hi, i am a bit new to the gdal library. I am trying to process some geotiff files in python. 1) I am making a call to the ReadAsArray data as such: ... band = ds.GetRasterBand(1) array = band.ReadAsArray(0,0,band.XSize,band.YSize) print array.shape ... which returns: (7191, 8331) Now, what i don'