modis tool


该文件夹包括了MODIS数据处理的官方软件和文档说明,是遥感数据处理的秘籍
资源截图
代码片段和文件信息
/************************************************************************

FILE: append_meta.c

PURPOSE:  Read the bounding coordinates and tile values from one HDF-EOS
          file and append to the second HDF-EOS file.

HISTORY:
Version    Date     Programmer      Code     Reason
-------    ----     ----------      ----     ------
           04/04    Gail Schmidt             Original development

HARDWARE AND/OR SOFTWARE LIMITATIONS:
    None

NOTES:   This program is an adaptation of metadmp.c developed by Doug
Ilg (Doug.Ilg@gsfc.nasa.gov).

*************************************************************************/

/*************************************************************************

MODULE: append_meta

PURPOSE: 
    This module appends the bounding coordinates and tile values from the
    input HDF-EOS file to the output HDF-EOS file.

RETURN VALUE:
Type = int
Value     Description
----- -----------
  0 Returns MRT_NO_ERROR if the metadata appending operation was
                successful.  Error codes found in mrt_error.c and mrt_error.h.
-13             Returns ERROR_GENERAL for general usage error.
-14 Returns ERROR_OPEN_IMAGE_READ if the HDF file can‘t
    be opened for reading.
-15 Returns ERROR_READ_IMAGE if the HDF file can‘t
    be read from.
-16 Returns ERROR_OPEN_IMAGE_WRITE if the HDF file can‘t
    be opened for writing.
-17 Returns ERROR_WRITE_IMAGE if the HDF file can‘t
    be written to.

HISTORY:
Version    Date     Programmer      Code     Reason
-------    ----     ----------      ----     ------
           04/04    Gail Schmidt             Original development using
                                             Doug Ilg‘s metadmp.c program.

NOTES:

**************************************************************************/

#include “append_meta.h“

int main (int argc char *argv[])
{
    char in_hdfname[256];        /* input HDF filename of file to copy */
    char out_hdfname[256];       /* input HDF filename of file to append */
    int32 sd_id;                 /* holds the id# for the HDF file */ 
    int all_coords_present;      /* were all bounding coordinates present? */
    char nboundcoord[256];       /* north bounding coord */
    char sboundcoord[256];       /* south bounding coord */
    char eboundcoord[256];       /* east bounding coord */
    char wboundcoord[256];       /* west bounding coord */
    char htile[256];             /* horizontal tile value */
    char vtile[256];             /* vertical tile value */

    /* Check usage */
    if (argc != 3)
    {
        Usage ();
        return (ERROR_GENERAL);
    }

    /* Get the first argument which is the input HDF filename for copying */
    strcpy (in_hdfname argv[1]);

    /* Get the second argument which is the HDF filename for appending */
    strcpy (out_hdfname argv[2]);

    fprintf (stdout “Appending meta to %s from %s ...
“ out_hdfname
        in_hdfname);

    /* Open the HDF file for reading */
    sd_id = SDstart

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      12110  2010-12-06 21:07  MODIS toolMRTSwath_download_Wininstall.bat

     文件    3690029  2010-12-06 21:07  MODIS toolMRTSwath_download_WinMRTSwath_Win.zip

     文件      51200  2010-12-06 21:07  MODIS toolMRTSwath_download_Win
eg_set.exe

     文件     167936  2010-12-06 21:07  MODIS toolMRTSwath_download_Winunzip.exe

     文件      11257  2011-04-06 21:35  MODIS toolMRT_download_Winmrt_install.bat

     文件      37303  2011-04-06 21:35  MODIS toolMRT_download_WinMRT_Winappend_metaappend_meta.c

     文件       2252  2011-04-06 21:35  MODIS toolMRT_download_WinMRT_Winappend_metaappend_meta.h

     文件       1167  2011-04-06 21:35  MODIS toolMRT_download_WinMRT_Winappend_metaMakefile

     文件       1677  2011-04-06 21:35  MODIS toolMRT_download_WinMRT_Wininabc.hdr

     文件        450  2011-04-06 21:35  MODIS toolMRT_download_WinMRT_Wininabc.prm

     文件     459264  2011-04-06 21:35  MODIS toolMRT_download_WinMRT_Wininappend_meta.exe

     文件      65536  2011-04-06 21:35  MODIS toolMRT_download_WinMRT_Winincathead.cat256.dat

     文件     262144  2011-04-06 21:35  MODIS toolMRT_download_WinMRT_Winincathead.cat512.dat

     文件        701  2011-04-06 21:35  MODIS toolMRT_download_WinMRT_Winincathead.hdr

     文件      65536  2011-04-06 21:35  MODIS toolMRT_download_WinMRT_Winincathead.head256.dat

     文件     262144  2011-04-06 21:35  MODIS toolMRT_download_WinMRT_Winincathead.head512.dat

     文件      14820  2011-04-06 21:35  MODIS toolMRT_download_WinMRT_Winincathead.met

     文件        525  2011-04-06 21:35  MODIS toolMRT_download_WinMRT_Winincathead.prm

     文件     451072  2011-04-06 21:35  MODIS toolMRT_download_WinMRT_Winindumpmeta.exe

     文件      60416  2011-04-06 21:35  MODIS toolMRT_download_WinMRT_Wininfcgtiff.exe

     文件     506880  2011-04-06 21:35  MODIS toolMRT_download_WinMRT_Winingtiff_composite.exe

     文件     887808  2011-04-06 21:35  MODIS toolMRT_download_WinMRT_Wininhdf2rb.exe

     文件     571904  2011-04-06 21:35  MODIS toolMRT_download_WinMRT_Wininhdflist.exe

     文件        839  2011-04-06 21:35  MODIS toolMRT_download_WinMRT_Wininmod09.prm

     文件      14821  2011-04-06 21:35  MODIS toolMRT_download_WinMRT_Wininmod09ghk.met

     文件       3774  2011-04-06 21:35  MODIS toolMRT_download_WinMRT_WininModisTool.ICO

     文件     140175  2011-04-06 21:35  MODIS toolMRT_download_WinMRT_WininModisTool.jar

     文件      27050  2011-04-06 21:35  MODIS toolMRT_download_WinMRT_WininMRTBatch.jar

     文件    1026560  2011-04-06 21:35  MODIS toolMRT_download_WinMRT_Wininmrtmosaic.exe

     文件    1084416  2011-04-06 21:35  MODIS toolMRT_download_WinMRT_Winin
esample.exe

............此处省略359个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)