forked from simepar/rsl_to_hdf5gamic
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
MNETO
committed
Jun 11, 2014
0 parents
commit ac75bd9
Showing
7 changed files
with
1,477 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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* | ||
|
Oops, something went wrong.