資源簡介
該文件夾包括了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?...\n“?out_hdfname
????????in_hdfname);
????/*?Open?the?HDF?file?for?reading?*/
????sd_id?=?SDstart
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????12110??2010-12-06?21:07??MODIS?tool\MRTSwath_download_Win\install.bat
?????文件????3690029??2010-12-06?21:07??MODIS?tool\MRTSwath_download_Win\MRTSwath_Win.zip
?????文件??????51200??2010-12-06?21:07??MODIS?tool\MRTSwath_download_Win\reg_set.exe
?????文件?????167936??2010-12-06?21:07??MODIS?tool\MRTSwath_download_Win\unzip.exe
?????文件??????11257??2011-04-06?21:35??MODIS?tool\MRT_download_Win\mrt_install.bat
?????文件??????37303??2011-04-06?21:35??MODIS?tool\MRT_download_Win\MRT_Win\append_me
?????文件???????2252??2011-04-06?21:35??MODIS?tool\MRT_download_Win\MRT_Win\append_me
?????文件???????1167??2011-04-06?21:35??MODIS?tool\MRT_download_Win\MRT_Win\append_me
?????文件???????1677??2011-04-06?21:35??MODIS?tool\MRT_download_Win\MRT_Win\bin\abc.hdr
?????文件????????450??2011-04-06?21:35??MODIS?tool\MRT_download_Win\MRT_Win\bin\abc.prm
?????文件?????459264??2011-04-06?21:35??MODIS?tool\MRT_download_Win\MRT_Win\bin\append_me
?????文件??????65536??2011-04-06?21:35??MODIS?tool\MRT_download_Win\MRT_Win\bin\cathead.cat256.dat
?????文件?????262144??2011-04-06?21:35??MODIS?tool\MRT_download_Win\MRT_Win\bin\cathead.cat512.dat
?????文件????????701??2011-04-06?21:35??MODIS?tool\MRT_download_Win\MRT_Win\bin\cathead.hdr
?????文件??????65536??2011-04-06?21:35??MODIS?tool\MRT_download_Win\MRT_Win\bin\cathead.head256.dat
?????文件?????262144??2011-04-06?21:35??MODIS?tool\MRT_download_Win\MRT_Win\bin\cathead.head512.dat
?????文件??????14820??2011-04-06?21:35??MODIS?tool\MRT_download_Win\MRT_Win\bin\cathead.met
?????文件????????525??2011-04-06?21:35??MODIS?tool\MRT_download_Win\MRT_Win\bin\cathead.prm
?????文件?????451072??2011-04-06?21:35??MODIS?tool\MRT_download_Win\MRT_Win\bin\dumpme
?????文件??????60416??2011-04-06?21:35??MODIS?tool\MRT_download_Win\MRT_Win\bin\fcgtiff.exe
?????文件?????506880??2011-04-06?21:35??MODIS?tool\MRT_download_Win\MRT_Win\bin\gtiff_composite.exe
?????文件?????887808??2011-04-06?21:35??MODIS?tool\MRT_download_Win\MRT_Win\bin\hdf2rb.exe
?????文件?????571904??2011-04-06?21:35??MODIS?tool\MRT_download_Win\MRT_Win\bin\hdflist.exe
?????文件????????839??2011-04-06?21:35??MODIS?tool\MRT_download_Win\MRT_Win\bin\mod09.prm
?????文件??????14821??2011-04-06?21:35??MODIS?tool\MRT_download_Win\MRT_Win\bin\mod09ghk.met
?????文件???????3774??2011-04-06?21:35??MODIS?tool\MRT_download_Win\MRT_Win\bin\ModisTool.ICO
?????文件?????140175??2011-04-06?21:35??MODIS?tool\MRT_download_Win\MRT_Win\bin\ModisTool.jar
?????文件??????27050??2011-04-06?21:35??MODIS?tool\MRT_download_Win\MRT_Win\bin\MRTBatch.jar
?????文件????1026560??2011-04-06?21:35??MODIS?tool\MRT_download_Win\MRT_Win\bin\mrtmosaic.exe
?????文件????1084416??2011-04-06?21:35??MODIS?tool\MRT_download_Win\MRT_Win\bin\resample.exe
............此處省略359個文件信息
評論
共有 條評論