[Tcl-nap-users] write hdf
Brought to you by:
dav480,
peter_turner
From: salah j. <s_...@ya...> - 2006-03-09 19:01:31
|
Hi guys I have posted a message with the same subject and i want to explain exactly what i am doing. I did the test below which reads the data from one HDF image file and write it to another HDF image file. a new image is generated just only one difference the 3-dimensional Scientific Dataset have a general attribute which is Fillvalue. i am using another library which is gdal also i am using mapserver to display the images using the web. the gdal library compiled to support HDF files, the library that i used to do that is HDF41r5. i was able to see the origenal image which is "green band" at the same time i was not able to display the test images. as i said in the previous post that the fillvalue is the reason, so i need to away to deal with this issue . is HDF41r5 is the reason ..., or can i omit this tag or not even write it at the first place. set green [nap_get hdf green.hdf "3-dimensional Scientific Dataset"] set TM [nap_get hdf green.hdf :TransformationMatrix] set PR [nap_get hdf green.hdf :Projection] set AP [nap_get hdf green.hdf :AREA_OR_POINT] set TIFFS [nap_get hdf green.hdf :TIFFTAG_SOFTWARE] set TIFFX [nap_get hdf green.hdf :TIFFTAG_XRESOLUTION] set TIFFY [nap_get hdf green.hdf :TIFFTAG_YRESOLUTION] set TIFFU [nap_get hdf green.hdf :TIFFTAG_RESOLUTIONUNIT] $green hdf test.hdf "3-dimensional Scientific Dataset" $TM hdf test.hdf ":TransformationMatrix" $PR hdf test.hdf ":Projection" $AP hdf test.hdf ":AREA_OR_POINT" $TIFFS hdf test.hdf ":TIFFTAG_SOFTWARE" $TIFFX hdf test.hdf ":TIFFTAG_XRESOLUTION" $TIFFY hdf test.hdf ":TIFFTAG_YRESOLUTION" $TIFFU hdf test.hdf ":TIFFTAG_RESOLUTIONUNIT" --------------------------------- Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. |