MATLAB utilities 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. Files in this directory are useful for reading SIR files into matlab and locating pixels. Use loadsir.m to load the file into memory. Main routines: (version 2.0 SIR format) loadsir.m loads image and header information into matlab printsirhead.m prints out the header information from loadsir pix2latlon.m given a pixel location, compute lat and lon latlon2pix.m compute pixel location given lat and lon writesir.m writes sir format file showsir.m display image read using loadsir viewsir.m interactive display of SIR file Support routines: easegrid.m forward EASE grid transformation ieasegrid.m inverse EASE grid transformation ease2grid.m forward EASE2 grid transformation ieasegrid.m inverse EASE2 grid transformation ilambert1.m inverse Lambert grid transformation ipolster.m inverse polar stereographic grid transformation lambert1.m forward Lambert grid transformation polster.m forward polar stereographic grid transformation f2ipix.m quantize floating point values to integer pixel address sirlex.m convert i,j pixel address to linear index isirlex.m convert linear index to i,j pixel address Other files: Contents.m Matlab help file readme.txt this file green.sir small sample sir file scaleimage.m utility to scale image for display showsir.m simplified display routine for sir image display_head.m display name/values of SIR file header variables ease2_check.m check EASE2 projection code example_ease2grid.m illustrate EASE2 projection transformations loadpartsir.m load only part of a SIR file projtest.m compare SIR projection computation to proj and gdal scaleimage.m scale image to 0..64 setsirhead.m set SIR header values by name sirheadvalue.m get SIR header values by name sirheadtext.m set text fields of sir header ease2_map_info.m EASE2 grid information (internal) ============================================================================== Dr. David G. Long long@ee.byu.edu Professor voice: (801) 422-4383 Electrical and Computer Engineering Department fax: (801) 422-0201 459 Clyde Building Brigham Young University Provo, Utah 84602 Scatterometer Climate Record Pathfinder (SCP) http://www.scp.byu.edu ============================================================================== Last revised: 6 Aug 2017 DGL (c) 1997, 2017 BYU MERS