Dear Zablone, Rafael and other kind researchers,<br> I tried to follow your advice and tried to use the lats4d command but error message occurred "Command not found". Then I started to install different libraries from <a href="http://iges.org/grads/gadoc/supplibs.html">http://iges.org/grads/gadoc/supplibs.html</a> but when i installed the zlib by following the steps:<br>
cd $HOME/supplibs/src/<br>
tar xvfz ./tarfiles/zlib-1.2.3.tar.gz <br>
ln -sf zlib-1.2.3 zlib<br>
cd zlib<br>
./configure --prefix=$HOME/supplibs/src/zlib<br>
make<br>
make install<br>
cp ./lib/libz.a $HOME/supplibs/lib<br>
mkdir $HOME/supplibs/include/zlib<br>
cp ./include/zlib.h $HOME/supplibs/include/zlib<br><br>following output could be seen on my terminal of the linux fedora having version 2.0.a9 of grads after running the above mentioned commands:<br>[Hasan@localhost zlib]$ make<br>
gcc -O3 -DUSE_MMAP -c -o example.o example.c<br>gcc -O3 -DUSE_MMAP -c -o adler32.o adler32.c<br>gcc -O3 -DUSE_MMAP -c -o compress.o compress.c<br>gcc -O3 -DUSE_MMAP -c -o crc32.o crc32.c<br>gcc -O3 -DUSE_MMAP -c -o gzio.o gzio.c<br>
gcc -O3 -DUSE_MMAP -c -o uncompr.o uncompr.c<br>gcc -O3 -DUSE_MMAP -c -o deflate.o deflate.c<br>gcc -O3 -DUSE_MMAP -c -o trees.o trees.c<br>gcc -O3 -DUSE_MMAP -c -o zutil.o zutil.c<br>gcc -O3 -DUSE_MMAP -c -o inflate.o inflate.c<br>
gcc -O3 -DUSE_MMAP -c -o infback.o infback.c<br>gcc -O3 -DUSE_MMAP -c -o inftrees.o inftrees.c<br>gcc -O3 -DUSE_MMAP -c -o inffast.o inffast.c<br>ar rc libz.a adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o zutil.o inflate.o infback.o inftrees.o inffast.o <br>
gcc -O3 -DUSE_MMAP -o example example.o -L. libz.a<br>gcc -O3 -DUSE_MMAP -c -o minigzip.o minigzip.c<br>gcc -O3 -DUSE_MMAP -o minigzip minigzip.o -L. libz.a<br>[Hasan@localhost zlib]$ make install<br>cp zlib.h zconf.h /home/Hasan/supplibs/src/zlib/include<br>
chmod 644 /home/Hasan/supplibs/src/zlib/include/zlib.h /home/Hasan/supplibs/src/zlib/include/zconf.h<br>cp libz.a /home/Hasan/supplibs/src/zlib/lib<br>cd /home/Hasan/supplibs/src/zlib/lib; chmod 755 libz.a<br>cd /home/Hasan/supplibs/src/zlib/lib; if test -f libz.so.1.2.3; then \<br>
rm -f libz.so libz.so.1; \<br> ln -s libz.so.1.2.3 libz.so; \<br> ln -s libz.so.1.2.3 libz.so.1; \<br> (ldconfig || true) >/dev/null 2>&1; \<br> fi<br>cp zlib.3 /home/Hasan/supplibs/src/zlib/share/man/man3<br>
chmod 644 /home/Hasan/supplibs/src/zlib/share/man/man3/zlib.3<br>[Hasan@localhost zlib]$ cp ./lib/libz.a $HOME/supplibs/lib<br>[Hasan@localhost zlib]$ mkdir $HOME/supplibs/include/zlib<br>[Hasan@localhost zlib]$ cp ./include/zlib.h $HOME/supplibs/include/zlib<br>
<br><br>After it, I tried to install libpng by using the following commands:<br>cd $HOME/supplibs/src/<br>
tar xvfz tarfiles/libpng-1.2.18.tar.gz<br>
ln -sf libpng-1.2.18 libpng<br>
cd libpng<br>
./configure --disable-shared
--prefix=$HOME/supplibs/src/libpng<br>
make<br>
make install<br>
cp ./lib/libpng12.a $HOME/supplibs/lib<br>
mkdir $HOME/supplibs/include/libpng12<br>
cp ./include/libpng12/*.h $HOME/supplibs/include/libpng12<br><br>But after executing the configure command, i received following message that zlib had not been installed:<br><br>[Hasan@localhost libpng]$ ./configure --disable-shared --prefix=$HOME/supplibs/src/libpng<br>
checking for a BSD-compatible install... /usr/bin/install -c<br>checking whether build environment is sane... yes<br>checking for gawk... gawk<br>checking whether make sets $(MAKE)... yes<br>checking whether to enable maintainer-specific portions of Makefiles... no<br>
checking for gcc... gcc<br>checking for C compiler default output file name... a.out<br>checking whether the C compiler works... yes<br>checking whether we are cross compiling... no<br>checking for suffix of executables... <br>
checking for suffix of object files... o<br>checking whether we are using the GNU C compiler... yes<br>checking whether gcc accepts -g... yes<br>checking for gcc option to accept ISO C89... none needed<br>checking for style of include used by make... GNU<br>
checking dependency style of gcc... gcc3<br>checking for a sed that does not truncate output... /bin/sed<br>checking build system type... i686-pc-linux-gnu<br>checking host system type... i686-pc-linux-gnu<br>checking for grep that handles long lines and -e... /bin/grep<br>
checking for egrep... /bin/grep -E<br>checking for ld used by gcc... /usr/bin/ld<br>checking if the linker (/usr/bin/ld) is GNU ld... yes<br>checking how to run the C preprocessor... gcc -E<br>checking for sed... /bin/sed<br>
checking for a BSD-compatible install... /usr/bin/install -c<br>checking whether ln -s works... yes<br>checking whether make sets $(MAKE)... (cached) yes<br>checking for /usr/bin/ld option to reload object files... -r<br>
checking for BSD-compatible nm... /usr/bin/nm -B<br>checking how to recognise dependent libraries... pass_all<br>checking for ANSI C header files... yes<br>checking for sys/types.h... yes<br>checking for sys/stat.h... yes<br>
checking for stdlib.h... yes<br>checking for string.h... yes<br>checking for memory.h... yes<br>checking for strings.h... yes<br>checking for inttypes.h... yes<br>checking for stdint.h... yes<br>checking for unistd.h... yes<br>
checking dlfcn.h usability... yes<br>checking dlfcn.h presence... yes<br>checking for dlfcn.h... yes<br>checking for g++... g++<br>checking whether we are using the GNU C++ compiler... yes<br>checking whether g++ accepts -g... yes<br>
checking dependency style of g++... gcc3<br>checking how to run the C++ preprocessor... g++ -E<br>checking for g77... g77<br>checking whether we are using the GNU Fortran 77 compiler... yes<br>checking whether g77 accepts -g... yes<br>
checking the maximum length of command line arguments... 32768<br>checking command to parse /usr/bin/nm -B output from gcc object... ok<br>checking for objdir... .libs<br>checking for ar... ar<br>checking for ranlib... ranlib<br>
checking for strip... strip<br>checking if gcc supports -fno-rtti -fno-exceptions... no<br>checking for gcc option to produce PIC... -fPIC<br>checking if gcc PIC flag -fPIC works... yes<br>checking if gcc static flag -static works... no<br>
checking if gcc supports -c -o file.o... yes<br>checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes<br>checking dynamic linker characteristics... GNU/Linux ld.so<br>checking how to hardcode library paths into programs... immediate<br>
checking whether stripping libraries is possible... yes<br>checking if libtool supports shared libraries... yes<br>checking whether to build shared libraries... no<br>checking whether to build static libraries... yes<br>
configure: creating libtool<br>
appending configuration tag "CXX" to libtool<br>checking for ld used by g++... /usr/bin/ld<br>checking if the linker (/usr/bin/ld) is GNU ld... yes<br>checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes<br>
checking for g++ option to produce PIC... -fPIC<br>checking if g++ PIC flag -fPIC works... yes<br>checking if g++ static flag -static works... no<br>checking if g++ supports -c -o file.o... yes<br>checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes<br>
checking dynamic linker characteristics... GNU/Linux ld.so<br>checking how to hardcode library paths into programs... immediate<br>appending configuration tag "F77" to libtool<br>checking if libtool supports shared libraries... yes<br>
checking whether to build shared libraries... no<br>checking whether to build static libraries... yes<br>checking for g77 option to produce PIC... -fPIC<br>checking if g77 PIC flag -fPIC works... yes<br>checking if g77 static flag -static works... no<br>
checking if g77 supports -c -o file.o... yes<br>checking whether the g77 linker (/usr/bin/ld) supports shared libraries... yes<br>checking dynamic linker characteristics... GNU/Linux ld.so<br>checking how to hardcode library paths into programs... immediate<br>
checking for ANSI C header files... (cached) yes<br>checking malloc.h usability... yes<br>checking malloc.h presence... yes<br>checking for malloc.h... yes<br>checking for stdlib.h... (cached) yes<br>checking for string.h... (cached) yes<br>
checking for strings.h... (cached) yes<br>checking for an ANSI C-conforming const... yes<br>checking for size_t... yes<br>checking whether struct tm is in sys/time.h or time.h... time.h<br>checking for working strtod... yes<br>
checking for memset... yes<br>checking for pow... no<br>checking for pow in -lm... yes<br>checking for zlibVersion in -lz... no<br>configure: error: zlib not installed<br>[Hasan@localhost libpng]$ make<br>make: *** No targets specified and no makefile found. Stop.<br>
[Hasan@localhost libpng]$ make install<br>make: *** No rule to make target `install'. Stop.<br><br><br>I am very worried how to proceed now? Could you help me in this regard?<br><br><br><br>==================================================================<br>
<b>Muhammad Hasan Ali Baig,<br></b>
<p style="text-align: left; margin: 0in 0in 0pt;"><font size="3"><b><font face="Times New Roman">Key Laboratory of Meteorological Disaster of Ministry of Education</font><span style="font-family: SimSun;" lang="ZH-CN">,</span><font face="Times New Roman">Nanjing</font><span style="font-size: 14.5pt;"></span></b></font></p>
<p style="text-align: left; margin: 0in 0in 0pt;"><font face="Times New Roman"><font size="3"><b>University of Information Science & Technology<span>, Nanjing 210044, P. R. China</span></b></font></font></p>
<div style="text-align: left; margin: 0in 0in 0pt;"><b><font size="3"><span><font face="Times New Roman">School of Atmospheric Physics</font></span></font></b></div>
<div style="text-align: left; margin: 0in 0in 0pt;"><b><font size="3"><span><font face="Times New Roman">Nanjing University of Information Science & Technology 210044, P. R. China</font></span></font><span style="font-size: 14.5pt;"></span></b></div>
<b>Mobile: +8615251705047<br>==================================================================<br></b><br>
<br><br><div class="gmail_quote">On 12 January 2011 11:12, Zablone Owiti <span dir="ltr"><<a href="mailto:zowiti@ncst.go.ke">zowiti@ncst.go.ke</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
<br>
> Dear Ali,<br>
> You can use the following LATS4D command to convert your Data:<br>
><br>
> lats4d -v -q -i inputfile -o outputfile -format grads_grib<br>
><br>
> Where: inputfile is the name of the name of your hdf file (if it is not<br>
in the Grads default file, then you need to give the path)<br>
> outputfile is the name of the GRIB file that will be created (it<br>
is saved in the default GRADS directory).<br>
><br>
> There are more options you can choose. Note that the option -q above<br>
makes GRADS to quite after running the command.<br>
><br>
> You can get more about LATS4D<br>
here:<a href="http://opengrads.org/doc/scripts/lats4d/" target="_blank">http://opengrads.org/doc/scripts/lats4d/</a><br>
><br>
> Hope this will be of assistance to you.<br>
><br>
> Wish you the best.<br>
><br>
> ----------------------------<br>
><br>
> ZABLONE OWITIy<br>
><br>
> GRADUATE STUDENT<br>
><br>
> College of Atmospheric Science<br>
><br>
> Nanjing University of Information, Science and Technology<br>
><br>
> Add: 219 Ning Liu Rd, Nanjing, Jiangsu, 21004, P.R. China<br>
><br>
> Tel: +86-25-58731402<br>
><br>
> Fax: +86-25-58731456<br>
> Mob. 15077895632<br>
> Website: <a href="http://www.nuist.edu.cn" target="_blank">www.nuist.edu.cn</a><br>
><br>
> ====================================================<br>
><br>
> DO NOT PRINT THIS E-MAIL UNLESS NECESSARY. THE ENVIRONMENT CONCERNS US<br>
ALL.<br>
><br>
> -------- Original Message --------<br>
> > From: "muhammad hasan ali baig" <<a href="mailto:mhasanbaig@gmail.com">mhasanbaig@gmail.com</a>><br>
> > Sent: Wednesday, January 12, 2011 1:32 AM<br>
> > To: <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
> > Subject: [gradsusr] How to read HDF5 data by using the latest version<br>
of GrADS?<br>
> ><br>
> > Hi dear all!<br>
> I am using the latest version of GrADS. I tried to use it<br>
in<br>
> converting SST data of Chinese satellite FY2C which is available in HDF5<br>
> format into grib2 format. But unfortunately, it couldnt read the HDF5<br>
> format. What should i do?<br>
> ==================================================================<br>
> *Muhammad Hasan Ali Baig,<br>
> *<br>
><br>
> *Key Laboratory of Meteorological Disaster of Ministry of<br>
Education,Nanjing*<br>
><br>
> *University of Information Science & Technology, Nanjing 210044, P. R.<br>
China<br>
> *<br>
> *School of Atmospheric Physics*<br>
> *Nanjing University of Information Science & Technology 210044, P. R.<br>
China*<br>
> *Mobile: +8615251705047<br>
> ==================================================================<br>
> *<br>
> _______________________________________________<br>
> > gradsusr mailing list<br>
> > <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
> > <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br>
<br>
</blockquote></div><br>