TABLE OF CONTENTS


MLT_RSS/byte_swapping.f90 [ Methods ]

[ Top ] [ Methods ]

NAME

    byte_swapping

PURPOSE

    module containing a number of routines that perform byte swapping

DESCRIPTION

    module containing a number of routines that perform byte swapping.  The function "byte_swap" is overloaded
    and calls the appropriate of the 4 routines below to perfrom a big endian to little endian byte swap.
    
  ROUTINES
      real(4) function real_4_byte_swap(x)
      real(8) function real_8_byte_swap(x)
      integer(4) function int_4_byte_swap(x)
      integer(2) function int_2_byte_swap(x)

AUTHOR

    Carl Mears, Remote Sensing Systems

COPYRIGHT

   THIS SOFTWARE AND ITS DOCUMENTATION ARE COPYRIGHT 2012 REMOTE SENSING SYSTEMS.  
   THEY ARE PROVIDED FOR INFORMATIONAL AND ALGORITHM VERIFICATION PURPOSES ONLY 
   AND MAY NOT BE USED IN WHOLE OR IN PART FOR ANY OTHER PURPOSE WITHOUT WRITTEN
   PERMISSION FROM REMOTE SENSING SYSTEMS.  THEY ARE FURNISHED "AS IS." THE 
   AUTHORS, THE UNITED STATES GOVERNMENT, ITS INSTRUMENTALITIES, OFFICERS, EMPLOYEES, 
   AND AGENTS MAKE NO WARRANTY, EXPRESS OR IMPLIED, AS TO THE USEFULNESS OF THE 
   SOFTWARE AND DOCUMENTATION FOR ANY PURPOSE. THEY ASSUME NO RESPONSIBILITY (1) FOR
   THE USE OF THE SOFTWARE AND DOCUMENTATION; OR (2) TO PROVIDE TECHNICAL SUPPORT 
   TO USERS.

HISTORY

    2/21/2012 Initial Version prepared for NCDC

USAGE

    use byte_swap
    j = byte_swap(i)