Skip to content

Commit

Permalink
Convert RSL to HDF5 Gamic
Browse files Browse the repository at this point in the history
  • Loading branch information
MNETO committed Jun 11, 2014
0 parents commit ac75bd9
Show file tree
Hide file tree
Showing 7 changed files with 1,477 additions and 0 deletions.
674 changes: 674 additions & 0 deletions LICENSE.txt

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
RSLPATH = /usr/local/trmm
INCDIR = -I$(RSLPATH)/include
LIBFLAGS = -L/usr/lib -L$(RSLPATH)/lib -Wl,-rpath=$(RSLPATH)/lib -lm

CC = gcc

CFLAGS = -g -I. $(INCDIR) -I..

all:
$(CC) -fPIC rsl_to_hdf5gamic.c -c $(CFLAGS) $(LIBFLAGS)
$(CC) -shared -o librsl_to_hdf5gamic.so rsl_to_hdf5gamic.o
46 changes: 46 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
![Alt text](simepar.png)


# WRITE RSL/TRMM RADAR TO HDF5

(C) Copyleft Sistema Meteorológico Simepar (SIMEPAR) See LICENSE.txt for more details

In this folder you will find a code in C to write an [RSL/TRMM](http://trmm-fc.gsfc.nasa.gov/trmm_gv/software/rsl/) radar extruture into an [HDF5](http://www.hdfgroup.org/HDF5) file following the GAMIC convention

## DEPENDENCIES

In order to compile this programs you will need already installed:

* an C compiler, preferentially GCC
* RSL/TRMM version 1.41 or later: [http://trmm-fc.gsfc.nasa.gov/trmm_gv/software/rsl/](http://trmm-fc.gsfc.nasa.gov/trmm_gv/software/rsl/)
* HDF5 C library version 1.8 or later: [http://www.hdfgroup.org/HDF5/release/obtain5.html#obtain](http://www.hdfgroup.org/HDF5/release/obtain5.html#obtain)

## BUILDING


Download the files in this folder to your machine.

You may use this code direct in our aplication or create a dynamic library as follow:

First of all some times RSL doesn't install itself in standard locations, if this is your case update the first line of MAKEFILE to the instalation place of RSL

In a terminal at the downloaded folder execute **make**. This will create dynamic library *librsl_to_hdf5gamic.so*, move this file to the standard library location of your system as well as the file *rsl_to_hdf5gamic.h*, or link direct to it when compiling your aplication.

## USING

When writing your aplication include the header

#include <rsl_to_hdf5gamic.h>

and call

radar_to_hdf5gamic(Radar* radar, char *outfile)

to write an HDF5 file

When compiling your aplication:

- If you have the dynamic library, link to it with the flag *-lrsl_to_hdf5gamic*. You must also link RSL and HDF5 with *-lrsl -lhdf5*

- If want to use the pure code add the file *rsl_to_hdf5gamic.c* in your compilation line and link to RSL and HDF5 with *-lrsl -lhdf5*

Loading

0 comments on commit ac75bd9

Please sign in to comment.