[decoders] Grib1Data: getData method

NOTE: The decoders mailing list is no longer active. The list archives are made available for historical reasons.


Hi,

I am newbie to Grib data and Java Grib Decoder. I am trying to write a
java code that prints the temperature data for a specific hour and level
from a GRIB file.

Let's say I want to see the temperature at longitude 120W, latitude 45N.
Which array index of Grib1Data.getData method result does correspond to
that information? How does it go; East to West/North to South or vice
versa? Or does it change by the GRIB file that I am reading?

.
.
.
Grib1Data grib1data =3D new Grib1Data(raf);

float[] arr =3D grib1data.getData(gribRecord.offset1, 1,
gribRecord.bmsExists);
.
.
.

Is

arr[0] -> longitude 0, latitude 90N
arr[1] -> longitude 0, latitude 89N
arr[179] -> longitude 0, latitude 89S
arr[180] -> longitude 0, latitude 90S
arr[181] -> longitude 1E, latitude 90N
arr[65160] -> longitude 1W, latitude 90S

or

arr[0] -> longitude 0, latitude 90S
arr[1] -> longitude 0, latitude 89S
arr[179] -> longitude 0, latitude 89N
arr[180] -> longitude 1, latitude 90N
arr[181] -> longitude 1E, latitude 90S
arr[65160] -> longitude 1W, latitude 90N

or is it something completely different?

Thanks in advance.

Sincerely,

Pelin Bali

WeatherPredict Consulting, Inc.
3200 Atlantic Avenue, Suite 114
Raleigh, NC 27604

Phone (Direct): 919-256-8833
Phone (Main)  : 919-876-3633
Fax           : 919-876-4469

"Imagination will often carry us to worlds that never were.
But without it we go nowhere." - Carl Sagan (Cosmos - 1980)



  • 2008 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the decoders archives: