Skip Navigation Links www.nws.noaa.gov 
NOAA logo - Click to go to the NOAA home page National Weather Service   NWS logo - Click to go to the NWS home page
Climate Prediction Center
 
 

 
About Us
   Our Mission
   Who We Are

Contact Us
   CPC Information
   CPC Web Team

 
HOME > Monitoring_and_Data > Oceanic and Atmospheric Data > Reanalysis: Atmospheric Data > wgrib2-ll2ij
 

wgrib2: -ll2ij

Introduction

The -ll2ij and -ll2ij options are in alpha status.

The -lon option uses a brute-force method to find the closest grid point to a specified latitude and longitude. It finds the minimum distance to each grid point. This slow procedure is more-or-less necessary when your geolocation routines can transfrom from (X,Y) -> (lon, lat) but not (lon, lat) -> (X, Y). The gctpc/Proj4 geolocation libraries have both the forward and inverse transformation so improved geolocation routines can be added to wgrib2 such as a fast -lon option and a bilinear interpolation option.

Some grids only have an (i,j) -> (lon,lat) transformation. (I.e., find that lat-lon of the grid points.) Examples include: staggered grids, thinned Gaussian grids and irregular grids.

The -ll2ij option takes a given latitude and longitude, finds the grid point that is closest to that specified latitude and longitude and prints out the ix and iy of the grid point. The -ll2i option uses the gctpc library and only supports a grids supported by gctpc.

See also: -ijlat, -ll2i


NOAA/ National Weather Service
National Centers for Environmental Prediction
Climate Prediction Center
5830 University Research Court
College Park, Maryland 20740
Climate Prediction Center Web Team
Page last modified: Jan 20, 2016
Disclaimer Privacy Policy