home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / xloadimg.zip / xloadimage.4.1 / mcidas.h < prev    next >
C/C++ Source or Header  |  1993-10-21  |  2KB  |  75 lines

  1. /* mcidas.h
  2.  */
  3.  
  4. /* Argh, looks like the numbers are in vax byte order */
  5.  
  6. #define TYPELEN        4 /* Short strings used as identifiers */
  7. #define COMMENTLEN    32    /* longer strings */
  8. /*
  9.  * McIdas AREA DIRECTORY, based on documentation dated 5/87 by R. Dengal
  10.  */
  11. struct area_dir {
  12. /*  1 */ unsigned long    status ;
  13. /*  2 */ unsigned long    type ;
  14. /*  3 */ unsigned long    satid ;
  15. /*  4 */ unsigned long    ndate ; /* YYDDD */
  16. /*  5 */ unsigned long    ntime ; /* HHMMSS */
  17. /*  6 */ unsigned long    lcor ;
  18. /*  7 */ unsigned long    ecor ;
  19. /*  8 */ unsigned long    zcor ;
  20. /*  9 */ unsigned long    lsiz ;
  21. /* 10 */ unsigned long    esiz ;
  22. /* 11 */ unsigned long    zsiz ;
  23. /* 12 */ unsigned long    lres ;
  24. /* 13 */ unsigned long    eres ;
  25. /* 14 */ unsigned long    bands ;
  26. /* 15 */ unsigned long    yzprefix ;
  27. /* 16 */ unsigned long    projnum ;
  28. /* 17 */ unsigned long    cdate ;
  29. /* 18 */ unsigned long    ctime ;
  30. /* 19 */ unsigned long    filtmap ;
  31. /* 20 */ unsigned long    imageid ;
  32. /* 21 */ unsigned long    resvid[4] ;
  33. #define AREA_COMMENTS 24
  34. /* 25 */ char    comments[COMMENTLEN] ;
  35. #define AREA_CALKEY 32
  36. /* 33 */ unsigned long    calkey ;
  37. /* 34 */ unsigned long    navkey ;
  38. /* 35 */ unsigned long    navkey2 ;
  39. /* 36 */ unsigned long    lprefix ;
  40. /* 37 */ unsigned long    pdl[8] ;
  41. /* 45 */ unsigned long    band8 ;
  42. /* 46 */ unsigned long idate ;
  43. /* 47 */ unsigned long itime ;
  44. /* 48 */ unsigned long    startscan ;
  45. /* 49 */ unsigned long    doclen ;
  46. /* 50 */ unsigned long    callen ;
  47. /* 51 */ unsigned long    levlen ;
  48. #define AREA_STYPE 51
  49. /* 52 */ char    stype[TYPELEN] ;
  50. /* 53 */ char    ctype[TYPELEN] ;
  51. /* 54 */ unsigned long    reserved[11] ;
  52. } ;
  53.  
  54. /*
  55.  * McIdas NAVIGATION CODICIL, based on documentation dated 5/87 by D. Santek
  56.  *  Only type 'GOES' used here currently
  57.  */
  58. struct navigation {
  59. /*   1 */ char    type[TYPELEN] ;
  60. #define NAV_DATA 1
  61. /*   2 */ unsigned long iddate ;
  62. /*   3 */ unsigned long itime ;
  63. /*   4 */ unsigned long fill[37] ; /* expand this later, if needed */
  64. #define NAV_RESERVED 40
  65. /*  41 */ unsigned long    reserved[80] ;
  66. /* 121 */ char    memo[COMMENTLEN] ;
  67. } ;
  68.  
  69. struct mc_area {
  70.     struct area_dir *dir ;
  71.     struct navigation *nav ;
  72.     unsigned char *image ;
  73.     unsigned char *priv ; /* conveninence pointer */
  74. } ;
  75.