C++ routines for the BYU-MERS "SIR" image format The BYU-MERS "sir" image format was developed by the Brigham Young University (BYU) Microwave Earth Remote Sensing (MERS) research group to store images of the earth along with the information required to earth-locate the image pixels. Note that these routines use the C-standard pixel address from 0 to N-1 rather than the SIR-standard pixel address from 1 to N. Note, however, that (1,1) is in the lower left of the image of a SIR File. For an input location of pixel (1,1) the Lat,Lon values returned by pixtolatlon correspond to the location of the lower-left corner of the (1,1)th pixel. This directory contains several programs which illustrate reading and writing BYU SIR files. The programs include utilities to convert the SIR files into other file formats. Library routines are in lib/ and include libsir.cpp which is the c++ interface to C code in the other files. sir_io.c which has the read/ write routines, sir_geom.c which contains the geometry routines, and sir_ez.c which is an easy interface to the low-level routines in the other two files. The library interfaces are documented in the include files include/sir3.h (for sir_io.c and sir_geom.c), and include/sir_cpp.h and include/libsir.h for the libsir.cpp routines and the c++ interface. Note that since C routines are used for read/write of the SIR files and for the geometric routines, C++ classes were not defined in this code. Instead, the code provides hooks to call the C routines. Programs illustrating of how to call the various routines and to convert SIR files to various other image types are in this directory. Given an input SIR file, the program sirlocmap creates SIR images of the latitude and longitudue values of the SIR file. If you have any questions, please contact me. ============================================================================== Dr. David G. Long long@ee.byu.edu Director, BYU Center for Remote Sensing http://www.cers.byu.edu/ Professor, Electrical and Computer Eng. Dept. http://www.ee.byu.edu/ Brigham Young University http://www.byu.edu/ 459 Clyde Building voice: 801-422-4383 Provo, Utah 84602 fax: 801-422-0201 ============================================================================== Code is SIR header version 3.0 compliant. Last revised: 16 Apr 2003 DGL (c) 2003 BYU MERS