[GRASS-SVN] r41680 - in grass-addons/gipe: . i.dn2potrad.l5
i.dn2potrad.l7 i.dn2ref.ast i.eb.deltat i.eb.disp i.eb.h0
i.eb.h_SEBAL95 i.eb.h_iter i.eb.molength i.eb.netrad i.eb.psi
i.eb.rah i.eb.rohair i.eb.ublend i.eb.ustar i.eb.wetdrypix
i.eb.z0m i.eb.z0m0 i.evapo.PT i.evapo.TSA i.evapo.potrad
i.evapo.senay i.lmf i.sattime i.vi.grid i.vi.grid/client
i.vi.grid/client/r.vi.grid i.vi.grid/server i.vi.mpi i.water
i.wi m.gem python r.evapo.MH r.evapo.PM r.gaswap.serial
r.gaswap.serial/lab r.hydro.CASC2D r.out.vic r.soiltex2prop
r.soilusda2tex screenshots script_examples script_generator
script_generator/test_data
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Apr 3 04:49:02 EDT 2010
Author: hamish
Date: 2010-04-03 04:49:00 -0400 (Sat, 03 Apr 2010)
New Revision: 41680
Added:
grass-addons/gipe/r.gaswap.serial/lab/HFINAL.DAT
Removed:
grass-addons/gipe/r.gaswap.serial/lab/ HFINAL.DAT
grass-addons/gipe/r.hydro.CASC2D/r.hydro.CASC2D.tmp.html
Modified:
grass-addons/gipe/gmmenu.tcl
grass-addons/gipe/i.dn2potrad.l5/
grass-addons/gipe/i.dn2potrad.l5/Makefile
grass-addons/gipe/i.dn2potrad.l5/bb_alb_landsat.c
grass-addons/gipe/i.dn2potrad.l5/date2doy.c
grass-addons/gipe/i.dn2potrad.l5/description.html
grass-addons/gipe/i.dn2potrad.l5/dn2rad_landsat5.c
grass-addons/gipe/i.dn2potrad.l5/emissivity_generic.c
grass-addons/gipe/i.dn2potrad.l5/et_pot_day.c
grass-addons/gipe/i.dn2potrad.l5/l5inread.c
grass-addons/gipe/i.dn2potrad.l5/main.c
grass-addons/gipe/i.dn2potrad.l5/ndvi.c
grass-addons/gipe/i.dn2potrad.l5/r_net_day.c
grass-addons/gipe/i.dn2potrad.l5/rad2ref_landsat5.c
grass-addons/gipe/i.dn2potrad.l5/solar_day.c
grass-addons/gipe/i.dn2potrad.l5/tempk_landsat5.c
grass-addons/gipe/i.dn2potrad.l7/
grass-addons/gipe/i.dn2potrad.l7/Makefile
grass-addons/gipe/i.dn2potrad.l7/bb_alb_landsat.c
grass-addons/gipe/i.dn2potrad.l7/date2doy.c
grass-addons/gipe/i.dn2potrad.l7/description.html
grass-addons/gipe/i.dn2potrad.l7/dn2rad_landsat7.c
grass-addons/gipe/i.dn2potrad.l7/emissivity_generic.c
grass-addons/gipe/i.dn2potrad.l7/et_pot_day.c
grass-addons/gipe/i.dn2potrad.l7/l7inread.c
grass-addons/gipe/i.dn2potrad.l7/main.c
grass-addons/gipe/i.dn2potrad.l7/ndvi.c
grass-addons/gipe/i.dn2potrad.l7/r_net_day.c
grass-addons/gipe/i.dn2potrad.l7/rad2ref_landsat7.c
grass-addons/gipe/i.dn2potrad.l7/solar_day.c
grass-addons/gipe/i.dn2potrad.l7/tempk_landsat7.c
grass-addons/gipe/i.dn2ref.ast/
grass-addons/gipe/i.dn2ref.ast/Makefile
grass-addons/gipe/i.dn2ref.ast/description.html
grass-addons/gipe/i.dn2ref.ast/main.c
grass-addons/gipe/i.dn2ref.ast/rad2ref_aster.c
grass-addons/gipe/i.eb.deltat/
grass-addons/gipe/i.eb.deltat/Makefile
grass-addons/gipe/i.eb.deltat/delta_t.c
grass-addons/gipe/i.eb.deltat/description.html
grass-addons/gipe/i.eb.deltat/main.c
grass-addons/gipe/i.eb.disp/
grass-addons/gipe/i.eb.disp/Makefile
grass-addons/gipe/i.eb.disp/description.html
grass-addons/gipe/i.eb.disp/disp.c
grass-addons/gipe/i.eb.disp/main.c
grass-addons/gipe/i.eb.disp/savi2lai.c
grass-addons/gipe/i.eb.h0/
grass-addons/gipe/i.eb.h0/Makefile
grass-addons/gipe/i.eb.h0/description.html
grass-addons/gipe/i.eb.h0/h0.c
grass-addons/gipe/i.eb.h0/main.c
grass-addons/gipe/i.eb.h_SEBAL95/
grass-addons/gipe/i.eb.h_SEBAL95/Makefile
grass-addons/gipe/i.eb.h_SEBAL95/U_0.c
grass-addons/gipe/i.eb.h_SEBAL95/description.html
grass-addons/gipe/i.eb.h_SEBAL95/dtair.c
grass-addons/gipe/i.eb.h_SEBAL95/dtair_desert.c
grass-addons/gipe/i.eb.h_SEBAL95/functions.h
grass-addons/gipe/i.eb.h_SEBAL95/h1.c
grass-addons/gipe/i.eb.h_SEBAL95/h_0.c
grass-addons/gipe/i.eb.h_SEBAL95/main.c
grass-addons/gipe/i.eb.h_SEBAL95/psi_h.c
grass-addons/gipe/i.eb.h_SEBAL95/psi_m.c
grass-addons/gipe/i.eb.h_SEBAL95/rah1.c
grass-addons/gipe/i.eb.h_SEBAL95/rah_0.c
grass-addons/gipe/i.eb.h_SEBAL95/roh_air.c
grass-addons/gipe/i.eb.h_SEBAL95/roh_air_0.c
grass-addons/gipe/i.eb.h_SEBAL95/sensi_h.c
grass-addons/gipe/i.eb.h_SEBAL95/u_star.c
grass-addons/gipe/i.eb.h_SEBAL95/zom_0.c
grass-addons/gipe/i.eb.h_iter/
grass-addons/gipe/i.eb.h_iter/Makefile
grass-addons/gipe/i.eb.h_iter/description.html
grass-addons/gipe/i.eb.h_iter/fixed_deltat.c
grass-addons/gipe/i.eb.h_iter/h0.c
grass-addons/gipe/i.eb.h_iter/main.c
grass-addons/gipe/i.eb.molength/
grass-addons/gipe/i.eb.molength/Makefile
grass-addons/gipe/i.eb.molength/description.html
grass-addons/gipe/i.eb.molength/h0.c
grass-addons/gipe/i.eb.molength/main.c
grass-addons/gipe/i.eb.molength/mo_length.c
grass-addons/gipe/i.eb.netrad/
grass-addons/gipe/i.eb.netrad/Makefile
grass-addons/gipe/i.eb.netrad/description.html
grass-addons/gipe/i.eb.netrad/main.c
grass-addons/gipe/i.eb.netrad/r_net.c
grass-addons/gipe/i.eb.psi/
grass-addons/gipe/i.eb.psi/Makefile
grass-addons/gipe/i.eb.psi/description.html
grass-addons/gipe/i.eb.psi/main.c
grass-addons/gipe/i.eb.psi/psih.c
grass-addons/gipe/i.eb.psi/psim.c
grass-addons/gipe/i.eb.rah/
grass-addons/gipe/i.eb.rah/Makefile
grass-addons/gipe/i.eb.rah/description.html
grass-addons/gipe/i.eb.rah/main.c
grass-addons/gipe/i.eb.rah/rah.c
grass-addons/gipe/i.eb.rohair/
grass-addons/gipe/i.eb.rohair/Makefile
grass-addons/gipe/i.eb.rohair/description.html
grass-addons/gipe/i.eb.rohair/main.c
grass-addons/gipe/i.eb.rohair/roh_air.c
grass-addons/gipe/i.eb.ublend/
grass-addons/gipe/i.eb.ublend/Makefile
grass-addons/gipe/i.eb.ublend/description.html
grass-addons/gipe/i.eb.ublend/main.c
grass-addons/gipe/i.eb.ublend/ublend.c
grass-addons/gipe/i.eb.ublend/ustar.c
grass-addons/gipe/i.eb.ustar/
grass-addons/gipe/i.eb.ustar/Makefile
grass-addons/gipe/i.eb.ustar/description.html
grass-addons/gipe/i.eb.ustar/main.c
grass-addons/gipe/i.eb.ustar/ustar.c
grass-addons/gipe/i.eb.wetdrypix/
grass-addons/gipe/i.eb.wetdrypix/Makefile
grass-addons/gipe/i.eb.wetdrypix/description.html
grass-addons/gipe/i.eb.wetdrypix/main.c
grass-addons/gipe/i.eb.z0m/
grass-addons/gipe/i.eb.z0m/Makefile
grass-addons/gipe/i.eb.z0m/description.html
grass-addons/gipe/i.eb.z0m/main.c
grass-addons/gipe/i.eb.z0m/z0m.c
grass-addons/gipe/i.eb.z0m0/
grass-addons/gipe/i.eb.z0m0/Makefile
grass-addons/gipe/i.eb.z0m0/description.html
grass-addons/gipe/i.eb.z0m0/main.c
grass-addons/gipe/i.eb.z0m0/zom_0.c
grass-addons/gipe/i.evapo.PT/
grass-addons/gipe/i.evapo.PT/Makefile
grass-addons/gipe/i.evapo.PT/description.html
grass-addons/gipe/i.evapo.PT/main.c
grass-addons/gipe/i.evapo.PT/pt_daily_et.c
grass-addons/gipe/i.evapo.PT/pt_delta.c
grass-addons/gipe/i.evapo.PT/pt_ghamma.c
grass-addons/gipe/i.evapo.TSA/
grass-addons/gipe/i.evapo.TSA/Makefile
grass-addons/gipe/i.evapo.TSA/description.html
grass-addons/gipe/i.evapo.TSA/main.c
grass-addons/gipe/i.evapo.TSA/tsa_daily_et.c
grass-addons/gipe/i.evapo.TSA/tsa_g0g.c
grass-addons/gipe/i.evapo.TSA/tsa_g0v.c
grass-addons/gipe/i.evapo.TSA/tsa_hg.c
grass-addons/gipe/i.evapo.TSA/tsa_hv.c
grass-addons/gipe/i.evapo.TSA/tsa_ra.c
grass-addons/gipe/i.evapo.TSA/tsa_rg.c
grass-addons/gipe/i.evapo.TSA/tsa_rng.c
grass-addons/gipe/i.evapo.TSA/tsa_rnv.c
grass-addons/gipe/i.evapo.TSA/tsa_rv.c
grass-addons/gipe/i.evapo.TSA/tsa_tempkg.c
grass-addons/gipe/i.evapo.TSA/tsa_tempkv.c
grass-addons/gipe/i.evapo.potrad/
grass-addons/gipe/i.evapo.potrad/Makefile
grass-addons/gipe/i.evapo.potrad/description.html
grass-addons/gipe/i.evapo.potrad/et_pot_day.c
grass-addons/gipe/i.evapo.potrad/main.c
grass-addons/gipe/i.evapo.potrad/r_net_day.c
grass-addons/gipe/i.evapo.potrad/r_net_day_bandara98.c
grass-addons/gipe/i.evapo.potrad/solar_day.c
grass-addons/gipe/i.evapo.potrad/solar_day_3d.c
grass-addons/gipe/i.evapo.senay/
grass-addons/gipe/i.evapo.senay/Makefile
grass-addons/gipe/i.evapo.senay/description.html
grass-addons/gipe/i.evapo.senay/et_pot_day.c
grass-addons/gipe/i.evapo.senay/evapfr_senay.c
grass-addons/gipe/i.evapo.senay/main.c
grass-addons/gipe/i.evapo.senay/r_net_day.c
grass-addons/gipe/i.evapo.senay/r_net_day_bandara98.c
grass-addons/gipe/i.evapo.senay/solar_day.c
grass-addons/gipe/i.evapo.senay/solar_day_3d.c
grass-addons/gipe/i.lmf/
grass-addons/gipe/i.lmf/Makefile
grass-addons/gipe/i.lmf/description.html
grass-addons/gipe/i.lmf/fitting.c
grass-addons/gipe/i.lmf/invert_matrix.c
grass-addons/gipe/i.lmf/lmf.c
grass-addons/gipe/i.lmf/main.c
grass-addons/gipe/i.lmf/make_matrix.c
grass-addons/gipe/i.lmf/maxmin.c
grass-addons/gipe/i.lmf/minmax.c
grass-addons/gipe/i.sattime/
grass-addons/gipe/i.sattime/Makefile
grass-addons/gipe/i.sattime/i.sattime.html
grass-addons/gipe/i.sattime/main.c
grass-addons/gipe/i.vi.grid/
grass-addons/gipe/i.vi.grid/client/main.c
grass-addons/gipe/i.vi.grid/client/r.vi.grid/Makefile
grass-addons/gipe/i.vi.grid/client/r.vi.grid/main.c
grass-addons/gipe/i.vi.grid/description.html
grass-addons/gipe/i.vi.grid/description_grid.html
grass-addons/gipe/i.vi.grid/server/VI_ServerC.c
grass-addons/gipe/i.vi.grid/server/_stub_VI_CALC.c
grass-addons/gipe/i.vi.mpi/
grass-addons/gipe/i.vi.mpi/Makefile
grass-addons/gipe/i.vi.mpi/description.html
grass-addons/gipe/i.vi.mpi/main.c
grass-addons/gipe/i.vi.mpi/run.sh
grass-addons/gipe/i.water/
grass-addons/gipe/i.water/Makefile
grass-addons/gipe/i.water/description.html
grass-addons/gipe/i.water/main.c
grass-addons/gipe/i.water/water.c
grass-addons/gipe/i.water/water_modis.c
grass-addons/gipe/i.wi/
grass-addons/gipe/i.wi/Makefile
grass-addons/gipe/i.wi/description.html
grass-addons/gipe/i.wi/lswi.c
grass-addons/gipe/i.wi/main.c
grass-addons/gipe/install_yanns_grass.sh
grass-addons/gipe/m.gem/
grass-addons/gipe/m.gem/Makefile
grass-addons/gipe/m.gem/description.html
grass-addons/gipe/m.gem/m.gem
grass-addons/gipe/menudata.py
grass-addons/gipe/python/
grass-addons/gipe/python/ndvi_gdal.py
grass-addons/gipe/r.evapo.MH/
grass-addons/gipe/r.evapo.MH/Makefile
grass-addons/gipe/r.evapo.MH/description.html
grass-addons/gipe/r.evapo.MH/main.c
grass-addons/gipe/r.evapo.MH/mh_eto.c
grass-addons/gipe/r.evapo.MH/mh_original.c
grass-addons/gipe/r.evapo.MH/mh_samani.c
grass-addons/gipe/r.evapo.PM/
grass-addons/gipe/r.evapo.PM/Makefile
grass-addons/gipe/r.evapo.PM/description.html
grass-addons/gipe/r.evapo.PM/functions.c
grass-addons/gipe/r.evapo.PM/local_proto.h
grass-addons/gipe/r.evapo.PM/main.c
grass-addons/gipe/r.gaswap.serial/
grass-addons/gipe/r.gaswap.serial/Makefile
grass-addons/gipe/r.gaswap.serial/copy.sh
grass-addons/gipe/r.gaswap.serial/description.html
grass-addons/gipe/r.gaswap.serial/evaluation.c
grass-addons/gipe/r.gaswap.serial/gaswap.c
grass-addons/gipe/r.gaswap.serial/gaswap.h
grass-addons/gipe/r.gaswap.serial/lab/run_gaswap.sh
grass-addons/gipe/r.gaswap.serial/main.c
grass-addons/gipe/r.gaswap.serial/swapcompile
grass-addons/gipe/r.hydro.CASC2D/
grass-addons/gipe/r.hydro.CASC2D/CASC2D.c
grass-addons/gipe/r.hydro.CASC2D/Makefile
grass-addons/gipe/r.hydro.CASC2D/Manual.txt
grass-addons/gipe/r.hydro.CASC2D/all.h
grass-addons/gipe/r.hydro.CASC2D/ch_depth.c
grass-addons/gipe/r.hydro.CASC2D/ch_flow.c
grass-addons/gipe/r.hydro.CASC2D/crash.c
grass-addons/gipe/r.hydro.CASC2D/im_coeff.c
grass-addons/gipe/r.hydro.CASC2D/im_ddsqoy.c
grass-addons/gipe/r.hydro.CASC2D/im_dsqoy.c
grass-addons/gipe/r.hydro.CASC2D/im_dsyot.c
grass-addons/gipe/r.hydro.CASC2D/im_flow_route.c
grass-addons/gipe/r.hydro.CASC2D/im_norm_calc.c
grass-addons/gipe/r.hydro.CASC2D/im_read_input.c
grass-addons/gipe/r.hydro.CASC2D/im_read_table.c
grass-addons/gipe/r.hydro.CASC2D/im_reservoir.c
grass-addons/gipe/r.hydro.CASC2D/im_section.c
grass-addons/gipe/r.hydro.CASC2D/im_spill.c
grass-addons/gipe/r.hydro.CASC2D/im_usqot.c
grass-addons/gipe/r.hydro.CASC2D/im_weir_coeff.c
grass-addons/gipe/r.hydro.CASC2D/inf_nodist.c
grass-addons/gipe/r.hydro.CASC2D/inf_redist.c
grass-addons/gipe/r.hydro.CASC2D/intercep.c
grass-addons/gipe/r.hydro.CASC2D/ov_flow.c
grass-addons/gipe/r.hydro.CASC2D/ov_lake.c
grass-addons/gipe/r.hydro.CASC2D/rain_sq_dis.c
grass-addons/gipe/r.hydro.CASC2D/rain_thiessen.c
grass-addons/gipe/r.hydro.CASC2D/read_gage_file.c
grass-addons/gipe/r.hydro.CASC2D/readme
grass-addons/gipe/r.hydro.CASC2D/write_files.c
grass-addons/gipe/r.out.vic/
grass-addons/gipe/r.out.vic/Makefile
grass-addons/gipe/r.out.vic/description.html
grass-addons/gipe/r.out.vic/main.c
grass-addons/gipe/r.out.vic/veg_lib.c
grass-addons/gipe/r.soiltex2prop/
grass-addons/gipe/r.soiltex2prop/Makefile
grass-addons/gipe/r.soiltex2prop/description.html
grass-addons/gipe/r.soiltex2prop/main.c
grass-addons/gipe/r.soiltex2prop/prct2hf.c
grass-addons/gipe/r.soiltex2prop/prct2ksat.c
grass-addons/gipe/r.soiltex2prop/prct2porosity.c
grass-addons/gipe/r.soiltex2prop/vector_multiplication.c
grass-addons/gipe/r.soilusda2tex/
grass-addons/gipe/r.soilusda2tex/Makefile
grass-addons/gipe/r.soilusda2tex/description.html
grass-addons/gipe/r.soilusda2tex/main.c
grass-addons/gipe/r.soilusda2tex/usda2pclay.c
grass-addons/gipe/r.soilusda2tex/usda2psand.c
grass-addons/gipe/r.soilusda2tex/usda2psilt.c
grass-addons/gipe/screenshots/
grass-addons/gipe/screenshots/gipe01.png
grass-addons/gipe/screenshots/gipe02.png
grass-addons/gipe/screenshots/gipe03.png
grass-addons/gipe/screenshots/gipe04.png
grass-addons/gipe/screenshots/gipe05.png
grass-addons/gipe/screenshots/gipe06.png
grass-addons/gipe/screenshots/gipe07.png
grass-addons/gipe/script_examples/
grass-addons/gipe/script_examples/grass_etpot.sh
grass-addons/gipe/script_examples/i.dn2potrad.l7.sh
grass-addons/gipe/script_generator/
grass-addons/gipe/script_generator/Makefile
grass-addons/gipe/script_generator/l7_in_read.c
grass-addons/gipe/script_generator/test_data/run.sh
Log:
svn props
Property changes on: grass-addons/gipe/gmmenu.tcl
___________________________________________________________________
Deleted: svn:executable
- *
Property changes on: grass-addons/gipe/i.dn2potrad.l5
___________________________________________________________________
Added: svn:ignore
+ OBJ.*
*.tmp.html
Property changes on: grass-addons/gipe/i.dn2potrad.l5/Makefile
___________________________________________________________________
Added: svn:mime-type
+ text/x-makefile
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.dn2potrad.l5/bb_alb_landsat.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.dn2potrad.l5/date2doy.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Modified: grass-addons/gipe/i.dn2potrad.l5/description.html
===================================================================
--- grass-addons/gipe/i.dn2potrad.l5/description.html 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/i.dn2potrad.l5/description.html 2010-04-03 08:49:00 UTC (rev 41680)
@@ -33,4 +33,4 @@
<p>
-<i>Last changed: $Date: 2006/10/08 11:41:43 $</i>
+<i>Last changed: $Date$</i>
Property changes on: grass-addons/gipe/i.dn2potrad.l5/description.html
___________________________________________________________________
Added: svn:mime-type
+ text/html
Added: svn:keywords
+ Author Date Id
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.dn2potrad.l5/dn2rad_landsat5.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.dn2potrad.l5/emissivity_generic.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.dn2potrad.l5/et_pot_day.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.dn2potrad.l5/l5inread.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.dn2potrad.l5/main.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.dn2potrad.l5/ndvi.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.dn2potrad.l5/r_net_day.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.dn2potrad.l5/rad2ref_landsat5.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.dn2potrad.l5/solar_day.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.dn2potrad.l5/tempk_landsat5.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.dn2potrad.l7
___________________________________________________________________
Added: svn:ignore
+ OBJ.*
*.tmp.html
Property changes on: grass-addons/gipe/i.dn2potrad.l7/Makefile
___________________________________________________________________
Added: svn:mime-type
+ text/x-makefile
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.dn2potrad.l7/bb_alb_landsat.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.dn2potrad.l7/date2doy.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Modified: grass-addons/gipe/i.dn2potrad.l7/description.html
===================================================================
--- grass-addons/gipe/i.dn2potrad.l7/description.html 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/i.dn2potrad.l7/description.html 2010-04-03 08:49:00 UTC (rev 41680)
@@ -30,4 +30,4 @@
<p>
-<i>Last changed: $Date: 2006/10/08 11:41:43 $</i>
+<i>Last changed: $Date$</i>
Property changes on: grass-addons/gipe/i.dn2potrad.l7/description.html
___________________________________________________________________
Added: svn:mime-type
+ text/html
Added: svn:keywords
+ Author Date Id
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.dn2potrad.l7/dn2rad_landsat7.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.dn2potrad.l7/emissivity_generic.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.dn2potrad.l7/et_pot_day.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.dn2potrad.l7/l7inread.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.dn2potrad.l7/main.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.dn2potrad.l7/ndvi.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.dn2potrad.l7/r_net_day.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.dn2potrad.l7/rad2ref_landsat7.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.dn2potrad.l7/solar_day.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.dn2potrad.l7/tempk_landsat7.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.dn2ref.ast
___________________________________________________________________
Added: svn:ignore
+ OBJ.*
*.tmp.html
Property changes on: grass-addons/gipe/i.dn2ref.ast/Makefile
___________________________________________________________________
Added: svn:mime-type
+ text/x-makefile
Added: svn:eol-style
+ native
Modified: grass-addons/gipe/i.dn2ref.ast/description.html
===================================================================
--- grass-addons/gipe/i.dn2ref.ast/description.html 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/i.dn2ref.ast/description.html 2010-04-03 08:49:00 UTC (rev 41680)
@@ -20,4 +20,4 @@
<p>
-<i>Last changed: $Date: 2006/10/14 23:05:15 $</i>
+<i>Last changed: $Date$</i>
Property changes on: grass-addons/gipe/i.dn2ref.ast/description.html
___________________________________________________________________
Added: svn:mime-type
+ text/html
Added: svn:keywords
+ Author Date Id
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.dn2ref.ast/main.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.dn2ref.ast/rad2ref_aster.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.deltat
___________________________________________________________________
Added: svn:ignore
+ OBJ.*
*.tmp.html
Property changes on: grass-addons/gipe/i.eb.deltat/Makefile
___________________________________________________________________
Added: svn:mime-type
+ text/x-makefile
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.deltat/delta_t.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Modified: grass-addons/gipe/i.eb.deltat/description.html
===================================================================
--- grass-addons/gipe/i.eb.deltat/description.html 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/i.eb.deltat/description.html 2010-04-03 08:49:00 UTC (rev 41680)
@@ -20,4 +20,4 @@
<p>
-<i>Last changed: $Date: 2006/10/13 22:19:55 $</i>
+<i>Last changed: $Date$</i>
Property changes on: grass-addons/gipe/i.eb.deltat/description.html
___________________________________________________________________
Added: svn:mime-type
+ text/html
Added: svn:keywords
+ Author Date Id
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.deltat/main.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.disp
___________________________________________________________________
Added: svn:ignore
+ OBJ.*
*.tmp.html
Property changes on: grass-addons/gipe/i.eb.disp/Makefile
___________________________________________________________________
Added: svn:mime-type
+ text/x-makefile
Added: svn:eol-style
+ native
Modified: grass-addons/gipe/i.eb.disp/description.html
===================================================================
--- grass-addons/gipe/i.eb.disp/description.html 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/i.eb.disp/description.html 2010-04-03 08:49:00 UTC (rev 41680)
@@ -20,4 +20,4 @@
<p>
-<i>Last changed: $Date: 2006/10/13 22:19:55 $</i>
+<i>Last changed: $Date$</i>
Property changes on: grass-addons/gipe/i.eb.disp/description.html
___________________________________________________________________
Added: svn:mime-type
+ text/html
Added: svn:keywords
+ Author Date Id
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.disp/disp.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.disp/main.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.disp/savi2lai.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.h0
___________________________________________________________________
Added: svn:ignore
+ OBJ.*
*.tmp.html
Property changes on: grass-addons/gipe/i.eb.h0/Makefile
___________________________________________________________________
Added: svn:mime-type
+ text/x-makefile
Added: svn:eol-style
+ native
Modified: grass-addons/gipe/i.eb.h0/description.html
===================================================================
--- grass-addons/gipe/i.eb.h0/description.html 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/i.eb.h0/description.html 2010-04-03 08:49:00 UTC (rev 41680)
@@ -22,4 +22,4 @@
<p>
-<i>Last changed: $Date: 2006/10/10 09:55:22 $</i>
+<i>Last changed: $Date$</i>
Property changes on: grass-addons/gipe/i.eb.h0/description.html
___________________________________________________________________
Added: svn:mime-type
+ text/html
Added: svn:keywords
+ Author Date Id
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.h0/h0.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.h0/main.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.h_SEBAL95
___________________________________________________________________
Added: svn:ignore
+ OBJ.*
*.tmp.html
Property changes on: grass-addons/gipe/i.eb.h_SEBAL95/Makefile
___________________________________________________________________
Added: svn:mime-type
+ text/x-makefile
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.h_SEBAL95/U_0.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Modified: grass-addons/gipe/i.eb.h_SEBAL95/description.html
===================================================================
--- grass-addons/gipe/i.eb.h_SEBAL95/description.html 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/i.eb.h_SEBAL95/description.html 2010-04-03 08:49:00 UTC (rev 41680)
@@ -1,161 +1,161 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
-<head>
-<title>r.evapo.PM</title>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
-<link rel="stylesheet" href="grassdocs.css" type="text/css">
-</head>
-<body bgcolor="white">
-
-<img src="grass.smlogo.gif" alt="GRASS logo"><hr align=center size=6 noshade>
-
-<H2>NAME</H2> <B><I>i.eb.h_SEBAL95 </I></B>- computation of <i>sensible heat flux</i> [W/m2] after Bastiaanssen, 1995 in [1].
-
-<P><I>(GRASS Raster Program)</I>
-
-<H2>SYNOPSIS</H2>
-<B>i.eb.h_SEBAL95</B>
-<BR>
-<B>i.eb.h_SEBAL95</B> help</br>
-<BR>
-
-<B>i.eb.h_SEBAL95</b> <b>[ -qzn ]</b>
-
-<b>DEM</b>=name
-<b>T</b>=name
-<b>RH</b>=name
-<b>WS</b>=name
-<b>NSR</b>=name
-<b>Vh</b>=name
-<b>ETP</b>=name
-
-<H2>DESCRIPTION</H2>
-
-<p><EM>i.eb.h_SEBAL95</EM> given the vegetation height (hc), humidity (RU),
-wind speed at two meters height (WS), temperature (T), digital terrain model (DEM),
-and net radiation (NSR) raster input maps,
-calculates the sensible heat flux map (h0).
-
-<p>Optionally the user can activate a flag (-z)
-that allows him setting to zero all of the negative evapotranspiration cells;
-in fact these negative values motivated by the condensation of the air water
-vapour content, are sometime undesired because they can produce computational
-problems. The usage of the flag -n detect that the module is run in night hours
-and the appropriate soil heat flux is calculated.
-
-<p>The algorithm implements well known approaches: the hourly Penman-Monteith method as presented in Allen et al. (1998) for land surfaces and the Penman method (Penman, 1948) for water surfaces.<br>
-
-<p>Land and water surfaces are idenfyied by Vh:<br>
-- where Vh>0 vegetation is present and evapotranspiration is calculated;<br>
-- where Vh=0 bare ground is present and evapotranspiration is calculated;<br>
-- where Vh<0 water surface is present and evaporation is calculated;<br>
-
-<p>For more details on the algorithms see [1].
-
-
-<H2>OPTIONS</H2>
-
-The program will run non-interactively if the user specifies program
-arguments and flag settings on the command line using the following
-form:
-
-<P><B>i.eb.h_SEBAL95</b> <b>[ -qzd ]</b>
-<b>DEM</b>=name
-<b>T</b>=name
-<b>RH</b>=name
-<b>WS</b>=name
-<b>NSR</b>=name
-<b>Vh</b>=name
-<b>ETP</b>=name
-
-
-
-<P>Alternatively, the user can simply type <EM>i.eb.h_SEBAL95</EM> on the
-command line and the program will ask for parameter values and flag
-settings interactively, using the standard GRASS parser interface.
-
-
-<H3>Flags:</H3>
-<dl>
- <dt><B>-q</B>
- <dd>Run quietly (do not display status messages). By default
- <EM>r.evapo.PM</EM> is run verbosely.
- <dt><B>-z</B>
- <dd>Set negative calculated evapotranspiration values to zero.
- <dt><B>-n</B>
- <dd>Calculate soil heat flux for night time. By default
- <EM>r.evapo.PM</EM> calculate it for day time.
-</dl>
-
-
-<H3>Parameters:</H3>
-<dl>
- <dt><B>DEM</B>=<I>name</I>
- <dd>Input elevation raster [m a.s.l.]. Required.</dd>
-
- <dt><b>T</b>=<I>name</I>
- <dd>Input temperature raster [�C]. Required.</dd>
-
- <dt><b>RH</b> =<I>name</I>
- <dd>Input relative humidity raster [%]. Required.</dd>
-
- <dt><b>WS</b> =<I>name</I>
- <dd>Input wind speed at two meters raster [m/s]. Required.</dd>
-
- <dt><b>NSR</b> =<I>name</I>
- <dd>Input net solar radiation raster [MJ/(m2*h)]. Required.</dd>
-
- <dt><b>Vh</b> =<I>name</I>
- <dd>Input vegetation heigth raster [m]. Required.</dd>
-
- <dt><b>ETP</b> =<I>name</I>
- <dd>Output evapotranspiration raster [mm/h]. Required.</dd>
-
-</dl>
-
-
-<H2>NOTES</H2>
-
-<p>Net solar radiation map in MJ/(m2*h) can be computed from the combination of the r.sun ,
-run in mode 1, and the r.mapcalc commands.
-
-<p>The sum of the three radiation components outputted by r.sun (beam, diffuse, and reflected)
-multiplied by the Wh->Mj conversion factor (0.0036) and optionally by a
-clear sky factor [0-1] allows the generation of a map to be used as
-an NSR input for the <EM>r.evapo.PM</EM> command.
-<dt>example:
-<br><dd>r.sun -s elevin=dem aspin=aspect slopein=slope lin=2 albedo=alb_Mar incidout=out beam_rad=beam diff_rad=diffuse refl_rad=reflected day=73 time=13:00 dist=100;
-<br><dd>r.mapcalc 'NSR=0.0036*(beam+diffuse+reflected)';
-
-
-<H2>SEE ALSO</H2>
-<ul>
- <li><a href=i.eb.h_iter.html>i.eb.h_iter</a>,
- <a href=i.eb.h0.html>i.eb.h0</a>
-</ul>
-
-
-
-<H2>AUTHORS</H2>
- <p>
- <i>
- <br>Yann Chemin, International Rice Research Institute, Los Banos, The Philippines.
- </i>
- <p>Contact: <a href="mailto:y.chemin at cgiar.org"> Yann chemin</a>
-
-
-<H2>REFERENCES</H2>
-
- <p>[1] Bastiaanssen, W.G.M., 1995.
- Estimation of Land surface paramters by remote sensing under clear-sky conditions. PhD thesis, Wageningen University, Wageningen, The Netherlands.
-
- <p>[2] Allen, R.G., L.S. Pereira, D. Raes, and M. Smith. 1998.
- Crop Evapotranspiration: Guidelines for computing crop water requirements.
- Irrigation and Drainage Paper 56, Food and Agriculture Organization of the
- United Nations, Rome, pp. 300
-
- <p>[3] Penman, H. L. 1948. Natural evaporation from open water,
- bare soil and grass. Proc. Roy. Soc. London, A193, pp. 120-146.
-<p><i>Last changed: $Date: 2007/07/29 19:30:00 $</i>
-</body>
-</html>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<title>r.evapo.PM</title>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<link rel="stylesheet" href="grassdocs.css" type="text/css">
+</head>
+<body bgcolor="white">
+
+<img src="grass.smlogo.gif" alt="GRASS logo"><hr align=center size=6 noshade>
+
+<H2>NAME</H2> <B><I>i.eb.h_SEBAL95 </I></B>- computation of <i>sensible heat flux</i> [W/m2] after Bastiaanssen, 1995 in [1].
+
+<P><I>(GRASS Raster Program)</I>
+
+<H2>SYNOPSIS</H2>
+<B>i.eb.h_SEBAL95</B>
+<BR>
+<B>i.eb.h_SEBAL95</B> help</br>
+<BR>
+
+<B>i.eb.h_SEBAL95</b> <b>[ -qzn ]</b>
+
+<b>DEM</b>=name
+<b>T</b>=name
+<b>RH</b>=name
+<b>WS</b>=name
+<b>NSR</b>=name
+<b>Vh</b>=name
+<b>ETP</b>=name
+
+<H2>DESCRIPTION</H2>
+
+<p><EM>i.eb.h_SEBAL95</EM> given the vegetation height (hc), humidity (RU),
+wind speed at two meters height (WS), temperature (T), digital terrain model (DEM),
+and net radiation (NSR) raster input maps,
+calculates the sensible heat flux map (h0).
+
+<p>Optionally the user can activate a flag (-z)
+that allows him setting to zero all of the negative evapotranspiration cells;
+in fact these negative values motivated by the condensation of the air water
+vapour content, are sometime undesired because they can produce computational
+problems. The usage of the flag -n detect that the module is run in night hours
+and the appropriate soil heat flux is calculated.
+
+<p>The algorithm implements well known approaches: the hourly Penman-Monteith method as presented in Allen et al. (1998) for land surfaces and the Penman method (Penman, 1948) for water surfaces.<br>
+
+<p>Land and water surfaces are idenfyied by Vh:<br>
+- where Vh>0 vegetation is present and evapotranspiration is calculated;<br>
+- where Vh=0 bare ground is present and evapotranspiration is calculated;<br>
+- where Vh<0 water surface is present and evaporation is calculated;<br>
+
+<p>For more details on the algorithms see [1].
+
+
+<H2>OPTIONS</H2>
+
+The program will run non-interactively if the user specifies program
+arguments and flag settings on the command line using the following
+form:
+
+<P><B>i.eb.h_SEBAL95</b> <b>[ -qzd ]</b>
+<b>DEM</b>=name
+<b>T</b>=name
+<b>RH</b>=name
+<b>WS</b>=name
+<b>NSR</b>=name
+<b>Vh</b>=name
+<b>ETP</b>=name
+
+
+
+<P>Alternatively, the user can simply type <EM>i.eb.h_SEBAL95</EM> on the
+command line and the program will ask for parameter values and flag
+settings interactively, using the standard GRASS parser interface.
+
+
+<H3>Flags:</H3>
+<dl>
+ <dt><B>-q</B>
+ <dd>Run quietly (do not display status messages). By default
+ <EM>r.evapo.PM</EM> is run verbosely.
+ <dt><B>-z</B>
+ <dd>Set negative calculated evapotranspiration values to zero.
+ <dt><B>-n</B>
+ <dd>Calculate soil heat flux for night time. By default
+ <EM>r.evapo.PM</EM> calculate it for day time.
+</dl>
+
+
+<H3>Parameters:</H3>
+<dl>
+ <dt><B>DEM</B>=<I>name</I>
+ <dd>Input elevation raster [m a.s.l.]. Required.</dd>
+
+ <dt><b>T</b>=<I>name</I>
+ <dd>Input temperature raster [�C]. Required.</dd>
+
+ <dt><b>RH</b> =<I>name</I>
+ <dd>Input relative humidity raster [%]. Required.</dd>
+
+ <dt><b>WS</b> =<I>name</I>
+ <dd>Input wind speed at two meters raster [m/s]. Required.</dd>
+
+ <dt><b>NSR</b> =<I>name</I>
+ <dd>Input net solar radiation raster [MJ/(m2*h)]. Required.</dd>
+
+ <dt><b>Vh</b> =<I>name</I>
+ <dd>Input vegetation heigth raster [m]. Required.</dd>
+
+ <dt><b>ETP</b> =<I>name</I>
+ <dd>Output evapotranspiration raster [mm/h]. Required.</dd>
+
+</dl>
+
+
+<H2>NOTES</H2>
+
+<p>Net solar radiation map in MJ/(m2*h) can be computed from the combination of the r.sun ,
+run in mode 1, and the r.mapcalc commands.
+
+<p>The sum of the three radiation components outputted by r.sun (beam, diffuse, and reflected)
+multiplied by the Wh->Mj conversion factor (0.0036) and optionally by a
+clear sky factor [0-1] allows the generation of a map to be used as
+an NSR input for the <EM>r.evapo.PM</EM> command.
+<dt>example:
+<br><dd>r.sun -s elevin=dem aspin=aspect slopein=slope lin=2 albedo=alb_Mar incidout=out beam_rad=beam diff_rad=diffuse refl_rad=reflected day=73 time=13:00 dist=100;
+<br><dd>r.mapcalc 'NSR=0.0036*(beam+diffuse+reflected)';
+
+
+<H2>SEE ALSO</H2>
+<ul>
+ <li><a href=i.eb.h_iter.html>i.eb.h_iter</a>,
+ <a href=i.eb.h0.html>i.eb.h0</a>
+</ul>
+
+
+
+<H2>AUTHORS</H2>
+ <p>
+ <i>
+ <br>Yann Chemin, International Rice Research Institute, Los Banos, The Philippines.
+ </i>
+ <p>Contact: <a href="mailto:y.chemin at cgiar.org"> Yann chemin</a>
+
+
+<H2>REFERENCES</H2>
+
+ <p>[1] Bastiaanssen, W.G.M., 1995.
+ Estimation of Land surface paramters by remote sensing under clear-sky conditions. PhD thesis, Wageningen University, Wageningen, The Netherlands.
+
+ <p>[2] Allen, R.G., L.S. Pereira, D. Raes, and M. Smith. 1998.
+ Crop Evapotranspiration: Guidelines for computing crop water requirements.
+ Irrigation and Drainage Paper 56, Food and Agriculture Organization of the
+ United Nations, Rome, pp. 300
+
+ <p>[3] Penman, H. L. 1948. Natural evaporation from open water,
+ bare soil and grass. Proc. Roy. Soc. London, A193, pp. 120-146.
+<p><i>Last changed: $Date$</i>
+</body>
+</html>
Property changes on: grass-addons/gipe/i.eb.h_SEBAL95/description.html
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/html
Added: svn:keywords
+ Author Date Id
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.h_SEBAL95/dtair.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.h_SEBAL95/dtair_desert.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.h_SEBAL95/functions.h
___________________________________________________________________
Added: svn:mime-type
+ text/x-chdr
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.h_SEBAL95/h1.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.h_SEBAL95/h_0.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.h_SEBAL95/main.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.h_SEBAL95/psi_h.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.h_SEBAL95/psi_m.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.h_SEBAL95/rah1.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.h_SEBAL95/rah_0.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.h_SEBAL95/roh_air.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.h_SEBAL95/roh_air_0.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.h_SEBAL95/sensi_h.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.h_SEBAL95/u_star.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.h_SEBAL95/zom_0.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.h_iter
___________________________________________________________________
Added: svn:ignore
+ OBJ.*
*.tmp.html
Property changes on: grass-addons/gipe/i.eb.h_iter/Makefile
___________________________________________________________________
Added: svn:mime-type
+ text/x-makefile
Added: svn:eol-style
+ native
Modified: grass-addons/gipe/i.eb.h_iter/description.html
===================================================================
--- grass-addons/gipe/i.eb.h_iter/description.html 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/i.eb.h_iter/description.html 2010-04-03 08:49:00 UTC (rev 41680)
@@ -22,4 +22,4 @@
<p>
-<i>Last changed: $Date: 2006/10/10 09:55:22 $</i>
+<i>Last changed: $Date$</i>
Property changes on: grass-addons/gipe/i.eb.h_iter/description.html
___________________________________________________________________
Added: svn:mime-type
+ text/html
Added: svn:keywords
+ Author Date Id
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.h_iter/fixed_deltat.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.h_iter/h0.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.h_iter/main.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.molength
___________________________________________________________________
Added: svn:ignore
+ OBJ.*
*.tmp.html
Property changes on: grass-addons/gipe/i.eb.molength/Makefile
___________________________________________________________________
Added: svn:mime-type
+ text/x-makefile
Added: svn:eol-style
+ native
Modified: grass-addons/gipe/i.eb.molength/description.html
===================================================================
--- grass-addons/gipe/i.eb.molength/description.html 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/i.eb.molength/description.html 2010-04-03 08:49:00 UTC (rev 41680)
@@ -19,4 +19,4 @@
<p>
-<i>Last changed: $Date: 2006/10/10 09:55:22 $</i>
+<i>Last changed: $Date$</i>
Property changes on: grass-addons/gipe/i.eb.molength/description.html
___________________________________________________________________
Added: svn:mime-type
+ text/html
Added: svn:keywords
+ Author Date Id
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.molength/h0.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.molength/main.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.molength/mo_length.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.netrad
___________________________________________________________________
Added: svn:ignore
+ OBJ.*
*.tmp.html
Property changes on: grass-addons/gipe/i.eb.netrad/Makefile
___________________________________________________________________
Added: svn:mime-type
+ text/x-makefile
Added: svn:eol-style
+ native
Modified: grass-addons/gipe/i.eb.netrad/description.html
===================================================================
--- grass-addons/gipe/i.eb.netrad/description.html 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/i.eb.netrad/description.html 2010-04-03 08:49:00 UTC (rev 41680)
@@ -22,4 +22,4 @@
<p>
-<i>Last changed: $Date: 2008/05/28 22:20:30 $</i>
+<i>Last changed: $Date$</i>
Property changes on: grass-addons/gipe/i.eb.netrad/description.html
___________________________________________________________________
Added: svn:mime-type
+ text/html
Added: svn:keywords
+ Author Date Id
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.netrad/main.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.netrad/r_net.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.psi
___________________________________________________________________
Added: svn:ignore
+ OBJ.*
*.tmp.html
Property changes on: grass-addons/gipe/i.eb.psi/Makefile
___________________________________________________________________
Added: svn:mime-type
+ text/x-makefile
Added: svn:eol-style
+ native
Modified: grass-addons/gipe/i.eb.psi/description.html
===================================================================
--- grass-addons/gipe/i.eb.psi/description.html 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/i.eb.psi/description.html 2010-04-03 08:49:00 UTC (rev 41680)
@@ -23,4 +23,4 @@
<p>
-<i>Last changed: $Date: 2006/10/10 09:55:22 $</i>
+<i>Last changed: $Date$</i>
Property changes on: grass-addons/gipe/i.eb.psi/description.html
___________________________________________________________________
Added: svn:mime-type
+ text/html
Added: svn:keywords
+ Author Date Id
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.psi/main.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.psi/psih.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.psi/psim.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.rah
___________________________________________________________________
Added: svn:ignore
+ OBJ.*
*.tmp.html
Property changes on: grass-addons/gipe/i.eb.rah/Makefile
___________________________________________________________________
Added: svn:mime-type
+ text/x-makefile
Added: svn:eol-style
+ native
Modified: grass-addons/gipe/i.eb.rah/description.html
===================================================================
--- grass-addons/gipe/i.eb.rah/description.html 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/i.eb.rah/description.html 2010-04-03 08:49:00 UTC (rev 41680)
@@ -27,4 +27,4 @@
<p>
-<i>Last changed: $Date: 2006/10/10 09:55:22 $</i>
+<i>Last changed: $Date$</i>
Property changes on: grass-addons/gipe/i.eb.rah/description.html
___________________________________________________________________
Added: svn:mime-type
+ text/html
Added: svn:keywords
+ Author Date Id
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.rah/main.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.rah/rah.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.rohair
___________________________________________________________________
Added: svn:ignore
+ OBJ.*
*.tmp.html
Property changes on: grass-addons/gipe/i.eb.rohair/Makefile
___________________________________________________________________
Added: svn:mime-type
+ text/x-makefile
Added: svn:eol-style
+ native
Modified: grass-addons/gipe/i.eb.rohair/description.html
===================================================================
--- grass-addons/gipe/i.eb.rohair/description.html 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/i.eb.rohair/description.html 2010-04-03 08:49:00 UTC (rev 41680)
@@ -19,4 +19,4 @@
<p>
-<i>Last changed: $Date: 2007/06/30 12:04:02 $</i>
+<i>Last changed: $Date$</i>
Property changes on: grass-addons/gipe/i.eb.rohair/description.html
___________________________________________________________________
Added: svn:mime-type
+ text/html
Added: svn:keywords
+ Author Date Id
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.rohair/main.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.rohair/roh_air.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.ublend
___________________________________________________________________
Added: svn:ignore
+ OBJ.*
*.tmp.html
Property changes on: grass-addons/gipe/i.eb.ublend/Makefile
___________________________________________________________________
Added: svn:mime-type
+ text/x-makefile
Added: svn:eol-style
+ native
Modified: grass-addons/gipe/i.eb.ublend/description.html
===================================================================
--- grass-addons/gipe/i.eb.ublend/description.html 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/i.eb.ublend/description.html 2010-04-03 08:49:00 UTC (rev 41680)
@@ -25,4 +25,4 @@
<p>
-<i>Last changed: $Date: 2006/10/10 09:55:22 $</i>
+<i>Last changed: $Date$</i>
Property changes on: grass-addons/gipe/i.eb.ublend/description.html
___________________________________________________________________
Added: svn:mime-type
+ text/html
Added: svn:keywords
+ Author Date Id
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.ublend/main.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.ublend/ublend.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.ublend/ustar.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.ustar
___________________________________________________________________
Added: svn:ignore
+ OBJ.*
*.tmp.html
Property changes on: grass-addons/gipe/i.eb.ustar/Makefile
___________________________________________________________________
Added: svn:mime-type
+ text/x-makefile
Added: svn:eol-style
+ native
Modified: grass-addons/gipe/i.eb.ustar/description.html
===================================================================
--- grass-addons/gipe/i.eb.ustar/description.html 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/i.eb.ustar/description.html 2010-04-03 08:49:00 UTC (rev 41680)
@@ -26,4 +26,4 @@
<p>
-<i>Last changed: $Date: 2006/10/10 09:55:22 $</i>
+<i>Last changed: $Date$</i>
Property changes on: grass-addons/gipe/i.eb.ustar/description.html
___________________________________________________________________
Added: svn:mime-type
+ text/html
Added: svn:keywords
+ Author Date Id
Added: svn:eol-style
+ native
Modified: grass-addons/gipe/i.eb.ustar/main.c
===================================================================
--- grass-addons/gipe/i.eb.ustar/main.c 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/i.eb.ustar/main.c 2010-04-03 08:49:00 UTC (rev 41680)
@@ -1,215 +1,215 @@
-/****************************************************************************
- *
- * MODULE: i.eb.ustar
- * AUTHOR(S): Yann Chemin - yann.chemin at gmail.com
- * PURPOSE: Calculates the nominal wind speed
- *
- * COPYRIGHT: (C) 2002-2008 by the GRASS Development Team
- *
- * This program is free software under the GNU General Public
- * License (>=v2). Read the file COPYING that comes with GRASS
- * for details.
- *
- *****************************************************************************/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <grass/gis.h>
-#include <grass/glocale.h>
-
-
-double u_star(double ublend,double hblend,double disp,double z0m,double psim);
-
-int main(int argc, char *argv[])
-{
- struct Cell_head cellhd; /*region+header info*/
- char *mapset; /*mapset name*/
- int nrows, ncols;
- int row,col;
-
- struct GModule *module;
- struct Option *input1, *input2, *input3, *input4, *input5, *output1;
-
- struct Flag *flag1;
- struct History history; /*metadata*/
-
- /************************************/
- /* FMEO Declarations*****************/
- char *name; /*input raster name*/
- char *result; /*output raster name*/
- /*File Descriptors*/
- int infd_ublend, infd_disp,infd_z0m,infd_psim;
- int outfd;
-
- char *ublend, *disp, *z0m, *psim;
-
- double hblend;
- int i=0,j=0;
-
- void *inrast_ublend, *inrast_disp, *inrast_z0m, *inrast_psim;
- DCELL *outrast;
- RASTER_MAP_TYPE data_type_output=DCELL_TYPE;
- RASTER_MAP_TYPE data_type_ublend;
- RASTER_MAP_TYPE data_type_disp;
- RASTER_MAP_TYPE data_type_z0m;
- RASTER_MAP_TYPE data_type_psim;
- /************************************/
- G_gisinit(argv[0]);
-
- module = G_define_module();
- module->keywords = _("ustar, energy balance, SEBAL");
- module->description = _("Nominal wind speed.");
-
- /* Define the different options */
- input1 = G_define_standard_option(G_OPT_R_INPUT) ;
- input1->key = _("ublend");
- input1->description=_("Name of the wind speed at blending height layer");
-
- input2 = G_define_option() ;
- input2->key =_("hblend");
- input2->type = TYPE_DOUBLE;
- input2->required = YES;
- input2->gisprompt =_("Value, parameter");
- input2->description=_("Value of the blending height (100.0 in Pawan, 2004)");
- input2->answer =_("100.0");
-
- input3 = G_define_standard_option(G_OPT_R_INPUT) ;
- input3->key =_("disp");
- input3->description=_("Name of the displacement height layer");
-
- input4 = G_define_standard_option(G_OPT_R_INPUT) ;
- input4->key =_("z0m");
- input4->description=_("Name of the surface roughness for momentum layer");
-
- input5 = G_define_standard_option(G_OPT_R_INPUT) ;
- input5->key =_("psim");
- input5->description=_("Name of the psichrometric parameter for momentum layer");
-
- output1 = G_define_standard_option(G_OPT_R_OUTPUT) ;
- output1->description=_("Name of the output ustar layer");
-
- /********************/
- if (G_parser(argc, argv))
- exit (EXIT_FAILURE);
-
- ublend = input1->answer;
- hblend = atof(input2->answer);
- disp = input3->answer;
- z0m = input4->answer;
- psim = input5->answer;
-
- result = output1->answer;
- /***************************************************/
- mapset = G_find_cell2 (ublend, "");
- if (mapset == NULL) {
- G_fatal_error(_("Cell file [%s] not found"), ublend);
- }
- data_type_ublend = G_raster_map_type(ublend,mapset);
- if ( (infd_ublend = G_open_cell_old (ublend,mapset)) < 0)
- G_fatal_error(_("Cannot open cell file [%s]"), ublend);
- if (G_get_cellhd (ublend, mapset, &cellhd) < 0)
- G_fatal_error(_("Cannot read file header of [%s]"), ublend);
- inrast_ublend = G_allocate_raster_buf(data_type_ublend);
- /***************************************************/
- mapset = G_find_cell2 (disp, "");
- if (mapset == NULL) {
- G_fatal_error(_("Cell file [%s] not found"), disp);
- }
- data_type_disp = G_raster_map_type(disp,mapset);
- if ( (infd_disp = G_open_cell_old (disp,mapset)) < 0)
- G_fatal_error(_("Cannot open cell file [%s]"), disp);
- if (G_get_cellhd (disp, mapset, &cellhd) < 0)
- G_fatal_error(_("Cannot read file header of [%s]"), disp);
- inrast_disp = G_allocate_raster_buf(data_type_disp);
- /***************************************************/
- mapset = G_find_cell2 (z0m, "");
- if (mapset == NULL) {
- G_fatal_error(_("Cell file [%s] not found"), z0m);
- }
- data_type_z0m = G_raster_map_type(z0m,mapset);
- if ( (infd_z0m = G_open_cell_old (z0m,mapset)) < 0)
- G_fatal_error(_("Cannot open cell file [%s]"), z0m);
- if (G_get_cellhd (z0m, mapset, &cellhd) < 0)
- G_fatal_error(_("Cannot read file header of [%s]"), z0m);
- inrast_z0m = G_allocate_raster_buf(data_type_z0m);
- /***************************************************/
- mapset = G_find_cell2 (psim, "");
- if (mapset == NULL) {
- G_fatal_error(_("Cell file [%s] not found"), psim);
- }
- data_type_psim = G_raster_map_type(psim,mapset);
- if ( (infd_psim = G_open_cell_old (psim,mapset)) < 0)
- G_fatal_error(_("Cannot open cell file [%s]"), psim);
- if (G_get_cellhd (psim, mapset, &cellhd) < 0)
- G_fatal_error(_("Cannot read file header of [%s]"), psim);
- inrast_psim = G_allocate_raster_buf(data_type_psim);
- /***************************************************/
- G_debug(3, "number of rows %d",cellhd.rows);
- nrows = G_window_rows();
- ncols = G_window_cols();
- outrast = G_allocate_raster_buf(data_type_output);
- /* Create New raster files */
- if ( (outfd = G_open_raster_new (result,data_type_output)) < 0)
- G_fatal_error(_("Could not open <%s>"),result);
- /* Process pixels */
- for (row = 0; row < nrows; row++)
- {
- DCELL d;
- DCELL d_ublend;
- DCELL d_disp;
- DCELL d_z0m;
- DCELL d_psim;
- DCELL d_ustar;
- G_percent(row,nrows,2);
- /* read input maps */
- if(G_get_raster_row(infd_ublend,inrast_ublend,row,data_type_ublend)<0)
- G_fatal_error(_("Could not read from <%s>"),ublend);
- if(G_get_raster_row(infd_disp,inrast_disp,row,data_type_disp)<0)
- G_fatal_error(_("Could not read from <%s>"),disp);
- if(G_get_raster_row(infd_z0m,inrast_z0m,row,data_type_z0m)<0)
- G_fatal_error(_("Could not read from <%s>"),z0m);
- if(G_get_raster_row(infd_psim,inrast_psim,row,data_type_psim)<0)
- G_fatal_error(_("Could not read from <%s>"),psim);
- /*process the data */
- for (col=0; col < ncols; col++)
- {
- d_ublend = ((DCELL *) inrast_ublend)[col];
- d_disp = ((DCELL *) inrast_disp)[col];
- d_z0m = ((DCELL *) inrast_z0m)[col];
- d_psim = ((DCELL *) inrast_psim)[col];
- if(G_is_d_null_value(&d_disp)||
- G_is_d_null_value(&d_z0m)||
- G_is_d_null_value(&d_psim)||
- G_is_d_null_value(&d_ublend)){
- G_set_d_null_value(&outrast[col],1);
- }else {
- /************************************/
- /* calculate ustar */
- d_ustar=u_star(d_ublend, hblend, d_disp, d_z0m, d_psim);
- outrast[col] = d_ustar;
- }
- }
- if (G_put_raster_row (outfd, outrast, data_type_output) < 0)
- G_fatal_error(_("Cannot write to output raster file"));
- }
- G_free (inrast_ublend);
- G_free (inrast_disp);
- G_free (inrast_z0m);
- G_free (inrast_psim);
-
- G_close_cell (infd_ublend);
- G_close_cell (infd_disp);
- G_close_cell (infd_z0m);
- G_close_cell (infd_psim);
-
- G_free (outrast);
- G_close_cell (outfd);
-
- G_short_history(result, "raster", &history);
- G_command_history(&history);
- G_write_history(result,&history);
-
- exit(EXIT_SUCCESS);
-}
-
+/****************************************************************************
+ *
+ * MODULE: i.eb.ustar
+ * AUTHOR(S): Yann Chemin - yann.chemin at gmail.com
+ * PURPOSE: Calculates the nominal wind speed
+ *
+ * COPYRIGHT: (C) 2002-2008 by the GRASS Development Team
+ *
+ * This program is free software under the GNU General Public
+ * License (>=v2). Read the file COPYING that comes with GRASS
+ * for details.
+ *
+ *****************************************************************************/
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <grass/gis.h>
+#include <grass/glocale.h>
+
+
+double u_star(double ublend,double hblend,double disp,double z0m,double psim);
+
+int main(int argc, char *argv[])
+{
+ struct Cell_head cellhd; /*region+header info*/
+ char *mapset; /*mapset name*/
+ int nrows, ncols;
+ int row,col;
+
+ struct GModule *module;
+ struct Option *input1, *input2, *input3, *input4, *input5, *output1;
+
+ struct Flag *flag1;
+ struct History history; /*metadata*/
+
+ /************************************/
+ /* FMEO Declarations*****************/
+ char *name; /*input raster name*/
+ char *result; /*output raster name*/
+ /*File Descriptors*/
+ int infd_ublend, infd_disp,infd_z0m,infd_psim;
+ int outfd;
+
+ char *ublend, *disp, *z0m, *psim;
+
+ double hblend;
+ int i=0,j=0;
+
+ void *inrast_ublend, *inrast_disp, *inrast_z0m, *inrast_psim;
+ DCELL *outrast;
+ RASTER_MAP_TYPE data_type_output=DCELL_TYPE;
+ RASTER_MAP_TYPE data_type_ublend;
+ RASTER_MAP_TYPE data_type_disp;
+ RASTER_MAP_TYPE data_type_z0m;
+ RASTER_MAP_TYPE data_type_psim;
+ /************************************/
+ G_gisinit(argv[0]);
+
+ module = G_define_module();
+ module->keywords = _("ustar, energy balance, SEBAL");
+ module->description = _("Nominal wind speed.");
+
+ /* Define the different options */
+ input1 = G_define_standard_option(G_OPT_R_INPUT) ;
+ input1->key = _("ublend");
+ input1->description=_("Name of the wind speed at blending height layer");
+
+ input2 = G_define_option() ;
+ input2->key =_("hblend");
+ input2->type = TYPE_DOUBLE;
+ input2->required = YES;
+ input2->gisprompt =_("Value, parameter");
+ input2->description=_("Value of the blending height (100.0 in Pawan, 2004)");
+ input2->answer =_("100.0");
+
+ input3 = G_define_standard_option(G_OPT_R_INPUT) ;
+ input3->key =_("disp");
+ input3->description=_("Name of the displacement height layer");
+
+ input4 = G_define_standard_option(G_OPT_R_INPUT) ;
+ input4->key =_("z0m");
+ input4->description=_("Name of the surface roughness for momentum layer");
+
+ input5 = G_define_standard_option(G_OPT_R_INPUT) ;
+ input5->key =_("psim");
+ input5->description=_("Name of the psichrometric parameter for momentum layer");
+
+ output1 = G_define_standard_option(G_OPT_R_OUTPUT) ;
+ output1->description=_("Name of the output ustar layer");
+
+ /********************/
+ if (G_parser(argc, argv))
+ exit (EXIT_FAILURE);
+
+ ublend = input1->answer;
+ hblend = atof(input2->answer);
+ disp = input3->answer;
+ z0m = input4->answer;
+ psim = input5->answer;
+
+ result = output1->answer;
+ /***************************************************/
+ mapset = G_find_cell2 (ublend, "");
+ if (mapset == NULL) {
+ G_fatal_error(_("Cell file [%s] not found"), ublend);
+ }
+ data_type_ublend = G_raster_map_type(ublend,mapset);
+ if ( (infd_ublend = G_open_cell_old (ublend,mapset)) < 0)
+ G_fatal_error(_("Cannot open cell file [%s]"), ublend);
+ if (G_get_cellhd (ublend, mapset, &cellhd) < 0)
+ G_fatal_error(_("Cannot read file header of [%s]"), ublend);
+ inrast_ublend = G_allocate_raster_buf(data_type_ublend);
+ /***************************************************/
+ mapset = G_find_cell2 (disp, "");
+ if (mapset == NULL) {
+ G_fatal_error(_("Cell file [%s] not found"), disp);
+ }
+ data_type_disp = G_raster_map_type(disp,mapset);
+ if ( (infd_disp = G_open_cell_old (disp,mapset)) < 0)
+ G_fatal_error(_("Cannot open cell file [%s]"), disp);
+ if (G_get_cellhd (disp, mapset, &cellhd) < 0)
+ G_fatal_error(_("Cannot read file header of [%s]"), disp);
+ inrast_disp = G_allocate_raster_buf(data_type_disp);
+ /***************************************************/
+ mapset = G_find_cell2 (z0m, "");
+ if (mapset == NULL) {
+ G_fatal_error(_("Cell file [%s] not found"), z0m);
+ }
+ data_type_z0m = G_raster_map_type(z0m,mapset);
+ if ( (infd_z0m = G_open_cell_old (z0m,mapset)) < 0)
+ G_fatal_error(_("Cannot open cell file [%s]"), z0m);
+ if (G_get_cellhd (z0m, mapset, &cellhd) < 0)
+ G_fatal_error(_("Cannot read file header of [%s]"), z0m);
+ inrast_z0m = G_allocate_raster_buf(data_type_z0m);
+ /***************************************************/
+ mapset = G_find_cell2 (psim, "");
+ if (mapset == NULL) {
+ G_fatal_error(_("Cell file [%s] not found"), psim);
+ }
+ data_type_psim = G_raster_map_type(psim,mapset);
+ if ( (infd_psim = G_open_cell_old (psim,mapset)) < 0)
+ G_fatal_error(_("Cannot open cell file [%s]"), psim);
+ if (G_get_cellhd (psim, mapset, &cellhd) < 0)
+ G_fatal_error(_("Cannot read file header of [%s]"), psim);
+ inrast_psim = G_allocate_raster_buf(data_type_psim);
+ /***************************************************/
+ G_debug(3, "number of rows %d",cellhd.rows);
+ nrows = G_window_rows();
+ ncols = G_window_cols();
+ outrast = G_allocate_raster_buf(data_type_output);
+ /* Create New raster files */
+ if ( (outfd = G_open_raster_new (result,data_type_output)) < 0)
+ G_fatal_error(_("Could not open <%s>"),result);
+ /* Process pixels */
+ for (row = 0; row < nrows; row++)
+ {
+ DCELL d;
+ DCELL d_ublend;
+ DCELL d_disp;
+ DCELL d_z0m;
+ DCELL d_psim;
+ DCELL d_ustar;
+ G_percent(row,nrows,2);
+ /* read input maps */
+ if(G_get_raster_row(infd_ublend,inrast_ublend,row,data_type_ublend)<0)
+ G_fatal_error(_("Could not read from <%s>"),ublend);
+ if(G_get_raster_row(infd_disp,inrast_disp,row,data_type_disp)<0)
+ G_fatal_error(_("Could not read from <%s>"),disp);
+ if(G_get_raster_row(infd_z0m,inrast_z0m,row,data_type_z0m)<0)
+ G_fatal_error(_("Could not read from <%s>"),z0m);
+ if(G_get_raster_row(infd_psim,inrast_psim,row,data_type_psim)<0)
+ G_fatal_error(_("Could not read from <%s>"),psim);
+ /*process the data */
+ for (col=0; col < ncols; col++)
+ {
+ d_ublend = ((DCELL *) inrast_ublend)[col];
+ d_disp = ((DCELL *) inrast_disp)[col];
+ d_z0m = ((DCELL *) inrast_z0m)[col];
+ d_psim = ((DCELL *) inrast_psim)[col];
+ if(G_is_d_null_value(&d_disp)||
+ G_is_d_null_value(&d_z0m)||
+ G_is_d_null_value(&d_psim)||
+ G_is_d_null_value(&d_ublend)){
+ G_set_d_null_value(&outrast[col],1);
+ }else {
+ /************************************/
+ /* calculate ustar */
+ d_ustar=u_star(d_ublend, hblend, d_disp, d_z0m, d_psim);
+ outrast[col] = d_ustar;
+ }
+ }
+ if (G_put_raster_row (outfd, outrast, data_type_output) < 0)
+ G_fatal_error(_("Cannot write to output raster file"));
+ }
+ G_free (inrast_ublend);
+ G_free (inrast_disp);
+ G_free (inrast_z0m);
+ G_free (inrast_psim);
+
+ G_close_cell (infd_ublend);
+ G_close_cell (infd_disp);
+ G_close_cell (infd_z0m);
+ G_close_cell (infd_psim);
+
+ G_free (outrast);
+ G_close_cell (outfd);
+
+ G_short_history(result, "raster", &history);
+ G_command_history(&history);
+ G_write_history(result,&history);
+
+ exit(EXIT_SUCCESS);
+}
+
Property changes on: grass-addons/gipe/i.eb.ustar/main.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.ustar/ustar.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.wetdrypix
___________________________________________________________________
Added: svn:ignore
+ OBJ.*
*.tmp.html
Property changes on: grass-addons/gipe/i.eb.wetdrypix/Makefile
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-makefile
Added: svn:eol-style
+ native
Modified: grass-addons/gipe/i.eb.wetdrypix/description.html
===================================================================
--- grass-addons/gipe/i.eb.wetdrypix/description.html 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/i.eb.wetdrypix/description.html 2010-04-03 08:49:00 UTC (rev 41680)
@@ -1,161 +1,161 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
-<head>
-<title>r.evapo.PM</title>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
-<link rel="stylesheet" href="grassdocs.css" type="text/css">
-</head>
-<body bgcolor="white">
-
-<img src="grass.smlogo.gif" alt="GRASS logo"><hr align=center size=6 noshade>
-
-<H2>NAME</H2> <B><I>i.eb.h_SEBAL95 </I></B>- computation of <i>sensible heat flux</i> [W/m2] after Bastiaanssen, 1995 in [1].
-
-<P><I>(GRASS Raster Program)</I>
-
-<H2>SYNOPSIS</H2>
-<B>i.eb.h_SEBAL95</B>
-<BR>
-<B>i.eb.h_SEBAL95</B> help</br>
-<BR>
-
-<B>i.eb.h_SEBAL95</b> <b>[ -qzn ]</b>
-
-<b>DEM</b>=name
-<b>T</b>=name
-<b>RH</b>=name
-<b>WS</b>=name
-<b>NSR</b>=name
-<b>Vh</b>=name
-<b>ETP</b>=name
-
-<H2>DESCRIPTION</H2>
-
-<p><EM>i.eb.h_SEBAL95</EM> given the vegetation height (hc), humidity (RU),
-wind speed at two meters height (WS), temperature (T), digital terrain model (DEM),
-and net radiation (NSR) raster input maps,
-calculates the sensible heat flux map (h0).
-
-<p>Optionally the user can activate a flag (-z)
-that allows him setting to zero all of the negative evapotranspiration cells;
-in fact these negative values motivated by the condensation of the air water
-vapour content, are sometime undesired because they can produce computational
-problems. The usage of the flag -n detect that the module is run in night hours
-and the appropriate soil heat flux is calculated.
-
-<p>The algorithm implements well known approaches: the hourly Penman-Monteith method as presented in Allen et al. (1998) for land surfaces and the Penman method (Penman, 1948) for water surfaces.<br>
-
-<p>Land and water surfaces are idenfyied by Vh:<br>
-- where Vh>0 vegetation is present and evapotranspiration is calculated;<br>
-- where Vh=0 bare ground is present and evapotranspiration is calculated;<br>
-- where Vh<0 water surface is present and evaporation is calculated;<br>
-
-<p>For more details on the algorithms see [1].
-
-
-<H2>OPTIONS</H2>
-
-The program will run non-interactively if the user specifies program
-arguments and flag settings on the command line using the following
-form:
-
-<P><B>i.eb.h_SEBAL95</b> <b>[ -qzd ]</b>
-<b>DEM</b>=name
-<b>T</b>=name
-<b>RH</b>=name
-<b>WS</b>=name
-<b>NSR</b>=name
-<b>Vh</b>=name
-<b>ETP</b>=name
-
-
-
-<P>Alternatively, the user can simply type <EM>i.eb.h_SEBAL95</EM> on the
-command line and the program will ask for parameter values and flag
-settings interactively, using the standard GRASS parser interface.
-
-
-<H3>Flags:</H3>
-<dl>
- <dt><B>-q</B>
- <dd>Run quietly (do not display status messages). By default
- <EM>r.evapo.PM</EM> is run verbosely.
- <dt><B>-z</B>
- <dd>Set negative calculated evapotranspiration values to zero.
- <dt><B>-n</B>
- <dd>Calculate soil heat flux for night time. By default
- <EM>r.evapo.PM</EM> calculate it for day time.
-</dl>
-
-
-<H3>Parameters:</H3>
-<dl>
- <dt><B>DEM</B>=<I>name</I>
- <dd>Input elevation raster [m a.s.l.]. Required.</dd>
-
- <dt><b>T</b>=<I>name</I>
- <dd>Input temperature raster [�C]. Required.</dd>
-
- <dt><b>RH</b> =<I>name</I>
- <dd>Input relative humidity raster [%]. Required.</dd>
-
- <dt><b>WS</b> =<I>name</I>
- <dd>Input wind speed at two meters raster [m/s]. Required.</dd>
-
- <dt><b>NSR</b> =<I>name</I>
- <dd>Input net solar radiation raster [MJ/(m2*h)]. Required.</dd>
-
- <dt><b>Vh</b> =<I>name</I>
- <dd>Input vegetation heigth raster [m]. Required.</dd>
-
- <dt><b>ETP</b> =<I>name</I>
- <dd>Output evapotranspiration raster [mm/h]. Required.</dd>
-
-</dl>
-
-
-<H2>NOTES</H2>
-
-<p>Net solar radiation map in MJ/(m2*h) can be computed from the combination of the r.sun ,
-run in mode 1, and the r.mapcalc commands.
-
-<p>The sum of the three radiation components outputted by r.sun (beam, diffuse, and reflected)
-multiplied by the Wh->Mj conversion factor (0.0036) and optionally by a
-clear sky factor [0-1] allows the generation of a map to be used as
-an NSR input for the <EM>r.evapo.PM</EM> command.
-<dt>example:
-<br><dd>r.sun -s elevin=dem aspin=aspect slopein=slope lin=2 albedo=alb_Mar incidout=out beam_rad=beam diff_rad=diffuse refl_rad=reflected day=73 time=13:00 dist=100;
-<br><dd>r.mapcalc 'NSR=0.0036*(beam+diffuse+reflected)';
-
-
-<H2>SEE ALSO</H2>
-<ul>
- <li><a href=i.eb.h_iter.html>i.eb.h_iter</a>,
- <a href=i.eb.h0.html>i.eb.h0</a>
-</ul>
-
-
-
-<H2>AUTHORS</H2>
- <p>
- <i>
- <br>Yann Chemin, International Rice Research Institute, Los Banos, The Philippines.
- </i>
- <p>Contact: <a href="mailto:y.chemin at cgiar.org"> Yann chemin</a>
-
-
-<H2>REFERENCES</H2>
-
- <p>[1] Bastiaanssen, W.G.M., 1995.
- Estimation of Land surface paramters by remote sensing under clear-sky conditions. PhD thesis, Wageningen University, Wageningen, The Netherlands.
-
- <p>[2] Allen, R.G., L.S. Pereira, D. Raes, and M. Smith. 1998.
- Crop Evapotranspiration: Guidelines for computing crop water requirements.
- Irrigation and Drainage Paper 56, Food and Agriculture Organization of the
- United Nations, Rome, pp. 300
-
- <p>[3] Penman, H. L. 1948. Natural evaporation from open water,
- bare soil and grass. Proc. Roy. Soc. London, A193, pp. 120-146.
-<p><i>Last changed: $Date: 2007/07/29 19:30:00 $</i>
-</body>
-</html>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<title>r.evapo.PM</title>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<link rel="stylesheet" href="grassdocs.css" type="text/css">
+</head>
+<body bgcolor="white">
+
+<img src="grass.smlogo.gif" alt="GRASS logo"><hr align=center size=6 noshade>
+
+<H2>NAME</H2> <B><I>i.eb.h_SEBAL95 </I></B>- computation of <i>sensible heat flux</i> [W/m2] after Bastiaanssen, 1995 in [1].
+
+<P><I>(GRASS Raster Program)</I>
+
+<H2>SYNOPSIS</H2>
+<B>i.eb.h_SEBAL95</B>
+<BR>
+<B>i.eb.h_SEBAL95</B> help</br>
+<BR>
+
+<B>i.eb.h_SEBAL95</b> <b>[ -qzn ]</b>
+
+<b>DEM</b>=name
+<b>T</b>=name
+<b>RH</b>=name
+<b>WS</b>=name
+<b>NSR</b>=name
+<b>Vh</b>=name
+<b>ETP</b>=name
+
+<H2>DESCRIPTION</H2>
+
+<p><EM>i.eb.h_SEBAL95</EM> given the vegetation height (hc), humidity (RU),
+wind speed at two meters height (WS), temperature (T), digital terrain model (DEM),
+and net radiation (NSR) raster input maps,
+calculates the sensible heat flux map (h0).
+
+<p>Optionally the user can activate a flag (-z)
+that allows him setting to zero all of the negative evapotranspiration cells;
+in fact these negative values motivated by the condensation of the air water
+vapour content, are sometime undesired because they can produce computational
+problems. The usage of the flag -n detect that the module is run in night hours
+and the appropriate soil heat flux is calculated.
+
+<p>The algorithm implements well known approaches: the hourly Penman-Monteith method as presented in Allen et al. (1998) for land surfaces and the Penman method (Penman, 1948) for water surfaces.<br>
+
+<p>Land and water surfaces are idenfyied by Vh:<br>
+- where Vh>0 vegetation is present and evapotranspiration is calculated;<br>
+- where Vh=0 bare ground is present and evapotranspiration is calculated;<br>
+- where Vh<0 water surface is present and evaporation is calculated;<br>
+
+<p>For more details on the algorithms see [1].
+
+
+<H2>OPTIONS</H2>
+
+The program will run non-interactively if the user specifies program
+arguments and flag settings on the command line using the following
+form:
+
+<P><B>i.eb.h_SEBAL95</b> <b>[ -qzd ]</b>
+<b>DEM</b>=name
+<b>T</b>=name
+<b>RH</b>=name
+<b>WS</b>=name
+<b>NSR</b>=name
+<b>Vh</b>=name
+<b>ETP</b>=name
+
+
+
+<P>Alternatively, the user can simply type <EM>i.eb.h_SEBAL95</EM> on the
+command line and the program will ask for parameter values and flag
+settings interactively, using the standard GRASS parser interface.
+
+
+<H3>Flags:</H3>
+<dl>
+ <dt><B>-q</B>
+ <dd>Run quietly (do not display status messages). By default
+ <EM>r.evapo.PM</EM> is run verbosely.
+ <dt><B>-z</B>
+ <dd>Set negative calculated evapotranspiration values to zero.
+ <dt><B>-n</B>
+ <dd>Calculate soil heat flux for night time. By default
+ <EM>r.evapo.PM</EM> calculate it for day time.
+</dl>
+
+
+<H3>Parameters:</H3>
+<dl>
+ <dt><B>DEM</B>=<I>name</I>
+ <dd>Input elevation raster [m a.s.l.]. Required.</dd>
+
+ <dt><b>T</b>=<I>name</I>
+ <dd>Input temperature raster [�C]. Required.</dd>
+
+ <dt><b>RH</b> =<I>name</I>
+ <dd>Input relative humidity raster [%]. Required.</dd>
+
+ <dt><b>WS</b> =<I>name</I>
+ <dd>Input wind speed at two meters raster [m/s]. Required.</dd>
+
+ <dt><b>NSR</b> =<I>name</I>
+ <dd>Input net solar radiation raster [MJ/(m2*h)]. Required.</dd>
+
+ <dt><b>Vh</b> =<I>name</I>
+ <dd>Input vegetation heigth raster [m]. Required.</dd>
+
+ <dt><b>ETP</b> =<I>name</I>
+ <dd>Output evapotranspiration raster [mm/h]. Required.</dd>
+
+</dl>
+
+
+<H2>NOTES</H2>
+
+<p>Net solar radiation map in MJ/(m2*h) can be computed from the combination of the r.sun ,
+run in mode 1, and the r.mapcalc commands.
+
+<p>The sum of the three radiation components outputted by r.sun (beam, diffuse, and reflected)
+multiplied by the Wh->Mj conversion factor (0.0036) and optionally by a
+clear sky factor [0-1] allows the generation of a map to be used as
+an NSR input for the <EM>r.evapo.PM</EM> command.
+<dt>example:
+<br><dd>r.sun -s elevin=dem aspin=aspect slopein=slope lin=2 albedo=alb_Mar incidout=out beam_rad=beam diff_rad=diffuse refl_rad=reflected day=73 time=13:00 dist=100;
+<br><dd>r.mapcalc 'NSR=0.0036*(beam+diffuse+reflected)';
+
+
+<H2>SEE ALSO</H2>
+<ul>
+ <li><a href=i.eb.h_iter.html>i.eb.h_iter</a>,
+ <a href=i.eb.h0.html>i.eb.h0</a>
+</ul>
+
+
+
+<H2>AUTHORS</H2>
+ <p>
+ <i>
+ <br>Yann Chemin, International Rice Research Institute, Los Banos, The Philippines.
+ </i>
+ <p>Contact: <a href="mailto:y.chemin at cgiar.org"> Yann chemin</a>
+
+
+<H2>REFERENCES</H2>
+
+ <p>[1] Bastiaanssen, W.G.M., 1995.
+ Estimation of Land surface paramters by remote sensing under clear-sky conditions. PhD thesis, Wageningen University, Wageningen, The Netherlands.
+
+ <p>[2] Allen, R.G., L.S. Pereira, D. Raes, and M. Smith. 1998.
+ Crop Evapotranspiration: Guidelines for computing crop water requirements.
+ Irrigation and Drainage Paper 56, Food and Agriculture Organization of the
+ United Nations, Rome, pp. 300
+
+ <p>[3] Penman, H. L. 1948. Natural evaporation from open water,
+ bare soil and grass. Proc. Roy. Soc. London, A193, pp. 120-146.
+<p><i>Last changed: $Date$</i>
+</body>
+</html>
Property changes on: grass-addons/gipe/i.eb.wetdrypix/description.html
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/html
Added: svn:keywords
+ Author Date Id
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.wetdrypix/main.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.z0m
___________________________________________________________________
Added: svn:ignore
+ OBJ.*
*.tmp.html
Property changes on: grass-addons/gipe/i.eb.z0m/Makefile
___________________________________________________________________
Added: svn:mime-type
+ text/x-makefile
Added: svn:eol-style
+ native
Modified: grass-addons/gipe/i.eb.z0m/description.html
===================================================================
--- grass-addons/gipe/i.eb.z0m/description.html 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/i.eb.z0m/description.html 2010-04-03 08:49:00 UTC (rev 41680)
@@ -21,4 +21,4 @@
<p>
-<i>Last changed: $Date: 2006/10/12 21:28:44 $</i>
+<i>Last changed: $Date$</i>
Property changes on: grass-addons/gipe/i.eb.z0m/description.html
___________________________________________________________________
Added: svn:mime-type
+ text/html
Added: svn:keywords
+ Author Date Id
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.z0m/main.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.z0m/z0m.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.z0m0
___________________________________________________________________
Added: svn:ignore
+ OBJ.*
*.tmp.html
Property changes on: grass-addons/gipe/i.eb.z0m0/Makefile
___________________________________________________________________
Added: svn:mime-type
+ text/x-makefile
Added: svn:eol-style
+ native
Modified: grass-addons/gipe/i.eb.z0m0/description.html
===================================================================
--- grass-addons/gipe/i.eb.z0m0/description.html 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/i.eb.z0m0/description.html 2010-04-03 08:49:00 UTC (rev 41680)
@@ -29,4 +29,4 @@
<p>
-<i>Last changed: $Date: 2008/07/25 09:52:24 $</i>
+<i>Last changed: $Date$</i>
Property changes on: grass-addons/gipe/i.eb.z0m0/description.html
___________________________________________________________________
Added: svn:mime-type
+ text/html
Added: svn:keywords
+ Author Date Id
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.z0m0/main.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.eb.z0m0/zom_0.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.evapo.PT
___________________________________________________________________
Added: svn:ignore
+ OBJ.*
*.tmp.html
Property changes on: grass-addons/gipe/i.evapo.PT/Makefile
___________________________________________________________________
Added: svn:mime-type
+ text/x-makefile
Added: svn:eol-style
+ native
Modified: grass-addons/gipe/i.evapo.PT/description.html
===================================================================
--- grass-addons/gipe/i.evapo.PT/description.html 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/i.evapo.PT/description.html 2010-04-03 08:49:00 UTC (rev 41680)
@@ -34,4 +34,4 @@
<p>
-<i>Last changed: $Date: 2008/07/10 11:58:15 $</i>
+<i>Last changed: $Date$</i>
Property changes on: grass-addons/gipe/i.evapo.PT/description.html
___________________________________________________________________
Added: svn:mime-type
+ text/html
Added: svn:keywords
+ Author Date Id
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.evapo.PT/main.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.evapo.PT/pt_daily_et.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.evapo.PT/pt_delta.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.evapo.PT/pt_ghamma.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.evapo.TSA
___________________________________________________________________
Added: svn:ignore
+ OBJ.*
*.tmp.html
Property changes on: grass-addons/gipe/i.evapo.TSA/Makefile
___________________________________________________________________
Added: svn:mime-type
+ text/x-makefile
Added: svn:eol-style
+ native
Modified: grass-addons/gipe/i.evapo.TSA/description.html
===================================================================
--- grass-addons/gipe/i.evapo.TSA/description.html 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/i.evapo.TSA/description.html 2010-04-03 08:49:00 UTC (rev 41680)
@@ -22,4 +22,4 @@
<p>
-<i>Last changed: $Date: 2007/02/10 11:58:15 $</i>
+<i>Last changed: $Date$</i>
Property changes on: grass-addons/gipe/i.evapo.TSA/description.html
___________________________________________________________________
Added: svn:mime-type
+ text/html
Added: svn:keywords
+ Author Date Id
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.evapo.TSA/main.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.evapo.TSA/tsa_daily_et.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.evapo.TSA/tsa_g0g.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.evapo.TSA/tsa_g0v.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.evapo.TSA/tsa_hg.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.evapo.TSA/tsa_hv.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.evapo.TSA/tsa_ra.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.evapo.TSA/tsa_rg.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.evapo.TSA/tsa_rng.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.evapo.TSA/tsa_rnv.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.evapo.TSA/tsa_rv.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.evapo.TSA/tsa_tempkg.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.evapo.TSA/tsa_tempkv.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.evapo.potrad
___________________________________________________________________
Added: svn:ignore
+ OBJ.*
*.tmp.html
Property changes on: grass-addons/gipe/i.evapo.potrad/Makefile
___________________________________________________________________
Added: svn:mime-type
+ text/x-makefile
Added: svn:eol-style
+ native
Modified: grass-addons/gipe/i.evapo.potrad/description.html
===================================================================
--- grass-addons/gipe/i.evapo.potrad/description.html 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/i.evapo.potrad/description.html 2010-04-03 08:49:00 UTC (rev 41680)
@@ -29,4 +29,4 @@
<p>
-<i>Last changed: $Date: 2008/05/02 11:58:15 $</i>
+<i>Last changed: $Date$</i>
Property changes on: grass-addons/gipe/i.evapo.potrad/description.html
___________________________________________________________________
Added: svn:mime-type
+ text/html
Added: svn:keywords
+ Author Date Id
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.evapo.potrad/et_pot_day.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.evapo.potrad/main.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.evapo.potrad/r_net_day.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.evapo.potrad/r_net_day_bandara98.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.evapo.potrad/solar_day.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.evapo.potrad/solar_day_3d.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.evapo.senay
___________________________________________________________________
Added: svn:ignore
+ OBJ.*
*.tmp.html
Property changes on: grass-addons/gipe/i.evapo.senay/Makefile
___________________________________________________________________
Added: svn:mime-type
+ text/x-makefile
Added: svn:eol-style
+ native
Modified: grass-addons/gipe/i.evapo.senay/description.html
===================================================================
--- grass-addons/gipe/i.evapo.senay/description.html 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/i.evapo.senay/description.html 2010-04-03 08:49:00 UTC (rev 41680)
@@ -36,4 +36,4 @@
<p>
-<i>Last changed: $Date: 2008/03/22 11:58:15 $</i>
+<i>Last changed: $Date$</i>
Property changes on: grass-addons/gipe/i.evapo.senay/description.html
___________________________________________________________________
Added: svn:mime-type
+ text/html
Added: svn:keywords
+ Author Date Id
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.evapo.senay/et_pot_day.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.evapo.senay/evapfr_senay.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.evapo.senay/main.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.evapo.senay/r_net_day.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.evapo.senay/r_net_day_bandara98.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.evapo.senay/solar_day.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.evapo.senay/solar_day_3d.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.lmf
___________________________________________________________________
Added: svn:ignore
+ OBJ.*
*.tmp.html
Property changes on: grass-addons/gipe/i.lmf/Makefile
___________________________________________________________________
Added: svn:mime-type
+ text/x-makefile
Added: svn:eol-style
+ native
Modified: grass-addons/gipe/i.lmf/description.html
===================================================================
--- grass-addons/gipe/i.lmf/description.html 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/i.lmf/description.html 2010-04-03 08:49:00 UTC (rev 41680)
@@ -33,4 +33,4 @@
<p>
-<i>Last changed: $Date: 2008/05/10 15:51:43 $</i>
+<i>Last changed: $Date$</i>
Property changes on: grass-addons/gipe/i.lmf/description.html
___________________________________________________________________
Added: svn:mime-type
+ text/html
Added: svn:keywords
+ Author Date Id
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.lmf/fitting.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.lmf/invert_matrix.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.lmf/lmf.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.lmf/main.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.lmf/make_matrix.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.lmf/maxmin.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.lmf/minmax.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.sattime
___________________________________________________________________
Added: svn:ignore
+ OBJ.*
*.tmp.html
Property changes on: grass-addons/gipe/i.sattime/Makefile
___________________________________________________________________
Added: svn:mime-type
+ text/x-makefile
Added: svn:eol-style
+ native
Modified: grass-addons/gipe/i.sattime/i.sattime.html
===================================================================
--- grass-addons/gipe/i.sattime/i.sattime.html 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/i.sattime/i.sattime.html 2010-04-03 08:49:00 UTC (rev 41680)
@@ -22,4 +22,4 @@
<p>
-<i>Last changed: $Date: 2007/02/19 16:19:59 $</i>
+<i>Last changed: $Date$</i>
Property changes on: grass-addons/gipe/i.sattime/i.sattime.html
___________________________________________________________________
Added: svn:mime-type
+ text/html
Added: svn:keywords
+ Author Date Id
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.sattime/main.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.vi.grid
___________________________________________________________________
Added: svn:ignore
+ OBJ.*
*.tmp.html
Modified: grass-addons/gipe/i.vi.grid/client/main.c
===================================================================
--- grass-addons/gipe/i.vi.grid/client/main.c 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/i.vi.grid/client/main.c 2010-04-03 08:49:00 UTC (rev 41680)
@@ -1,544 +1,544 @@
-/****************************************************************************
- *
- * MODULE: r.vi.grid
- * AUTHOR(S): Shamim Akhter shamimakhter at gmail.com
- Baburao Kamble baburaokamble at gmail.com
- * Yann Chemin - ychemin at gmail.com
- * PURPOSE: Calculates 13 vegetation indices
- * based on biophysical parameters.
- *
- * COPYRIGHT: (C) 2006 by the Tokyo Institute of Technology, Japan
- * (C) 2002-2006 by the GRASS Development Team
- *
- * This program is free software under the GNU General Public
- * License (>=v2). Read the file COPYING that comes with GRASS
- * for details.
- *
- * Remark:
- * These are generic indices that use red and nir for most of them.
- * Those can be any use by standard satellite having V and IR.
- * However arvi uses red, nir and blue;
- * GVI uses B,G,R,NIR, chan5 and chan 7 of landsat;
- * and GARI uses B,G,R and NIR.
- *
- *****************************************************************************/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include "gis.h"
-#include "glocale.h"
-
-//#include "grpc.h"
-#include "/usr/local/ng/include/grpc.h"
-
-#define NUM_HOSTS 4
-
-// Required for GridRPC call.
-char * hosts[] = {"gs.alab.ip.titech.ac.jp","gs.alab.ip.titech.ac.jp","gs.alab.ip.titech.ac.jp","gs.alab.ip.titech.ac.jp"};
-grpc_function_handle_t handles[NUM_HOSTS];
-grpc_sessionid_t ids[NUM_HOSTS];
-int ret;
-
-double s_r( double redchan, double nirchan );
-double nd_vi( double redchan, double nirchan );
-double ip_vi( double redchan, double nirchan );
-double d_vi( double redchan, double nirchan );
-double p_vi( double redchan, double nirchan );
-double wd_vi( double redchan, double nirchan );
-double sa_vi( double redchan, double nirchan );
-double msa_vi( double redchan, double nirchan );
-double msa_vi2( double redchan, double nirchan );
-double ge_mi( double redchan, double nirchan );
-double ar_vi( double redchan, double nirchan, double bluechan );
-double g_vi( double bluechan, double greenchan, double redchan, double nirchan, double chan5chan, double chan7chan);
-double ga_ri( double redchan, double nirchan, double bluechan, double greenchan );
-
-int main(int argc, char *argv[])
-{
- struct Cell_head cellhd; //region+header info
- char *mapset; // mapset name
- int nrows, ncols;
- int row,col;
-
- int verbose=1;
-
- //double **db;
- //int *I;
- char *viflag;// Switch for particular index
-
- struct GModule *module;
- struct Option *input1, *input2,*input3,*input4,*input5,*input6,*input7, *output;
-
- struct Flag *flag1;
- struct History history; //metadata
-
- /************************************/
- /* FMEO Declarations*****************/
- char *name; // input raster name
- char *result; //output raster name
- //File Descriptors
- int infd_redchan, infd_nirchan, infd_greenchan, infd_bluechan, infd_chan5chan, infd_chan7chan;
- int outfd;
-
- char *bluechan, *greenchan,*redchan, *nirchan, *chan5chan, *chan7chan;
-
- int i=0,j=0;
-
- void *inrast_redchan, *inrast_nirchan, *inrast_greenchan, *inrast_bluechan, *inrast_chan5chan, *inrast_chan7chan;
- unsigned char *outrast;
- RASTER_MAP_TYPE data_type_output=DCELL_TYPE;
- RASTER_MAP_TYPE data_type_redchan;
- RASTER_MAP_TYPE data_type_nirchan;
- RASTER_MAP_TYPE data_type_greenchan;
- RASTER_MAP_TYPE data_type_bluechan;
- RASTER_MAP_TYPE data_type_chan5chan;
- RASTER_MAP_TYPE data_type_chan7chan;
-
- /************************************/
- G_gisinit(argv[0]);
-
- module = G_define_module();
- //module->keywords = _("vegetation index, biophysical parameters");
- module->description = _("13 types of vegetation indices from red and nir, and only some requiring additional bands");
-
- /* Define the different options */
- input1 = G_define_option() ;
- input1->key =_("viname");
- input1->type = TYPE_STRING;
- input1->required = YES;
- input1->gisprompt =_("Name of VI");
- input1->description=_("Name of VI: sr,ndvi,ipvi,dvi,pvi,wdvi,savi,msavi,msavi2,gemi,arvi,gvi,gari.");
- input1->answer =_("ndvi");
-
- input2 = G_define_option() ;
- input2->key = _("red");
- input2->type = TYPE_STRING;
- input2->required = YES;
- input2->gisprompt =_("old,cell,raster") ;
- input2->description=_("Name of the RED Channel surface reflectance map [0.0;1.0]");
- input2->answer =_("redchan");
-
- input3 = G_define_option() ;
- input3->key =_("nir");
- input3->type = TYPE_STRING;
- input3->required = YES;
- input3->gisprompt =_("old,cell,raster");
- input3->description=_("Name of the NIR Channel surface reflectance map [0.0;1.0]");
- input3->answer =_("nirchan");
-
- input4 = G_define_option() ;
- input4->key =_("green");
- input4->type = TYPE_STRING;
- input4->required = NO;
- input4->gisprompt =_("old,cell,raster");
- input4->description=_("Name of the GREEN Channel surface reflectance map [0.0;1.0]");
-// input4->answer =_("greenchan");
-
- input5 = G_define_option() ;
- input5->key =_("blue");
- input5->type = TYPE_STRING;
- input5->required = NO;
- input5->gisprompt =_("old,cell,raster");
- input5->description=_("Name of the BLUE Channel surface reflectance map [0.0;1.0]");
-// input5->answer =_("bluechan");
-
- input6 = G_define_option() ;
- input6->key =_("chan5");
- input6->type = TYPE_STRING;
- input6->required = NO;
- input6->gisprompt =_("old,cell,raster");
- input6->description=_("Name of the CHAN5 Channel surface reflectance map [0.0;1.0]");
-// input6->answer =_("chan5chan");
-
- input7 = G_define_option() ;
- input7->key =_("chan7");
- input7->type = TYPE_STRING;
- input7->required = NO;
- input7->gisprompt =_("old,cell,raster");
- input7->description=_("Name of the CHAN7 Channel surface reflectance map [0.0;1.0]");
-// input7->answer =_("chan7chan");
-
- output= G_define_option() ;
- output->key =_("vi");
- output->type = TYPE_STRING;
- output->required = YES;
- output->gisprompt =_("new,cell,raster");
- output->description=_("Name of the output vi layer");
- output->answer =_("vi");
-
- flag1 = G_define_flag();
- flag1->key = 'q';
- flag1->description = _("Quiet");
-
- /********************/
- if (G_parser(argc, argv))
- exit (EXIT_FAILURE);
- viflag = input1->answer;
- redchan = input2->answer;
- nirchan = input3->answer;
- greenchan = input4->answer;
- bluechan = input5->answer;
- chan5chan = input6->answer;
- chan7chan = input7->answer;
-
- result = output->answer;
- verbose = (!flag1->answer);
- /***************************************************/
- mapset = G_find_cell2(redchan, "");
- if (mapset == NULL) {
- G_fatal_error(_("cell file [%s] not found"), redchan);
- }
- data_type_redchan = G_raster_map_type(redchan,mapset);
- if ( (infd_redchan = G_open_cell_old (redchan,mapset)) < 0)
- G_fatal_error (_("Cannot open cell file [%s]"), redchan);
- if (G_get_cellhd (redchan, mapset, &cellhd) < 0)
- G_fatal_error (_("Cannot read file header of [%s])"), redchan);
- inrast_redchan = G_allocate_raster_buf(data_type_redchan);
- /***************************************************/
- mapset = G_find_cell2 (nirchan, "");
- if (mapset == NULL) {
- G_fatal_error(_("cell file [%s] not found"),nirchan);
- }
- data_type_nirchan = G_raster_map_type(nirchan,mapset);
- if ( (infd_nirchan = G_open_cell_old (nirchan,mapset)) < 0)
- G_fatal_error(_("Cannot open cell file [%s]"), nirchan);
- if (G_get_cellhd (nirchan, mapset, &cellhd) < 0)
- G_fatal_error(_("Cannot read file header of [%s]"), nirchan);
- inrast_nirchan = G_allocate_raster_buf(data_type_nirchan);
- /***************************************************/
- if(greenchan){
- mapset = G_find_cell2(greenchan, "");
- if (mapset == NULL) {
- G_fatal_error(_("cell file [%s] not found"), greenchan);
- }
- data_type_greenchan = G_raster_map_type(greenchan,mapset);
- if ( (infd_greenchan = G_open_cell_old (greenchan,mapset)) < 0)
- G_fatal_error (_("Cannot open cell file [%s]"), greenchan);
- if (G_get_cellhd (greenchan, mapset, &cellhd) < 0)
- G_fatal_error (_("Cannot read file header of [%s])"), greenchan);
- inrast_greenchan = G_allocate_raster_buf(data_type_greenchan);
- }
- /***************************************************/
- if(bluechan){
- mapset = G_find_cell2(bluechan, "");
- if (mapset == NULL) {
- G_fatal_error(_("cell file [%s] not found"), bluechan);
- }
- data_type_bluechan = G_raster_map_type(bluechan,mapset);
- if ( (infd_bluechan = G_open_cell_old (bluechan,mapset)) < 0)
- G_fatal_error (_("Cannot open cell file [%s]"), bluechan);
- if (G_get_cellhd (bluechan, mapset, &cellhd) < 0)
- G_fatal_error (_("Cannot read file header of [%s])"), bluechan);
- inrast_bluechan = G_allocate_raster_buf(data_type_bluechan);
- }
- /***************************************************/
- if(chan5chan){
- mapset = G_find_cell2(chan5chan, "");
- if (mapset == NULL) {
- G_fatal_error(_("cell file [%s] not found"), chan5chan);
- }
- data_type_chan5chan = G_raster_map_type(chan5chan,mapset);
- if ( (infd_chan5chan = G_open_cell_old (chan5chan,mapset)) < 0)
- G_fatal_error (_("Cannot open cell file [%s]"), chan5chan);
- if (G_get_cellhd (chan5chan, mapset, &cellhd) < 0)
- G_fatal_error (_("Cannot read file header of [%s])"), chan5chan);
- inrast_chan5chan = G_allocate_raster_buf(data_type_chan5chan);
- }
- /***************************************************/
- if(chan7chan){
- mapset = G_find_cell2(chan7chan, "");
- if (mapset == NULL) {
- G_fatal_error(_("cell file [%s] not found"), chan7chan);
- }
- data_type_chan7chan = G_raster_map_type(chan7chan,mapset);
- if ( (infd_chan7chan = G_open_cell_old (chan7chan,mapset)) < 0)
- G_fatal_error (_("Cannot open cell file [%s]"), chan7chan);
- if (G_get_cellhd (chan7chan, mapset, &cellhd) < 0)
- G_fatal_error (_("Cannot read file header of [%s])"), chan7chan);
- inrast_chan7chan = G_allocate_raster_buf(data_type_chan7chan);
- }
- /***************************************************/
-
-
-
-
-
- G_debug(3, "number of rows %d",cellhd.rows);
- nrows = G_window_rows();
- ncols = G_window_cols();
- outrast = G_allocate_raster_buf(data_type_output);
- //nrows=8;
- /* Create New raster files */
- if ( (outfd = G_open_raster_new (result,data_type_output)) < 0)
- G_fatal_error(_("Could not open <%s>"),result);
-
- double db0[ncols],db1[ncols], db2[ncols],db3[ncols],db4[ncols],db5[ncols],R[ncols];
- int I[ncols],host_n=0;
-
-
- if((ret = grpc_initialize("/home/shamim/grass-6.0.2/raster/r.vi.grid/vi.conf") != GRPC_NO_ERROR)) {
- fprintf(stderr, "Error in grpc_initialize, %d\n",ret);
- exit(2);
- }
-
-
-
- for(i = 0; i < NUM_HOSTS; i++)
- grpc_function_handle_init(&handles[i], hosts[i], "VI_Server/VI_CALC");
-
-
- /* Process pixels */
-
- for (row = 0; row < nrows; row++)
- {
-
- host_n=host_n%NUM_HOSTS;
-
-
- DCELL d;
- DCELL d_bluechan;
- DCELL d_greenchan;
- DCELL d_redchan;
- DCELL d_nirchan;
- DCELL d_chan5chan;
- DCELL d_chan7chan;
- if(verbose)
- G_percent(row,nrows,2);
-
- /* read soil input maps */
- if(G_get_raster_row(infd_redchan,inrast_redchan,row,data_type_redchan)<0)
- G_fatal_error(_("Could not read from <%s>"),redchan);
- if(G_get_raster_row(infd_nirchan,inrast_nirchan,row,data_type_nirchan)<0)
- G_fatal_error(_("Could not read from <%s>"),nirchan);
- if(greenchan){
- if(G_get_raster_row(infd_greenchan,inrast_greenchan,row,data_type_greenchan)<0)
- G_fatal_error(_("Could not read from <%s>"),greenchan);
- }
- if(bluechan){
- if(G_get_raster_row(infd_bluechan,inrast_bluechan,row,data_type_bluechan)<0)
- G_fatal_error(_("Could not read from <%s>"),bluechan);
- }
- if(chan5chan){
- if(G_get_raster_row(infd_chan5chan,inrast_chan5chan,row,data_type_chan5chan)<0)
- G_fatal_error(_("Could not read from <%s>"),chan5chan);
- }
- if(chan7chan){
- if(G_get_raster_row(infd_chan7chan,inrast_chan7chan,row,data_type_chan7chan)<0)
- G_fatal_error(_("Could not read from <%s>"),chan7chan);
- }
- /*process the data */
- for (col=0; col < ncols; col++)
- {
- switch(data_type_redchan){
- case CELL_TYPE:
- d_redchan = (double) ((CELL *) inrast_redchan)[col];
- break;
- case FCELL_TYPE:
- d_redchan = (double) ((FCELL *) inrast_redchan)[col];
- break;
- case DCELL_TYPE:
- d_redchan = ((DCELL *) inrast_redchan)[col];
- break;
- }
- switch(data_type_nirchan){
- case CELL_TYPE:
- d_nirchan = (double) ((CELL *) inrast_nirchan)[col];
- break;
- case FCELL_TYPE:
- d_nirchan = (double) ((FCELL *) inrast_nirchan)[col];
- break;
- case DCELL_TYPE:
- d_nirchan = ((DCELL *) inrast_nirchan)[col];
- break;
- }
- if (greenchan){
- switch(data_type_greenchan){
- case CELL_TYPE:
- d_greenchan = (double) ((CELL *) inrast_greenchan)[col];
- break;
- case FCELL_TYPE:
- d_greenchan = (double) ((FCELL *) inrast_greenchan)[col];
- break;
- case DCELL_TYPE:
- d_greenchan = ((DCELL *) inrast_greenchan)[col];
- break;
- }
- }
- if (bluechan){
- switch(data_type_bluechan){
- case CELL_TYPE:
- d_bluechan = (double) ((CELL *) inrast_bluechan)[col];
- break;
- case FCELL_TYPE:
- d_bluechan = (double) ((FCELL *) inrast_bluechan)[col];
- break;
- case DCELL_TYPE:
- d_bluechan = ((DCELL *) inrast_bluechan)[col];
- break;
- }
- }
- if (chan5chan){
- switch(data_type_chan5chan){
- case CELL_TYPE:
- d_chan5chan = (double) ((CELL *) inrast_chan5chan)[col];
- break;
- case FCELL_TYPE:
- d_chan5chan = (double) ((FCELL *) inrast_chan5chan)[col];
- break;
- case DCELL_TYPE:
- d_chan5chan = ((DCELL *) inrast_chan5chan)[col];
- break;
- }
- }
- if (chan7chan){
- switch(data_type_chan7chan){
- case CELL_TYPE:
- d_chan7chan = (double) ((CELL *) inrast_chan7chan)[col];
- break;
- case FCELL_TYPE:
- d_chan7chan = (double) ((FCELL *) inrast_chan7chan)[col];
- break;
- case DCELL_TYPE:
- d_chan7chan = ((DCELL *) inrast_chan7chan)[col];
- break;
- }
- }
-
- db0[col]= d_redchan;
- db1[col]= d_nirchan;
- db2[col]= d_greenchan;
- db3[col]= d_bluechan;
- db4[col]= d_chan5chan;
- db5[col]= d_chan7chan;
-
-
- // to change to multiple to output files.
- if(G_is_d_null_value(&d_redchan)){
- i=0;
- }else if(G_is_d_null_value(&d_nirchan)){
- i=0;
- }else if((greenchan)&&G_is_d_null_value(&d_greenchan)){
- i=0;
- }else if((bluechan)&&G_is_d_null_value(&d_bluechan)){
- i=0;
- }else if((chan5chan)&&G_is_d_null_value(&d_chan5chan)){
- i=0;
- }else if((chan7chan)&&G_is_d_null_value(&d_chan7chan)){
- i=0;
- } else {
- /************************************/
- /*calculate simple_ratio */
- if (!strcoll(viflag,"sr")){
- i=1;
- }
- /*calculate ndvi */
- if (!strcoll(viflag,"ndvi")){
- i=2;
- }
- /*calculate ipvi */
- if (!strcoll(viflag,"ipvi")){
- i=3;
- }
- /*calculate dvi */
- if (!strcoll(viflag,"dvi")){
- i=4;
- }
- /*calculate pvi */
- if (!strcoll(viflag,"pvi")){
- i=5;
- }
- /*calculate wdvi */
- if (!strcoll(viflag,"wdvi")){
- i=6;
- }
- /*calculate savi */
- if (!strcoll(viflag,"savi")){
- i=7;
- }
- /*calculate msavi */
- if (!strcoll(viflag,"msavi")){
- i=8;
- }
- /*calculate msavi2 */
- if (!strcoll(viflag,"msavi2")){
- i=9;
- }
- /*calculate gemi */
- if (!strcoll(viflag,"gemi")){
- i=10;
- }
- /*calculate arvi */
- if (!strcoll(viflag,"arvi")){
- i=11;
- }
- /*calculate gvi */
- if (!strcoll(viflag,"gvi")){
- i=12;
- }
- /*calculate gari */
- if (!strcoll(viflag,"gari")){
- i=13;
- }
- I[col]=i;
-
- }
- }
-
- printf("grpc call start\n");
-
- if (grpc_call(&handles[host_n],ncols,I,db0,db1,db2,db3,db4,db5, R) != GRPC_NO_ERROR) {
- fprintf(stderr,"grpc_call ERROR\n");
- exit(2);
- }
-
-
- printf("grpc call finish\n");
- //all outcomes comes from the server will put back in raster
-
-
- for(j=0;j<ncols;j++)
- ((DCELL *) outrast)[j] = R[j];
- if (G_put_raster_row (outfd, outrast, data_type_output) < 0)
- G_fatal_error(_("Cannot write to output raster file"));
-
- host_n++;
-
- }
-
- for (i = 0;i < NUM_HOSTS; i++)
- grpc_function_handle_destruct(&handles[i]);
-
- grpc_finalize();
-
-
- G_free(inrast_redchan);
- G_close_cell(infd_redchan);
- G_free(inrast_nirchan);
- G_close_cell(infd_nirchan);
- if(greenchan){
- G_free(inrast_greenchan);
- G_close_cell(infd_greenchan);
- }
- if(bluechan){
- G_free(inrast_bluechan);
- G_close_cell(infd_bluechan);
- }
- if(chan5chan){
- G_free(inrast_chan5chan);
- G_close_cell(infd_chan5chan);
- }
- if(chan7chan){
- G_free(inrast_chan7chan);
- G_close_cell(infd_chan7chan);
- }
- G_free(outrast);
- G_close_cell(outfd);
-
- //G_short_history(result, "raster", &history);
- //G_command_history(&history);
- //G_write_history(result,&history);
-
- exit(EXIT_SUCCESS);
-}
-
+/****************************************************************************
+ *
+ * MODULE: r.vi.grid
+ * AUTHOR(S): Shamim Akhter shamimakhter at gmail.com
+ Baburao Kamble baburaokamble at gmail.com
+ * Yann Chemin - ychemin at gmail.com
+ * PURPOSE: Calculates 13 vegetation indices
+ * based on biophysical parameters.
+ *
+ * COPYRIGHT: (C) 2006 by the Tokyo Institute of Technology, Japan
+ * (C) 2002-2006 by the GRASS Development Team
+ *
+ * This program is free software under the GNU General Public
+ * License (>=v2). Read the file COPYING that comes with GRASS
+ * for details.
+ *
+ * Remark:
+ * These are generic indices that use red and nir for most of them.
+ * Those can be any use by standard satellite having V and IR.
+ * However arvi uses red, nir and blue;
+ * GVI uses B,G,R,NIR, chan5 and chan 7 of landsat;
+ * and GARI uses B,G,R and NIR.
+ *
+ *****************************************************************************/
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include "gis.h"
+#include "glocale.h"
+
+//#include "grpc.h"
+#include "/usr/local/ng/include/grpc.h"
+
+#define NUM_HOSTS 4
+
+// Required for GridRPC call.
+char * hosts[] = {"gs.alab.ip.titech.ac.jp","gs.alab.ip.titech.ac.jp","gs.alab.ip.titech.ac.jp","gs.alab.ip.titech.ac.jp"};
+grpc_function_handle_t handles[NUM_HOSTS];
+grpc_sessionid_t ids[NUM_HOSTS];
+int ret;
+
+double s_r( double redchan, double nirchan );
+double nd_vi( double redchan, double nirchan );
+double ip_vi( double redchan, double nirchan );
+double d_vi( double redchan, double nirchan );
+double p_vi( double redchan, double nirchan );
+double wd_vi( double redchan, double nirchan );
+double sa_vi( double redchan, double nirchan );
+double msa_vi( double redchan, double nirchan );
+double msa_vi2( double redchan, double nirchan );
+double ge_mi( double redchan, double nirchan );
+double ar_vi( double redchan, double nirchan, double bluechan );
+double g_vi( double bluechan, double greenchan, double redchan, double nirchan, double chan5chan, double chan7chan);
+double ga_ri( double redchan, double nirchan, double bluechan, double greenchan );
+
+int main(int argc, char *argv[])
+{
+ struct Cell_head cellhd; //region+header info
+ char *mapset; // mapset name
+ int nrows, ncols;
+ int row,col;
+
+ int verbose=1;
+
+ //double **db;
+ //int *I;
+ char *viflag;// Switch for particular index
+
+ struct GModule *module;
+ struct Option *input1, *input2,*input3,*input4,*input5,*input6,*input7, *output;
+
+ struct Flag *flag1;
+ struct History history; //metadata
+
+ /************************************/
+ /* FMEO Declarations*****************/
+ char *name; // input raster name
+ char *result; //output raster name
+ //File Descriptors
+ int infd_redchan, infd_nirchan, infd_greenchan, infd_bluechan, infd_chan5chan, infd_chan7chan;
+ int outfd;
+
+ char *bluechan, *greenchan,*redchan, *nirchan, *chan5chan, *chan7chan;
+
+ int i=0,j=0;
+
+ void *inrast_redchan, *inrast_nirchan, *inrast_greenchan, *inrast_bluechan, *inrast_chan5chan, *inrast_chan7chan;
+ unsigned char *outrast;
+ RASTER_MAP_TYPE data_type_output=DCELL_TYPE;
+ RASTER_MAP_TYPE data_type_redchan;
+ RASTER_MAP_TYPE data_type_nirchan;
+ RASTER_MAP_TYPE data_type_greenchan;
+ RASTER_MAP_TYPE data_type_bluechan;
+ RASTER_MAP_TYPE data_type_chan5chan;
+ RASTER_MAP_TYPE data_type_chan7chan;
+
+ /************************************/
+ G_gisinit(argv[0]);
+
+ module = G_define_module();
+ //module->keywords = _("vegetation index, biophysical parameters");
+ module->description = _("13 types of vegetation indices from red and nir, and only some requiring additional bands");
+
+ /* Define the different options */
+ input1 = G_define_option() ;
+ input1->key =_("viname");
+ input1->type = TYPE_STRING;
+ input1->required = YES;
+ input1->gisprompt =_("Name of VI");
+ input1->description=_("Name of VI: sr,ndvi,ipvi,dvi,pvi,wdvi,savi,msavi,msavi2,gemi,arvi,gvi,gari.");
+ input1->answer =_("ndvi");
+
+ input2 = G_define_option() ;
+ input2->key = _("red");
+ input2->type = TYPE_STRING;
+ input2->required = YES;
+ input2->gisprompt =_("old,cell,raster") ;
+ input2->description=_("Name of the RED Channel surface reflectance map [0.0;1.0]");
+ input2->answer =_("redchan");
+
+ input3 = G_define_option() ;
+ input3->key =_("nir");
+ input3->type = TYPE_STRING;
+ input3->required = YES;
+ input3->gisprompt =_("old,cell,raster");
+ input3->description=_("Name of the NIR Channel surface reflectance map [0.0;1.0]");
+ input3->answer =_("nirchan");
+
+ input4 = G_define_option() ;
+ input4->key =_("green");
+ input4->type = TYPE_STRING;
+ input4->required = NO;
+ input4->gisprompt =_("old,cell,raster");
+ input4->description=_("Name of the GREEN Channel surface reflectance map [0.0;1.0]");
+// input4->answer =_("greenchan");
+
+ input5 = G_define_option() ;
+ input5->key =_("blue");
+ input5->type = TYPE_STRING;
+ input5->required = NO;
+ input5->gisprompt =_("old,cell,raster");
+ input5->description=_("Name of the BLUE Channel surface reflectance map [0.0;1.0]");
+// input5->answer =_("bluechan");
+
+ input6 = G_define_option() ;
+ input6->key =_("chan5");
+ input6->type = TYPE_STRING;
+ input6->required = NO;
+ input6->gisprompt =_("old,cell,raster");
+ input6->description=_("Name of the CHAN5 Channel surface reflectance map [0.0;1.0]");
+// input6->answer =_("chan5chan");
+
+ input7 = G_define_option() ;
+ input7->key =_("chan7");
+ input7->type = TYPE_STRING;
+ input7->required = NO;
+ input7->gisprompt =_("old,cell,raster");
+ input7->description=_("Name of the CHAN7 Channel surface reflectance map [0.0;1.0]");
+// input7->answer =_("chan7chan");
+
+ output= G_define_option() ;
+ output->key =_("vi");
+ output->type = TYPE_STRING;
+ output->required = YES;
+ output->gisprompt =_("new,cell,raster");
+ output->description=_("Name of the output vi layer");
+ output->answer =_("vi");
+
+ flag1 = G_define_flag();
+ flag1->key = 'q';
+ flag1->description = _("Quiet");
+
+ /********************/
+ if (G_parser(argc, argv))
+ exit (EXIT_FAILURE);
+ viflag = input1->answer;
+ redchan = input2->answer;
+ nirchan = input3->answer;
+ greenchan = input4->answer;
+ bluechan = input5->answer;
+ chan5chan = input6->answer;
+ chan7chan = input7->answer;
+
+ result = output->answer;
+ verbose = (!flag1->answer);
+ /***************************************************/
+ mapset = G_find_cell2(redchan, "");
+ if (mapset == NULL) {
+ G_fatal_error(_("cell file [%s] not found"), redchan);
+ }
+ data_type_redchan = G_raster_map_type(redchan,mapset);
+ if ( (infd_redchan = G_open_cell_old (redchan,mapset)) < 0)
+ G_fatal_error (_("Cannot open cell file [%s]"), redchan);
+ if (G_get_cellhd (redchan, mapset, &cellhd) < 0)
+ G_fatal_error (_("Cannot read file header of [%s])"), redchan);
+ inrast_redchan = G_allocate_raster_buf(data_type_redchan);
+ /***************************************************/
+ mapset = G_find_cell2 (nirchan, "");
+ if (mapset == NULL) {
+ G_fatal_error(_("cell file [%s] not found"),nirchan);
+ }
+ data_type_nirchan = G_raster_map_type(nirchan,mapset);
+ if ( (infd_nirchan = G_open_cell_old (nirchan,mapset)) < 0)
+ G_fatal_error(_("Cannot open cell file [%s]"), nirchan);
+ if (G_get_cellhd (nirchan, mapset, &cellhd) < 0)
+ G_fatal_error(_("Cannot read file header of [%s]"), nirchan);
+ inrast_nirchan = G_allocate_raster_buf(data_type_nirchan);
+ /***************************************************/
+ if(greenchan){
+ mapset = G_find_cell2(greenchan, "");
+ if (mapset == NULL) {
+ G_fatal_error(_("cell file [%s] not found"), greenchan);
+ }
+ data_type_greenchan = G_raster_map_type(greenchan,mapset);
+ if ( (infd_greenchan = G_open_cell_old (greenchan,mapset)) < 0)
+ G_fatal_error (_("Cannot open cell file [%s]"), greenchan);
+ if (G_get_cellhd (greenchan, mapset, &cellhd) < 0)
+ G_fatal_error (_("Cannot read file header of [%s])"), greenchan);
+ inrast_greenchan = G_allocate_raster_buf(data_type_greenchan);
+ }
+ /***************************************************/
+ if(bluechan){
+ mapset = G_find_cell2(bluechan, "");
+ if (mapset == NULL) {
+ G_fatal_error(_("cell file [%s] not found"), bluechan);
+ }
+ data_type_bluechan = G_raster_map_type(bluechan,mapset);
+ if ( (infd_bluechan = G_open_cell_old (bluechan,mapset)) < 0)
+ G_fatal_error (_("Cannot open cell file [%s]"), bluechan);
+ if (G_get_cellhd (bluechan, mapset, &cellhd) < 0)
+ G_fatal_error (_("Cannot read file header of [%s])"), bluechan);
+ inrast_bluechan = G_allocate_raster_buf(data_type_bluechan);
+ }
+ /***************************************************/
+ if(chan5chan){
+ mapset = G_find_cell2(chan5chan, "");
+ if (mapset == NULL) {
+ G_fatal_error(_("cell file [%s] not found"), chan5chan);
+ }
+ data_type_chan5chan = G_raster_map_type(chan5chan,mapset);
+ if ( (infd_chan5chan = G_open_cell_old (chan5chan,mapset)) < 0)
+ G_fatal_error (_("Cannot open cell file [%s]"), chan5chan);
+ if (G_get_cellhd (chan5chan, mapset, &cellhd) < 0)
+ G_fatal_error (_("Cannot read file header of [%s])"), chan5chan);
+ inrast_chan5chan = G_allocate_raster_buf(data_type_chan5chan);
+ }
+ /***************************************************/
+ if(chan7chan){
+ mapset = G_find_cell2(chan7chan, "");
+ if (mapset == NULL) {
+ G_fatal_error(_("cell file [%s] not found"), chan7chan);
+ }
+ data_type_chan7chan = G_raster_map_type(chan7chan,mapset);
+ if ( (infd_chan7chan = G_open_cell_old (chan7chan,mapset)) < 0)
+ G_fatal_error (_("Cannot open cell file [%s]"), chan7chan);
+ if (G_get_cellhd (chan7chan, mapset, &cellhd) < 0)
+ G_fatal_error (_("Cannot read file header of [%s])"), chan7chan);
+ inrast_chan7chan = G_allocate_raster_buf(data_type_chan7chan);
+ }
+ /***************************************************/
+
+
+
+
+
+ G_debug(3, "number of rows %d",cellhd.rows);
+ nrows = G_window_rows();
+ ncols = G_window_cols();
+ outrast = G_allocate_raster_buf(data_type_output);
+ //nrows=8;
+ /* Create New raster files */
+ if ( (outfd = G_open_raster_new (result,data_type_output)) < 0)
+ G_fatal_error(_("Could not open <%s>"),result);
+
+ double db0[ncols],db1[ncols], db2[ncols],db3[ncols],db4[ncols],db5[ncols],R[ncols];
+ int I[ncols],host_n=0;
+
+
+ if((ret = grpc_initialize("/home/shamim/grass-6.0.2/raster/r.vi.grid/vi.conf") != GRPC_NO_ERROR)) {
+ fprintf(stderr, "Error in grpc_initialize, %d\n",ret);
+ exit(2);
+ }
+
+
+
+ for(i = 0; i < NUM_HOSTS; i++)
+ grpc_function_handle_init(&handles[i], hosts[i], "VI_Server/VI_CALC");
+
+
+ /* Process pixels */
+
+ for (row = 0; row < nrows; row++)
+ {
+
+ host_n=host_n%NUM_HOSTS;
+
+
+ DCELL d;
+ DCELL d_bluechan;
+ DCELL d_greenchan;
+ DCELL d_redchan;
+ DCELL d_nirchan;
+ DCELL d_chan5chan;
+ DCELL d_chan7chan;
+ if(verbose)
+ G_percent(row,nrows,2);
+
+ /* read soil input maps */
+ if(G_get_raster_row(infd_redchan,inrast_redchan,row,data_type_redchan)<0)
+ G_fatal_error(_("Could not read from <%s>"),redchan);
+ if(G_get_raster_row(infd_nirchan,inrast_nirchan,row,data_type_nirchan)<0)
+ G_fatal_error(_("Could not read from <%s>"),nirchan);
+ if(greenchan){
+ if(G_get_raster_row(infd_greenchan,inrast_greenchan,row,data_type_greenchan)<0)
+ G_fatal_error(_("Could not read from <%s>"),greenchan);
+ }
+ if(bluechan){
+ if(G_get_raster_row(infd_bluechan,inrast_bluechan,row,data_type_bluechan)<0)
+ G_fatal_error(_("Could not read from <%s>"),bluechan);
+ }
+ if(chan5chan){
+ if(G_get_raster_row(infd_chan5chan,inrast_chan5chan,row,data_type_chan5chan)<0)
+ G_fatal_error(_("Could not read from <%s>"),chan5chan);
+ }
+ if(chan7chan){
+ if(G_get_raster_row(infd_chan7chan,inrast_chan7chan,row,data_type_chan7chan)<0)
+ G_fatal_error(_("Could not read from <%s>"),chan7chan);
+ }
+ /*process the data */
+ for (col=0; col < ncols; col++)
+ {
+ switch(data_type_redchan){
+ case CELL_TYPE:
+ d_redchan = (double) ((CELL *) inrast_redchan)[col];
+ break;
+ case FCELL_TYPE:
+ d_redchan = (double) ((FCELL *) inrast_redchan)[col];
+ break;
+ case DCELL_TYPE:
+ d_redchan = ((DCELL *) inrast_redchan)[col];
+ break;
+ }
+ switch(data_type_nirchan){
+ case CELL_TYPE:
+ d_nirchan = (double) ((CELL *) inrast_nirchan)[col];
+ break;
+ case FCELL_TYPE:
+ d_nirchan = (double) ((FCELL *) inrast_nirchan)[col];
+ break;
+ case DCELL_TYPE:
+ d_nirchan = ((DCELL *) inrast_nirchan)[col];
+ break;
+ }
+ if (greenchan){
+ switch(data_type_greenchan){
+ case CELL_TYPE:
+ d_greenchan = (double) ((CELL *) inrast_greenchan)[col];
+ break;
+ case FCELL_TYPE:
+ d_greenchan = (double) ((FCELL *) inrast_greenchan)[col];
+ break;
+ case DCELL_TYPE:
+ d_greenchan = ((DCELL *) inrast_greenchan)[col];
+ break;
+ }
+ }
+ if (bluechan){
+ switch(data_type_bluechan){
+ case CELL_TYPE:
+ d_bluechan = (double) ((CELL *) inrast_bluechan)[col];
+ break;
+ case FCELL_TYPE:
+ d_bluechan = (double) ((FCELL *) inrast_bluechan)[col];
+ break;
+ case DCELL_TYPE:
+ d_bluechan = ((DCELL *) inrast_bluechan)[col];
+ break;
+ }
+ }
+ if (chan5chan){
+ switch(data_type_chan5chan){
+ case CELL_TYPE:
+ d_chan5chan = (double) ((CELL *) inrast_chan5chan)[col];
+ break;
+ case FCELL_TYPE:
+ d_chan5chan = (double) ((FCELL *) inrast_chan5chan)[col];
+ break;
+ case DCELL_TYPE:
+ d_chan5chan = ((DCELL *) inrast_chan5chan)[col];
+ break;
+ }
+ }
+ if (chan7chan){
+ switch(data_type_chan7chan){
+ case CELL_TYPE:
+ d_chan7chan = (double) ((CELL *) inrast_chan7chan)[col];
+ break;
+ case FCELL_TYPE:
+ d_chan7chan = (double) ((FCELL *) inrast_chan7chan)[col];
+ break;
+ case DCELL_TYPE:
+ d_chan7chan = ((DCELL *) inrast_chan7chan)[col];
+ break;
+ }
+ }
+
+ db0[col]= d_redchan;
+ db1[col]= d_nirchan;
+ db2[col]= d_greenchan;
+ db3[col]= d_bluechan;
+ db4[col]= d_chan5chan;
+ db5[col]= d_chan7chan;
+
+
+ // to change to multiple to output files.
+ if(G_is_d_null_value(&d_redchan)){
+ i=0;
+ }else if(G_is_d_null_value(&d_nirchan)){
+ i=0;
+ }else if((greenchan)&&G_is_d_null_value(&d_greenchan)){
+ i=0;
+ }else if((bluechan)&&G_is_d_null_value(&d_bluechan)){
+ i=0;
+ }else if((chan5chan)&&G_is_d_null_value(&d_chan5chan)){
+ i=0;
+ }else if((chan7chan)&&G_is_d_null_value(&d_chan7chan)){
+ i=0;
+ } else {
+ /************************************/
+ /*calculate simple_ratio */
+ if (!strcoll(viflag,"sr")){
+ i=1;
+ }
+ /*calculate ndvi */
+ if (!strcoll(viflag,"ndvi")){
+ i=2;
+ }
+ /*calculate ipvi */
+ if (!strcoll(viflag,"ipvi")){
+ i=3;
+ }
+ /*calculate dvi */
+ if (!strcoll(viflag,"dvi")){
+ i=4;
+ }
+ /*calculate pvi */
+ if (!strcoll(viflag,"pvi")){
+ i=5;
+ }
+ /*calculate wdvi */
+ if (!strcoll(viflag,"wdvi")){
+ i=6;
+ }
+ /*calculate savi */
+ if (!strcoll(viflag,"savi")){
+ i=7;
+ }
+ /*calculate msavi */
+ if (!strcoll(viflag,"msavi")){
+ i=8;
+ }
+ /*calculate msavi2 */
+ if (!strcoll(viflag,"msavi2")){
+ i=9;
+ }
+ /*calculate gemi */
+ if (!strcoll(viflag,"gemi")){
+ i=10;
+ }
+ /*calculate arvi */
+ if (!strcoll(viflag,"arvi")){
+ i=11;
+ }
+ /*calculate gvi */
+ if (!strcoll(viflag,"gvi")){
+ i=12;
+ }
+ /*calculate gari */
+ if (!strcoll(viflag,"gari")){
+ i=13;
+ }
+ I[col]=i;
+
+ }
+ }
+
+ printf("grpc call start\n");
+
+ if (grpc_call(&handles[host_n],ncols,I,db0,db1,db2,db3,db4,db5, R) != GRPC_NO_ERROR) {
+ fprintf(stderr,"grpc_call ERROR\n");
+ exit(2);
+ }
+
+
+ printf("grpc call finish\n");
+ //all outcomes comes from the server will put back in raster
+
+
+ for(j=0;j<ncols;j++)
+ ((DCELL *) outrast)[j] = R[j];
+ if (G_put_raster_row (outfd, outrast, data_type_output) < 0)
+ G_fatal_error(_("Cannot write to output raster file"));
+
+ host_n++;
+
+ }
+
+ for (i = 0;i < NUM_HOSTS; i++)
+ grpc_function_handle_destruct(&handles[i]);
+
+ grpc_finalize();
+
+
+ G_free(inrast_redchan);
+ G_close_cell(infd_redchan);
+ G_free(inrast_nirchan);
+ G_close_cell(infd_nirchan);
+ if(greenchan){
+ G_free(inrast_greenchan);
+ G_close_cell(infd_greenchan);
+ }
+ if(bluechan){
+ G_free(inrast_bluechan);
+ G_close_cell(infd_bluechan);
+ }
+ if(chan5chan){
+ G_free(inrast_chan5chan);
+ G_close_cell(infd_chan5chan);
+ }
+ if(chan7chan){
+ G_free(inrast_chan7chan);
+ G_close_cell(infd_chan7chan);
+ }
+ G_free(outrast);
+ G_close_cell(outfd);
+
+ //G_short_history(result, "raster", &history);
+ //G_command_history(&history);
+ //G_write_history(result,&history);
+
+ exit(EXIT_SUCCESS);
+}
+
Property changes on: grass-addons/gipe/i.vi.grid/client/main.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Modified: grass-addons/gipe/i.vi.grid/client/r.vi.grid/Makefile
===================================================================
--- grass-addons/gipe/i.vi.grid/client/r.vi.grid/Makefile 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/i.vi.grid/client/r.vi.grid/Makefile 2010-04-03 08:49:00 UTC (rev 41680)
@@ -1,11 +1,11 @@
-MODULE_TOPDIR = ../..
-CC=ng_cc
-PGM = r.vi.grid
-
-LIBES = $(GISLIB) $(GMATHLIB)
-DEPENDENCIES = $(GISDEP) $(GMATHDEP)
-
-include $(MODULE_TOPDIR)/include/Make/Module.make
-
-default: cmd
-CC=ng_cc
+MODULE_TOPDIR = ../..
+CC=ng_cc
+PGM = r.vi.grid
+
+LIBES = $(GISLIB) $(GMATHLIB)
+DEPENDENCIES = $(GISDEP) $(GMATHDEP)
+
+include $(MODULE_TOPDIR)/include/Make/Module.make
+
+default: cmd
+CC=ng_cc
Property changes on: grass-addons/gipe/i.vi.grid/client/r.vi.grid/Makefile
___________________________________________________________________
Added: svn:mime-type
+ text/x-makefile
Added: svn:eol-style
+ native
Modified: grass-addons/gipe/i.vi.grid/client/r.vi.grid/main.c
===================================================================
--- grass-addons/gipe/i.vi.grid/client/r.vi.grid/main.c 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/i.vi.grid/client/r.vi.grid/main.c 2010-04-03 08:49:00 UTC (rev 41680)
@@ -1,544 +1,544 @@
-/****************************************************************************
- *
- * MODULE: r.vi.grid
- * AUTHOR(S): Shamim Akhter shamimakhter at gmail.com
- Baburao Kamble baburaokamble at gmail.com
- * Yann Chemin - ychemin at gmail.com
- * PURPOSE: Calculates 13 vegetation indices
- * based on biophysical parameters.
- *
- * COPYRIGHT: (C) 2006 by the Tokyo Institute of Technology, Japan
- * (C) 2002-2006 by the GRASS Development Team
- *
- * This program is free software under the GNU General Public
- * License (>=v2). Read the file COPYING that comes with GRASS
- * for details.
- *
- * Remark:
- * These are generic indices that use red and nir for most of them.
- * Those can be any use by standard satellite having V and IR.
- * However arvi uses red, nir and blue;
- * GVI uses B,G,R,NIR, chan5 and chan 7 of landsat;
- * and GARI uses B,G,R and NIR.
- *
- *****************************************************************************/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include "gis.h"
-#include "glocale.h"
-
-//#include "grpc.h"
-#include "/usr/local/ng/include/grpc.h"
-
-#define NUM_HOSTS 4
-
-// Required for GridRPC call.
-char * hosts[] = {"gs.alab.ip.titech.ac.jp","gs.alab.ip.titech.ac.jp","gs.alab.ip.titech.ac.jp","gs.alab.ip.titech.ac.jp"};
-grpc_function_handle_t handles[NUM_HOSTS];
-grpc_sessionid_t ids[NUM_HOSTS];
-int ret;
-
-double s_r( double redchan, double nirchan );
-double nd_vi( double redchan, double nirchan );
-double ip_vi( double redchan, double nirchan );
-double d_vi( double redchan, double nirchan );
-double p_vi( double redchan, double nirchan );
-double wd_vi( double redchan, double nirchan );
-double sa_vi( double redchan, double nirchan );
-double msa_vi( double redchan, double nirchan );
-double msa_vi2( double redchan, double nirchan );
-double ge_mi( double redchan, double nirchan );
-double ar_vi( double redchan, double nirchan, double bluechan );
-double g_vi( double bluechan, double greenchan, double redchan, double nirchan, double chan5chan, double chan7chan);
-double ga_ri( double redchan, double nirchan, double bluechan, double greenchan );
-
-int main(int argc, char *argv[])
-{
- struct Cell_head cellhd; //region+header info
- char *mapset; // mapset name
- int nrows, ncols;
- int row,col;
-
- int verbose=1;
-
- //double **db;
- //int *I;
- char *viflag;// Switch for particular index
-
- struct GModule *module;
- struct Option *input1, *input2,*input3,*input4,*input5,*input6,*input7, *output;
-
- struct Flag *flag1;
- struct History history; //metadata
-
- /************************************/
- /* FMEO Declarations*****************/
- char *name; // input raster name
- char *result; //output raster name
- //File Descriptors
- int infd_redchan, infd_nirchan, infd_greenchan, infd_bluechan, infd_chan5chan, infd_chan7chan;
- int outfd;
-
- char *bluechan, *greenchan,*redchan, *nirchan, *chan5chan, *chan7chan;
-
- int i=0,j=0;
-
- void *inrast_redchan, *inrast_nirchan, *inrast_greenchan, *inrast_bluechan, *inrast_chan5chan, *inrast_chan7chan;
- unsigned char *outrast;
- RASTER_MAP_TYPE data_type_output=DCELL_TYPE;
- RASTER_MAP_TYPE data_type_redchan;
- RASTER_MAP_TYPE data_type_nirchan;
- RASTER_MAP_TYPE data_type_greenchan;
- RASTER_MAP_TYPE data_type_bluechan;
- RASTER_MAP_TYPE data_type_chan5chan;
- RASTER_MAP_TYPE data_type_chan7chan;
-
- /************************************/
- G_gisinit(argv[0]);
-
- module = G_define_module();
- //module->keywords = _("vegetation index, biophysical parameters");
- module->description = _("13 types of vegetation indices from red and nir, and only some requiring additional bands");
-
- /* Define the different options */
- input1 = G_define_option() ;
- input1->key =_("viname");
- input1->type = TYPE_STRING;
- input1->required = YES;
- input1->gisprompt =_("Name of VI");
- input1->description=_("Name of VI: sr,ndvi,ipvi,dvi,pvi,wdvi,savi,msavi,msavi2,gemi,arvi,gvi,gari.");
- input1->answer =_("ndvi");
-
- input2 = G_define_option() ;
- input2->key = _("red");
- input2->type = TYPE_STRING;
- input2->required = YES;
- input2->gisprompt =_("old,cell,raster") ;
- input2->description=_("Name of the RED Channel surface reflectance map [0.0;1.0]");
- input2->answer =_("redchan");
-
- input3 = G_define_option() ;
- input3->key =_("nir");
- input3->type = TYPE_STRING;
- input3->required = YES;
- input3->gisprompt =_("old,cell,raster");
- input3->description=_("Name of the NIR Channel surface reflectance map [0.0;1.0]");
- input3->answer =_("nirchan");
-
- input4 = G_define_option() ;
- input4->key =_("green");
- input4->type = TYPE_STRING;
- input4->required = NO;
- input4->gisprompt =_("old,cell,raster");
- input4->description=_("Name of the GREEN Channel surface reflectance map [0.0;1.0]");
-// input4->answer =_("greenchan");
-
- input5 = G_define_option() ;
- input5->key =_("blue");
- input5->type = TYPE_STRING;
- input5->required = NO;
- input5->gisprompt =_("old,cell,raster");
- input5->description=_("Name of the BLUE Channel surface reflectance map [0.0;1.0]");
-// input5->answer =_("bluechan");
-
- input6 = G_define_option() ;
- input6->key =_("chan5");
- input6->type = TYPE_STRING;
- input6->required = NO;
- input6->gisprompt =_("old,cell,raster");
- input6->description=_("Name of the CHAN5 Channel surface reflectance map [0.0;1.0]");
-// input6->answer =_("chan5chan");
-
- input7 = G_define_option() ;
- input7->key =_("chan7");
- input7->type = TYPE_STRING;
- input7->required = NO;
- input7->gisprompt =_("old,cell,raster");
- input7->description=_("Name of the CHAN7 Channel surface reflectance map [0.0;1.0]");
-// input7->answer =_("chan7chan");
-
- output= G_define_option() ;
- output->key =_("vi");
- output->type = TYPE_STRING;
- output->required = YES;
- output->gisprompt =_("new,cell,raster");
- output->description=_("Name of the output vi layer");
- output->answer =_("vi");
-
- flag1 = G_define_flag();
- flag1->key = 'q';
- flag1->description = _("Quiet");
-
- /********************/
- if (G_parser(argc, argv))
- exit (EXIT_FAILURE);
- viflag = input1->answer;
- redchan = input2->answer;
- nirchan = input3->answer;
- greenchan = input4->answer;
- bluechan = input5->answer;
- chan5chan = input6->answer;
- chan7chan = input7->answer;
-
- result = output->answer;
- verbose = (!flag1->answer);
- /***************************************************/
- mapset = G_find_cell2(redchan, "");
- if (mapset == NULL) {
- G_fatal_error(_("cell file [%s] not found"), redchan);
- }
- data_type_redchan = G_raster_map_type(redchan,mapset);
- if ( (infd_redchan = G_open_cell_old (redchan,mapset)) < 0)
- G_fatal_error (_("Cannot open cell file [%s]"), redchan);
- if (G_get_cellhd (redchan, mapset, &cellhd) < 0)
- G_fatal_error (_("Cannot read file header of [%s])"), redchan);
- inrast_redchan = G_allocate_raster_buf(data_type_redchan);
- /***************************************************/
- mapset = G_find_cell2 (nirchan, "");
- if (mapset == NULL) {
- G_fatal_error(_("cell file [%s] not found"),nirchan);
- }
- data_type_nirchan = G_raster_map_type(nirchan,mapset);
- if ( (infd_nirchan = G_open_cell_old (nirchan,mapset)) < 0)
- G_fatal_error(_("Cannot open cell file [%s]"), nirchan);
- if (G_get_cellhd (nirchan, mapset, &cellhd) < 0)
- G_fatal_error(_("Cannot read file header of [%s]"), nirchan);
- inrast_nirchan = G_allocate_raster_buf(data_type_nirchan);
- /***************************************************/
- if(greenchan){
- mapset = G_find_cell2(greenchan, "");
- if (mapset == NULL) {
- G_fatal_error(_("cell file [%s] not found"), greenchan);
- }
- data_type_greenchan = G_raster_map_type(greenchan,mapset);
- if ( (infd_greenchan = G_open_cell_old (greenchan,mapset)) < 0)
- G_fatal_error (_("Cannot open cell file [%s]"), greenchan);
- if (G_get_cellhd (greenchan, mapset, &cellhd) < 0)
- G_fatal_error (_("Cannot read file header of [%s])"), greenchan);
- inrast_greenchan = G_allocate_raster_buf(data_type_greenchan);
- }
- /***************************************************/
- if(bluechan){
- mapset = G_find_cell2(bluechan, "");
- if (mapset == NULL) {
- G_fatal_error(_("cell file [%s] not found"), bluechan);
- }
- data_type_bluechan = G_raster_map_type(bluechan,mapset);
- if ( (infd_bluechan = G_open_cell_old (bluechan,mapset)) < 0)
- G_fatal_error (_("Cannot open cell file [%s]"), bluechan);
- if (G_get_cellhd (bluechan, mapset, &cellhd) < 0)
- G_fatal_error (_("Cannot read file header of [%s])"), bluechan);
- inrast_bluechan = G_allocate_raster_buf(data_type_bluechan);
- }
- /***************************************************/
- if(chan5chan){
- mapset = G_find_cell2(chan5chan, "");
- if (mapset == NULL) {
- G_fatal_error(_("cell file [%s] not found"), chan5chan);
- }
- data_type_chan5chan = G_raster_map_type(chan5chan,mapset);
- if ( (infd_chan5chan = G_open_cell_old (chan5chan,mapset)) < 0)
- G_fatal_error (_("Cannot open cell file [%s]"), chan5chan);
- if (G_get_cellhd (chan5chan, mapset, &cellhd) < 0)
- G_fatal_error (_("Cannot read file header of [%s])"), chan5chan);
- inrast_chan5chan = G_allocate_raster_buf(data_type_chan5chan);
- }
- /***************************************************/
- if(chan7chan){
- mapset = G_find_cell2(chan7chan, "");
- if (mapset == NULL) {
- G_fatal_error(_("cell file [%s] not found"), chan7chan);
- }
- data_type_chan7chan = G_raster_map_type(chan7chan,mapset);
- if ( (infd_chan7chan = G_open_cell_old (chan7chan,mapset)) < 0)
- G_fatal_error (_("Cannot open cell file [%s]"), chan7chan);
- if (G_get_cellhd (chan7chan, mapset, &cellhd) < 0)
- G_fatal_error (_("Cannot read file header of [%s])"), chan7chan);
- inrast_chan7chan = G_allocate_raster_buf(data_type_chan7chan);
- }
- /***************************************************/
-
-
-
-
-
- G_debug(3, "number of rows %d",cellhd.rows);
- nrows = G_window_rows();
- ncols = G_window_cols();
- outrast = G_allocate_raster_buf(data_type_output);
- //nrows=8;
- /* Create New raster files */
- if ( (outfd = G_open_raster_new (result,data_type_output)) < 0)
- G_fatal_error(_("Could not open <%s>"),result);
-
- double db0[ncols],db1[ncols], db2[ncols],db3[ncols],db4[ncols],db5[ncols],R[ncols];
- int I[ncols],host_n=0;
-
-
- if((ret = grpc_initialize("/home/shamim/grass-6.0.2/raster/r.vi.grid/vi.conf") != GRPC_NO_ERROR)) {
- fprintf(stderr, "Error in grpc_initialize, %d\n",ret);
- exit(2);
- }
-
-
-
- for(i = 0; i < NUM_HOSTS; i++)
- grpc_function_handle_init(&handles[i], hosts[i], "VI_Server/VI_CALC");
-
-
- /* Process pixels */
-
- for (row = 0; row < nrows; row++)
- {
-
- host_n=host_n%NUM_HOSTS;
-
-
- DCELL d;
- DCELL d_bluechan;
- DCELL d_greenchan;
- DCELL d_redchan;
- DCELL d_nirchan;
- DCELL d_chan5chan;
- DCELL d_chan7chan;
- if(verbose)
- G_percent(row,nrows,2);
-
- /* read soil input maps */
- if(G_get_raster_row(infd_redchan,inrast_redchan,row,data_type_redchan)<0)
- G_fatal_error(_("Could not read from <%s>"),redchan);
- if(G_get_raster_row(infd_nirchan,inrast_nirchan,row,data_type_nirchan)<0)
- G_fatal_error(_("Could not read from <%s>"),nirchan);
- if(greenchan){
- if(G_get_raster_row(infd_greenchan,inrast_greenchan,row,data_type_greenchan)<0)
- G_fatal_error(_("Could not read from <%s>"),greenchan);
- }
- if(bluechan){
- if(G_get_raster_row(infd_bluechan,inrast_bluechan,row,data_type_bluechan)<0)
- G_fatal_error(_("Could not read from <%s>"),bluechan);
- }
- if(chan5chan){
- if(G_get_raster_row(infd_chan5chan,inrast_chan5chan,row,data_type_chan5chan)<0)
- G_fatal_error(_("Could not read from <%s>"),chan5chan);
- }
- if(chan7chan){
- if(G_get_raster_row(infd_chan7chan,inrast_chan7chan,row,data_type_chan7chan)<0)
- G_fatal_error(_("Could not read from <%s>"),chan7chan);
- }
- /*process the data */
- for (col=0; col < ncols; col++)
- {
- switch(data_type_redchan){
- case CELL_TYPE:
- d_redchan = (double) ((CELL *) inrast_redchan)[col];
- break;
- case FCELL_TYPE:
- d_redchan = (double) ((FCELL *) inrast_redchan)[col];
- break;
- case DCELL_TYPE:
- d_redchan = ((DCELL *) inrast_redchan)[col];
- break;
- }
- switch(data_type_nirchan){
- case CELL_TYPE:
- d_nirchan = (double) ((CELL *) inrast_nirchan)[col];
- break;
- case FCELL_TYPE:
- d_nirchan = (double) ((FCELL *) inrast_nirchan)[col];
- break;
- case DCELL_TYPE:
- d_nirchan = ((DCELL *) inrast_nirchan)[col];
- break;
- }
- if (greenchan){
- switch(data_type_greenchan){
- case CELL_TYPE:
- d_greenchan = (double) ((CELL *) inrast_greenchan)[col];
- break;
- case FCELL_TYPE:
- d_greenchan = (double) ((FCELL *) inrast_greenchan)[col];
- break;
- case DCELL_TYPE:
- d_greenchan = ((DCELL *) inrast_greenchan)[col];
- break;
- }
- }
- if (bluechan){
- switch(data_type_bluechan){
- case CELL_TYPE:
- d_bluechan = (double) ((CELL *) inrast_bluechan)[col];
- break;
- case FCELL_TYPE:
- d_bluechan = (double) ((FCELL *) inrast_bluechan)[col];
- break;
- case DCELL_TYPE:
- d_bluechan = ((DCELL *) inrast_bluechan)[col];
- break;
- }
- }
- if (chan5chan){
- switch(data_type_chan5chan){
- case CELL_TYPE:
- d_chan5chan = (double) ((CELL *) inrast_chan5chan)[col];
- break;
- case FCELL_TYPE:
- d_chan5chan = (double) ((FCELL *) inrast_chan5chan)[col];
- break;
- case DCELL_TYPE:
- d_chan5chan = ((DCELL *) inrast_chan5chan)[col];
- break;
- }
- }
- if (chan7chan){
- switch(data_type_chan7chan){
- case CELL_TYPE:
- d_chan7chan = (double) ((CELL *) inrast_chan7chan)[col];
- break;
- case FCELL_TYPE:
- d_chan7chan = (double) ((FCELL *) inrast_chan7chan)[col];
- break;
- case DCELL_TYPE:
- d_chan7chan = ((DCELL *) inrast_chan7chan)[col];
- break;
- }
- }
-
- db0[col]= d_redchan;
- db1[col]= d_nirchan;
- db2[col]= d_greenchan;
- db3[col]= d_bluechan;
- db4[col]= d_chan5chan;
- db5[col]= d_chan7chan;
-
-
- // to change to multiple to output files.
- if(G_is_d_null_value(&d_redchan)){
- i=0;
- }else if(G_is_d_null_value(&d_nirchan)){
- i=0;
- }else if((greenchan)&&G_is_d_null_value(&d_greenchan)){
- i=0;
- }else if((bluechan)&&G_is_d_null_value(&d_bluechan)){
- i=0;
- }else if((chan5chan)&&G_is_d_null_value(&d_chan5chan)){
- i=0;
- }else if((chan7chan)&&G_is_d_null_value(&d_chan7chan)){
- i=0;
- } else {
- /************************************/
- /*calculate simple_ratio */
- if (!strcoll(viflag,"sr")){
- i=1;
- }
- /*calculate ndvi */
- if (!strcoll(viflag,"ndvi")){
- i=2;
- }
- /*calculate ipvi */
- if (!strcoll(viflag,"ipvi")){
- i=3;
- }
- /*calculate dvi */
- if (!strcoll(viflag,"dvi")){
- i=4;
- }
- /*calculate pvi */
- if (!strcoll(viflag,"pvi")){
- i=5;
- }
- /*calculate wdvi */
- if (!strcoll(viflag,"wdvi")){
- i=6;
- }
- /*calculate savi */
- if (!strcoll(viflag,"savi")){
- i=7;
- }
- /*calculate msavi */
- if (!strcoll(viflag,"msavi")){
- i=8;
- }
- /*calculate msavi2 */
- if (!strcoll(viflag,"msavi2")){
- i=9;
- }
- /*calculate gemi */
- if (!strcoll(viflag,"gemi")){
- i=10;
- }
- /*calculate arvi */
- if (!strcoll(viflag,"arvi")){
- i=11;
- }
- /*calculate gvi */
- if (!strcoll(viflag,"gvi")){
- i=12;
- }
- /*calculate gari */
- if (!strcoll(viflag,"gari")){
- i=13;
- }
- I[col]=i;
-
- }
- }
-
- printf("grpc call start\n");
-
- if (grpc_call(&handles[host_n],ncols,I,db0,db1,db2,db3,db4,db5, R) != GRPC_NO_ERROR) {
- fprintf(stderr,"grpc_call ERROR\n");
- exit(2);
- }
-
-
- printf("grpc call finish\n");
- //all outcomes comes from the server will put back in raster
-
-
- for(j=0;j<ncols;j++)
- ((DCELL *) outrast)[j] = R[j];
- if (G_put_raster_row (outfd, outrast, data_type_output) < 0)
- G_fatal_error(_("Cannot write to output raster file"));
-
- host_n++;
-
- }
-
- for (i = 0;i < NUM_HOSTS; i++)
- grpc_function_handle_destruct(&handles[i]);
-
- grpc_finalize();
-
-
- G_free(inrast_redchan);
- G_close_cell(infd_redchan);
- G_free(inrast_nirchan);
- G_close_cell(infd_nirchan);
- if(greenchan){
- G_free(inrast_greenchan);
- G_close_cell(infd_greenchan);
- }
- if(bluechan){
- G_free(inrast_bluechan);
- G_close_cell(infd_bluechan);
- }
- if(chan5chan){
- G_free(inrast_chan5chan);
- G_close_cell(infd_chan5chan);
- }
- if(chan7chan){
- G_free(inrast_chan7chan);
- G_close_cell(infd_chan7chan);
- }
- G_free(outrast);
- G_close_cell(outfd);
-
- //G_short_history(result, "raster", &history);
- //G_command_history(&history);
- //G_write_history(result,&history);
-
- exit(EXIT_SUCCESS);
-}
-
+/****************************************************************************
+ *
+ * MODULE: r.vi.grid
+ * AUTHOR(S): Shamim Akhter shamimakhter at gmail.com
+ Baburao Kamble baburaokamble at gmail.com
+ * Yann Chemin - ychemin at gmail.com
+ * PURPOSE: Calculates 13 vegetation indices
+ * based on biophysical parameters.
+ *
+ * COPYRIGHT: (C) 2006 by the Tokyo Institute of Technology, Japan
+ * (C) 2002-2006 by the GRASS Development Team
+ *
+ * This program is free software under the GNU General Public
+ * License (>=v2). Read the file COPYING that comes with GRASS
+ * for details.
+ *
+ * Remark:
+ * These are generic indices that use red and nir for most of them.
+ * Those can be any use by standard satellite having V and IR.
+ * However arvi uses red, nir and blue;
+ * GVI uses B,G,R,NIR, chan5 and chan 7 of landsat;
+ * and GARI uses B,G,R and NIR.
+ *
+ *****************************************************************************/
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include "gis.h"
+#include "glocale.h"
+
+//#include "grpc.h"
+#include "/usr/local/ng/include/grpc.h"
+
+#define NUM_HOSTS 4
+
+// Required for GridRPC call.
+char * hosts[] = {"gs.alab.ip.titech.ac.jp","gs.alab.ip.titech.ac.jp","gs.alab.ip.titech.ac.jp","gs.alab.ip.titech.ac.jp"};
+grpc_function_handle_t handles[NUM_HOSTS];
+grpc_sessionid_t ids[NUM_HOSTS];
+int ret;
+
+double s_r( double redchan, double nirchan );
+double nd_vi( double redchan, double nirchan );
+double ip_vi( double redchan, double nirchan );
+double d_vi( double redchan, double nirchan );
+double p_vi( double redchan, double nirchan );
+double wd_vi( double redchan, double nirchan );
+double sa_vi( double redchan, double nirchan );
+double msa_vi( double redchan, double nirchan );
+double msa_vi2( double redchan, double nirchan );
+double ge_mi( double redchan, double nirchan );
+double ar_vi( double redchan, double nirchan, double bluechan );
+double g_vi( double bluechan, double greenchan, double redchan, double nirchan, double chan5chan, double chan7chan);
+double ga_ri( double redchan, double nirchan, double bluechan, double greenchan );
+
+int main(int argc, char *argv[])
+{
+ struct Cell_head cellhd; //region+header info
+ char *mapset; // mapset name
+ int nrows, ncols;
+ int row,col;
+
+ int verbose=1;
+
+ //double **db;
+ //int *I;
+ char *viflag;// Switch for particular index
+
+ struct GModule *module;
+ struct Option *input1, *input2,*input3,*input4,*input5,*input6,*input7, *output;
+
+ struct Flag *flag1;
+ struct History history; //metadata
+
+ /************************************/
+ /* FMEO Declarations*****************/
+ char *name; // input raster name
+ char *result; //output raster name
+ //File Descriptors
+ int infd_redchan, infd_nirchan, infd_greenchan, infd_bluechan, infd_chan5chan, infd_chan7chan;
+ int outfd;
+
+ char *bluechan, *greenchan,*redchan, *nirchan, *chan5chan, *chan7chan;
+
+ int i=0,j=0;
+
+ void *inrast_redchan, *inrast_nirchan, *inrast_greenchan, *inrast_bluechan, *inrast_chan5chan, *inrast_chan7chan;
+ unsigned char *outrast;
+ RASTER_MAP_TYPE data_type_output=DCELL_TYPE;
+ RASTER_MAP_TYPE data_type_redchan;
+ RASTER_MAP_TYPE data_type_nirchan;
+ RASTER_MAP_TYPE data_type_greenchan;
+ RASTER_MAP_TYPE data_type_bluechan;
+ RASTER_MAP_TYPE data_type_chan5chan;
+ RASTER_MAP_TYPE data_type_chan7chan;
+
+ /************************************/
+ G_gisinit(argv[0]);
+
+ module = G_define_module();
+ //module->keywords = _("vegetation index, biophysical parameters");
+ module->description = _("13 types of vegetation indices from red and nir, and only some requiring additional bands");
+
+ /* Define the different options */
+ input1 = G_define_option() ;
+ input1->key =_("viname");
+ input1->type = TYPE_STRING;
+ input1->required = YES;
+ input1->gisprompt =_("Name of VI");
+ input1->description=_("Name of VI: sr,ndvi,ipvi,dvi,pvi,wdvi,savi,msavi,msavi2,gemi,arvi,gvi,gari.");
+ input1->answer =_("ndvi");
+
+ input2 = G_define_option() ;
+ input2->key = _("red");
+ input2->type = TYPE_STRING;
+ input2->required = YES;
+ input2->gisprompt =_("old,cell,raster") ;
+ input2->description=_("Name of the RED Channel surface reflectance map [0.0;1.0]");
+ input2->answer =_("redchan");
+
+ input3 = G_define_option() ;
+ input3->key =_("nir");
+ input3->type = TYPE_STRING;
+ input3->required = YES;
+ input3->gisprompt =_("old,cell,raster");
+ input3->description=_("Name of the NIR Channel surface reflectance map [0.0;1.0]");
+ input3->answer =_("nirchan");
+
+ input4 = G_define_option() ;
+ input4->key =_("green");
+ input4->type = TYPE_STRING;
+ input4->required = NO;
+ input4->gisprompt =_("old,cell,raster");
+ input4->description=_("Name of the GREEN Channel surface reflectance map [0.0;1.0]");
+// input4->answer =_("greenchan");
+
+ input5 = G_define_option() ;
+ input5->key =_("blue");
+ input5->type = TYPE_STRING;
+ input5->required = NO;
+ input5->gisprompt =_("old,cell,raster");
+ input5->description=_("Name of the BLUE Channel surface reflectance map [0.0;1.0]");
+// input5->answer =_("bluechan");
+
+ input6 = G_define_option() ;
+ input6->key =_("chan5");
+ input6->type = TYPE_STRING;
+ input6->required = NO;
+ input6->gisprompt =_("old,cell,raster");
+ input6->description=_("Name of the CHAN5 Channel surface reflectance map [0.0;1.0]");
+// input6->answer =_("chan5chan");
+
+ input7 = G_define_option() ;
+ input7->key =_("chan7");
+ input7->type = TYPE_STRING;
+ input7->required = NO;
+ input7->gisprompt =_("old,cell,raster");
+ input7->description=_("Name of the CHAN7 Channel surface reflectance map [0.0;1.0]");
+// input7->answer =_("chan7chan");
+
+ output= G_define_option() ;
+ output->key =_("vi");
+ output->type = TYPE_STRING;
+ output->required = YES;
+ output->gisprompt =_("new,cell,raster");
+ output->description=_("Name of the output vi layer");
+ output->answer =_("vi");
+
+ flag1 = G_define_flag();
+ flag1->key = 'q';
+ flag1->description = _("Quiet");
+
+ /********************/
+ if (G_parser(argc, argv))
+ exit (EXIT_FAILURE);
+ viflag = input1->answer;
+ redchan = input2->answer;
+ nirchan = input3->answer;
+ greenchan = input4->answer;
+ bluechan = input5->answer;
+ chan5chan = input6->answer;
+ chan7chan = input7->answer;
+
+ result = output->answer;
+ verbose = (!flag1->answer);
+ /***************************************************/
+ mapset = G_find_cell2(redchan, "");
+ if (mapset == NULL) {
+ G_fatal_error(_("cell file [%s] not found"), redchan);
+ }
+ data_type_redchan = G_raster_map_type(redchan,mapset);
+ if ( (infd_redchan = G_open_cell_old (redchan,mapset)) < 0)
+ G_fatal_error (_("Cannot open cell file [%s]"), redchan);
+ if (G_get_cellhd (redchan, mapset, &cellhd) < 0)
+ G_fatal_error (_("Cannot read file header of [%s])"), redchan);
+ inrast_redchan = G_allocate_raster_buf(data_type_redchan);
+ /***************************************************/
+ mapset = G_find_cell2 (nirchan, "");
+ if (mapset == NULL) {
+ G_fatal_error(_("cell file [%s] not found"),nirchan);
+ }
+ data_type_nirchan = G_raster_map_type(nirchan,mapset);
+ if ( (infd_nirchan = G_open_cell_old (nirchan,mapset)) < 0)
+ G_fatal_error(_("Cannot open cell file [%s]"), nirchan);
+ if (G_get_cellhd (nirchan, mapset, &cellhd) < 0)
+ G_fatal_error(_("Cannot read file header of [%s]"), nirchan);
+ inrast_nirchan = G_allocate_raster_buf(data_type_nirchan);
+ /***************************************************/
+ if(greenchan){
+ mapset = G_find_cell2(greenchan, "");
+ if (mapset == NULL) {
+ G_fatal_error(_("cell file [%s] not found"), greenchan);
+ }
+ data_type_greenchan = G_raster_map_type(greenchan,mapset);
+ if ( (infd_greenchan = G_open_cell_old (greenchan,mapset)) < 0)
+ G_fatal_error (_("Cannot open cell file [%s]"), greenchan);
+ if (G_get_cellhd (greenchan, mapset, &cellhd) < 0)
+ G_fatal_error (_("Cannot read file header of [%s])"), greenchan);
+ inrast_greenchan = G_allocate_raster_buf(data_type_greenchan);
+ }
+ /***************************************************/
+ if(bluechan){
+ mapset = G_find_cell2(bluechan, "");
+ if (mapset == NULL) {
+ G_fatal_error(_("cell file [%s] not found"), bluechan);
+ }
+ data_type_bluechan = G_raster_map_type(bluechan,mapset);
+ if ( (infd_bluechan = G_open_cell_old (bluechan,mapset)) < 0)
+ G_fatal_error (_("Cannot open cell file [%s]"), bluechan);
+ if (G_get_cellhd (bluechan, mapset, &cellhd) < 0)
+ G_fatal_error (_("Cannot read file header of [%s])"), bluechan);
+ inrast_bluechan = G_allocate_raster_buf(data_type_bluechan);
+ }
+ /***************************************************/
+ if(chan5chan){
+ mapset = G_find_cell2(chan5chan, "");
+ if (mapset == NULL) {
+ G_fatal_error(_("cell file [%s] not found"), chan5chan);
+ }
+ data_type_chan5chan = G_raster_map_type(chan5chan,mapset);
+ if ( (infd_chan5chan = G_open_cell_old (chan5chan,mapset)) < 0)
+ G_fatal_error (_("Cannot open cell file [%s]"), chan5chan);
+ if (G_get_cellhd (chan5chan, mapset, &cellhd) < 0)
+ G_fatal_error (_("Cannot read file header of [%s])"), chan5chan);
+ inrast_chan5chan = G_allocate_raster_buf(data_type_chan5chan);
+ }
+ /***************************************************/
+ if(chan7chan){
+ mapset = G_find_cell2(chan7chan, "");
+ if (mapset == NULL) {
+ G_fatal_error(_("cell file [%s] not found"), chan7chan);
+ }
+ data_type_chan7chan = G_raster_map_type(chan7chan,mapset);
+ if ( (infd_chan7chan = G_open_cell_old (chan7chan,mapset)) < 0)
+ G_fatal_error (_("Cannot open cell file [%s]"), chan7chan);
+ if (G_get_cellhd (chan7chan, mapset, &cellhd) < 0)
+ G_fatal_error (_("Cannot read file header of [%s])"), chan7chan);
+ inrast_chan7chan = G_allocate_raster_buf(data_type_chan7chan);
+ }
+ /***************************************************/
+
+
+
+
+
+ G_debug(3, "number of rows %d",cellhd.rows);
+ nrows = G_window_rows();
+ ncols = G_window_cols();
+ outrast = G_allocate_raster_buf(data_type_output);
+ //nrows=8;
+ /* Create New raster files */
+ if ( (outfd = G_open_raster_new (result,data_type_output)) < 0)
+ G_fatal_error(_("Could not open <%s>"),result);
+
+ double db0[ncols],db1[ncols], db2[ncols],db3[ncols],db4[ncols],db5[ncols],R[ncols];
+ int I[ncols],host_n=0;
+
+
+ if((ret = grpc_initialize("/home/shamim/grass-6.0.2/raster/r.vi.grid/vi.conf") != GRPC_NO_ERROR)) {
+ fprintf(stderr, "Error in grpc_initialize, %d\n",ret);
+ exit(2);
+ }
+
+
+
+ for(i = 0; i < NUM_HOSTS; i++)
+ grpc_function_handle_init(&handles[i], hosts[i], "VI_Server/VI_CALC");
+
+
+ /* Process pixels */
+
+ for (row = 0; row < nrows; row++)
+ {
+
+ host_n=host_n%NUM_HOSTS;
+
+
+ DCELL d;
+ DCELL d_bluechan;
+ DCELL d_greenchan;
+ DCELL d_redchan;
+ DCELL d_nirchan;
+ DCELL d_chan5chan;
+ DCELL d_chan7chan;
+ if(verbose)
+ G_percent(row,nrows,2);
+
+ /* read soil input maps */
+ if(G_get_raster_row(infd_redchan,inrast_redchan,row,data_type_redchan)<0)
+ G_fatal_error(_("Could not read from <%s>"),redchan);
+ if(G_get_raster_row(infd_nirchan,inrast_nirchan,row,data_type_nirchan)<0)
+ G_fatal_error(_("Could not read from <%s>"),nirchan);
+ if(greenchan){
+ if(G_get_raster_row(infd_greenchan,inrast_greenchan,row,data_type_greenchan)<0)
+ G_fatal_error(_("Could not read from <%s>"),greenchan);
+ }
+ if(bluechan){
+ if(G_get_raster_row(infd_bluechan,inrast_bluechan,row,data_type_bluechan)<0)
+ G_fatal_error(_("Could not read from <%s>"),bluechan);
+ }
+ if(chan5chan){
+ if(G_get_raster_row(infd_chan5chan,inrast_chan5chan,row,data_type_chan5chan)<0)
+ G_fatal_error(_("Could not read from <%s>"),chan5chan);
+ }
+ if(chan7chan){
+ if(G_get_raster_row(infd_chan7chan,inrast_chan7chan,row,data_type_chan7chan)<0)
+ G_fatal_error(_("Could not read from <%s>"),chan7chan);
+ }
+ /*process the data */
+ for (col=0; col < ncols; col++)
+ {
+ switch(data_type_redchan){
+ case CELL_TYPE:
+ d_redchan = (double) ((CELL *) inrast_redchan)[col];
+ break;
+ case FCELL_TYPE:
+ d_redchan = (double) ((FCELL *) inrast_redchan)[col];
+ break;
+ case DCELL_TYPE:
+ d_redchan = ((DCELL *) inrast_redchan)[col];
+ break;
+ }
+ switch(data_type_nirchan){
+ case CELL_TYPE:
+ d_nirchan = (double) ((CELL *) inrast_nirchan)[col];
+ break;
+ case FCELL_TYPE:
+ d_nirchan = (double) ((FCELL *) inrast_nirchan)[col];
+ break;
+ case DCELL_TYPE:
+ d_nirchan = ((DCELL *) inrast_nirchan)[col];
+ break;
+ }
+ if (greenchan){
+ switch(data_type_greenchan){
+ case CELL_TYPE:
+ d_greenchan = (double) ((CELL *) inrast_greenchan)[col];
+ break;
+ case FCELL_TYPE:
+ d_greenchan = (double) ((FCELL *) inrast_greenchan)[col];
+ break;
+ case DCELL_TYPE:
+ d_greenchan = ((DCELL *) inrast_greenchan)[col];
+ break;
+ }
+ }
+ if (bluechan){
+ switch(data_type_bluechan){
+ case CELL_TYPE:
+ d_bluechan = (double) ((CELL *) inrast_bluechan)[col];
+ break;
+ case FCELL_TYPE:
+ d_bluechan = (double) ((FCELL *) inrast_bluechan)[col];
+ break;
+ case DCELL_TYPE:
+ d_bluechan = ((DCELL *) inrast_bluechan)[col];
+ break;
+ }
+ }
+ if (chan5chan){
+ switch(data_type_chan5chan){
+ case CELL_TYPE:
+ d_chan5chan = (double) ((CELL *) inrast_chan5chan)[col];
+ break;
+ case FCELL_TYPE:
+ d_chan5chan = (double) ((FCELL *) inrast_chan5chan)[col];
+ break;
+ case DCELL_TYPE:
+ d_chan5chan = ((DCELL *) inrast_chan5chan)[col];
+ break;
+ }
+ }
+ if (chan7chan){
+ switch(data_type_chan7chan){
+ case CELL_TYPE:
+ d_chan7chan = (double) ((CELL *) inrast_chan7chan)[col];
+ break;
+ case FCELL_TYPE:
+ d_chan7chan = (double) ((FCELL *) inrast_chan7chan)[col];
+ break;
+ case DCELL_TYPE:
+ d_chan7chan = ((DCELL *) inrast_chan7chan)[col];
+ break;
+ }
+ }
+
+ db0[col]= d_redchan;
+ db1[col]= d_nirchan;
+ db2[col]= d_greenchan;
+ db3[col]= d_bluechan;
+ db4[col]= d_chan5chan;
+ db5[col]= d_chan7chan;
+
+
+ // to change to multiple to output files.
+ if(G_is_d_null_value(&d_redchan)){
+ i=0;
+ }else if(G_is_d_null_value(&d_nirchan)){
+ i=0;
+ }else if((greenchan)&&G_is_d_null_value(&d_greenchan)){
+ i=0;
+ }else if((bluechan)&&G_is_d_null_value(&d_bluechan)){
+ i=0;
+ }else if((chan5chan)&&G_is_d_null_value(&d_chan5chan)){
+ i=0;
+ }else if((chan7chan)&&G_is_d_null_value(&d_chan7chan)){
+ i=0;
+ } else {
+ /************************************/
+ /*calculate simple_ratio */
+ if (!strcoll(viflag,"sr")){
+ i=1;
+ }
+ /*calculate ndvi */
+ if (!strcoll(viflag,"ndvi")){
+ i=2;
+ }
+ /*calculate ipvi */
+ if (!strcoll(viflag,"ipvi")){
+ i=3;
+ }
+ /*calculate dvi */
+ if (!strcoll(viflag,"dvi")){
+ i=4;
+ }
+ /*calculate pvi */
+ if (!strcoll(viflag,"pvi")){
+ i=5;
+ }
+ /*calculate wdvi */
+ if (!strcoll(viflag,"wdvi")){
+ i=6;
+ }
+ /*calculate savi */
+ if (!strcoll(viflag,"savi")){
+ i=7;
+ }
+ /*calculate msavi */
+ if (!strcoll(viflag,"msavi")){
+ i=8;
+ }
+ /*calculate msavi2 */
+ if (!strcoll(viflag,"msavi2")){
+ i=9;
+ }
+ /*calculate gemi */
+ if (!strcoll(viflag,"gemi")){
+ i=10;
+ }
+ /*calculate arvi */
+ if (!strcoll(viflag,"arvi")){
+ i=11;
+ }
+ /*calculate gvi */
+ if (!strcoll(viflag,"gvi")){
+ i=12;
+ }
+ /*calculate gari */
+ if (!strcoll(viflag,"gari")){
+ i=13;
+ }
+ I[col]=i;
+
+ }
+ }
+
+ printf("grpc call start\n");
+
+ if (grpc_call(&handles[host_n],ncols,I,db0,db1,db2,db3,db4,db5, R) != GRPC_NO_ERROR) {
+ fprintf(stderr,"grpc_call ERROR\n");
+ exit(2);
+ }
+
+
+ printf("grpc call finish\n");
+ //all outcomes comes from the server will put back in raster
+
+
+ for(j=0;j<ncols;j++)
+ ((DCELL *) outrast)[j] = R[j];
+ if (G_put_raster_row (outfd, outrast, data_type_output) < 0)
+ G_fatal_error(_("Cannot write to output raster file"));
+
+ host_n++;
+
+ }
+
+ for (i = 0;i < NUM_HOSTS; i++)
+ grpc_function_handle_destruct(&handles[i]);
+
+ grpc_finalize();
+
+
+ G_free(inrast_redchan);
+ G_close_cell(infd_redchan);
+ G_free(inrast_nirchan);
+ G_close_cell(infd_nirchan);
+ if(greenchan){
+ G_free(inrast_greenchan);
+ G_close_cell(infd_greenchan);
+ }
+ if(bluechan){
+ G_free(inrast_bluechan);
+ G_close_cell(infd_bluechan);
+ }
+ if(chan5chan){
+ G_free(inrast_chan5chan);
+ G_close_cell(infd_chan5chan);
+ }
+ if(chan7chan){
+ G_free(inrast_chan7chan);
+ G_close_cell(infd_chan7chan);
+ }
+ G_free(outrast);
+ G_close_cell(outfd);
+
+ //G_short_history(result, "raster", &history);
+ //G_command_history(&history);
+ //G_write_history(result,&history);
+
+ exit(EXIT_SUCCESS);
+}
+
Property changes on: grass-addons/gipe/i.vi.grid/client/r.vi.grid/main.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Modified: grass-addons/gipe/i.vi.grid/description.html
===================================================================
--- grass-addons/gipe/i.vi.grid/description.html 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/i.vi.grid/description.html 2010-04-03 08:49:00 UTC (rev 41680)
@@ -1,60 +1,60 @@
-<H2>DESCRIPTION</H2>
-
-<EM>r.vi</EM> calculates vegetation indices based on biophysical parameters.
-
-1. RVI: ratio vegetation index:
-2. NDVI: Normalized Difference Vegetation Index
-3: IPVI: Infrared Percentage Vegetation Index
-4: DVI: Difference Vegetation Index
-5: PVI: Perpendicular Vegetation Index
-6: WDVI: Weighted Difference Vegetation Index
-7: SAVI: Soil Adjusted Vegetation Index
-8: GARI: Green atmospherically resistant vegetation index
-9: MSAVI: Modified Soil Adjusted Vegetation Index
-10:MSAVI2: second Modified Soil Adjusted Vegetation Index
-11:GEMI: Global Environmental Monitoring Index
-12:ARVI: atmospherically resistant vegetation indices
-13:GVI: Green Vegetation Index
-
-NDVI
-Data Type Band Numbers ([IR, Red])
-TM Bands= [4,3]
-MSS Bands = [7, 5]
-AVHRR Bands = [2, 1]
-SPOT XS Bands = [3, 2]
-AVIRIS Bands = [51, 29]
-
-
-(AVHRR) NDVI = (channel 2 - channel 1) / (channel 2 + channel 1)
-
-
-<H2>NOTES</H2>
-Originally from kepler.gps.caltech.edu
-A FAQ on Vegetation in Remote Sensing
-Written by Terrill W. Ray
- Div. of Geological and Planetary Sciences
- California Institute of Technology
-email: terrill at mars1.gps.caltech.edu
-Snail Mail: Terrill Ray
- Division of Geological and Planetary Sciences
- Caltech
- Mail Code 170-25
- Pasadena, CA 91125
-
-<H2>TODO</H2>
-
-
-<H2>SEE ALSO</H2>
-
-<em>
-<A HREF="r.albedo.html">r.albedo</A><br>
-</em>
-
-
-<H2>AUTHORS</H2>
-Baburao Kamble, Asian Institute of Technology, Thailand<BR>
-Yann Chemin, Asian Institute of Technology, Thailand<BR>
-
-
-<p>
-<i>Last changed: $Date: 2006/10/09 21:30:42 $</i>
+<H2>DESCRIPTION</H2>
+
+<EM>r.vi</EM> calculates vegetation indices based on biophysical parameters.
+
+1. RVI: ratio vegetation index:
+2. NDVI: Normalized Difference Vegetation Index
+3: IPVI: Infrared Percentage Vegetation Index
+4: DVI: Difference Vegetation Index
+5: PVI: Perpendicular Vegetation Index
+6: WDVI: Weighted Difference Vegetation Index
+7: SAVI: Soil Adjusted Vegetation Index
+8: GARI: Green atmospherically resistant vegetation index
+9: MSAVI: Modified Soil Adjusted Vegetation Index
+10:MSAVI2: second Modified Soil Adjusted Vegetation Index
+11:GEMI: Global Environmental Monitoring Index
+12:ARVI: atmospherically resistant vegetation indices
+13:GVI: Green Vegetation Index
+
+NDVI
+Data Type Band Numbers ([IR, Red])
+TM Bands= [4,3]
+MSS Bands = [7, 5]
+AVHRR Bands = [2, 1]
+SPOT XS Bands = [3, 2]
+AVIRIS Bands = [51, 29]
+
+
+(AVHRR) NDVI = (channel 2 - channel 1) / (channel 2 + channel 1)
+
+
+<H2>NOTES</H2>
+Originally from kepler.gps.caltech.edu
+A FAQ on Vegetation in Remote Sensing
+Written by Terrill W. Ray
+ Div. of Geological and Planetary Sciences
+ California Institute of Technology
+email: terrill at mars1.gps.caltech.edu
+Snail Mail: Terrill Ray
+ Division of Geological and Planetary Sciences
+ Caltech
+ Mail Code 170-25
+ Pasadena, CA 91125
+
+<H2>TODO</H2>
+
+
+<H2>SEE ALSO</H2>
+
+<em>
+<A HREF="r.albedo.html">r.albedo</A><br>
+</em>
+
+
+<H2>AUTHORS</H2>
+Baburao Kamble, Asian Institute of Technology, Thailand<BR>
+Yann Chemin, Asian Institute of Technology, Thailand<BR>
+
+
+<p>
+<i>Last changed: $Date$</i>
Property changes on: grass-addons/gipe/i.vi.grid/description.html
___________________________________________________________________
Added: svn:mime-type
+ text/html
Added: svn:keywords
+ Author Date Id
Added: svn:eol-style
+ native
Modified: grass-addons/gipe/i.vi.grid/description_grid.html
===================================================================
--- grass-addons/gipe/i.vi.grid/description_grid.html 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/i.vi.grid/description_grid.html 2010-04-03 08:49:00 UTC (rev 41680)
@@ -1,24 +1,24 @@
-<H2>DESCRIPTION</H2>
-
-<EM>r.vi.grid</EM> How to run the code.
-
-1. Client Side:
- i.the Client module is actually the r.vi.grid module which will run as GRASS module.
- ii.copy the Client module to Grass/raster directory as r.vi.grid
- iii.we just need to make first
- iv. cd ../..; sudo make install; cd raster/r.vi.grid
- v. After copy the ngdef file from server, change the vi.conf file as thespecific server name and ngdef file name. Remember if you dont have any schedular then remove all the lines from the <INVOKE> to </INVOKE> and jobmanager xxx line and invoke_server xxx line.
-
-
-1. Server Side:
- i.Compile the idl file with ng_gen
- ng_gen VI_Server.idl
- ii.To make the necessary stub files run th efollowing comments
- make -f VI_Server.mak
- iii. then copy the xxx.xx.xx.ngdef file to the Client side r.vi.grid directory.
-
-<H2>AUTHORS</H2>
-Shamim Akhter, Tokyo Institute of Technology, Japan<BR>
-Yann Chemin, Asian Institute of Technology, Thailand<BR>
-
-
+<H2>DESCRIPTION</H2>
+
+<EM>r.vi.grid</EM> How to run the code.
+
+1. Client Side:
+ i.the Client module is actually the r.vi.grid module which will run as GRASS module.
+ ii.copy the Client module to Grass/raster directory as r.vi.grid
+ iii.we just need to make first
+ iv. cd ../..; sudo make install; cd raster/r.vi.grid
+ v. After copy the ngdef file from server, change the vi.conf file as thespecific server name and ngdef file name. Remember if you dont have any schedular then remove all the lines from the <INVOKE> to </INVOKE> and jobmanager xxx line and invoke_server xxx line.
+
+
+1. Server Side:
+ i.Compile the idl file with ng_gen
+ ng_gen VI_Server.idl
+ ii.To make the necessary stub files run th efollowing comments
+ make -f VI_Server.mak
+ iii. then copy the xxx.xx.xx.ngdef file to the Client side r.vi.grid directory.
+
+<H2>AUTHORS</H2>
+Shamim Akhter, Tokyo Institute of Technology, Japan<BR>
+Yann Chemin, Asian Institute of Technology, Thailand<BR>
+
+
Property changes on: grass-addons/gipe/i.vi.grid/description_grid.html
___________________________________________________________________
Added: svn:mime-type
+ text/html
Added: svn:keywords
+ Author Date Id
Added: svn:eol-style
+ native
Modified: grass-addons/gipe/i.vi.grid/server/VI_ServerC.c
===================================================================
--- grass-addons/gipe/i.vi.grid/server/VI_ServerC.c 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/i.vi.grid/server/VI_ServerC.c 2010-04-03 08:49:00 UTC (rev 41680)
@@ -1,138 +1,138 @@
-#include<stdio.h>
-#include<math.h>
-#include<stdlib.h>
-#include<unistd.h>
-
-void VI_CALC(int n, int *I, double *a,double *b, double *c, double *d, double *e, double *f,double *r)
-{
-
-
- int col,t,temp;
- char hname[256];
- //temp=400;
- gethostname(hname, (int) sizeof(hname));
- printf("Hostname:%s\n",hname);
- //printf("temp=%d\n",temp);
- for (col=0; col<n; col++)
- {
- // for(t=0;t<temp;t++){
- if (I[col]==0) r[col]=-999.99;
- else if (I[col]==1){
- //sr
- if( a[col] == 0.0 ){
- r[col] = -1.0;
- } else {
- r[col] = (b[col]/ a[col]);
- }
- }
- else if (I[col]==2){
- //ndvi
- if( ( b[col] + a[col] ) == 0.0 ){
- r[col] = -1.0;
- } else {
- r[col] = ( b[col] - a[col] ) / ( b[col] + a[col] );
- }
- }
- else if (I[col]==3){
- //ipvi
-
- if( ( b[col] + a[col] ) == 0.0 ){
- r[col] = -1.0;
- } else {
- r[col] = ( b[col] ) / ( b[col] + a[col] );
- }
-
- }
- else if (I[col]==4){
- //dvi
- if( ( b[col] + a[col] ) == 0.0 ){
- r[col] = -1.0;
- } else {
- r[col] = ( b[col] - a[col] ) ;
- }
- }
- else if (I[col]==5){
- //pvi
- if( ( b[col] + a[col] ) == 0.0 ){
- r[col] = -1.0;
- } else {
- r[col] = (sin(1) * b[col] ) / ( cos(1) * a[col] );
-
- }
-
- }
- else if (I[col]==6){
- //wdvi
- double slope=1;//slope of soil line //
- if( ( b[col] + a[col] ) == 0.0 ){
- r[col] = -1.0;
- } else {
- r[col] = ( b[col] - slope*a[col] );
-
- }
- }
- else if (I[col]==7){
- //savi
- if( ( b[col] + a[col] ) == 0.0 ){
- r[col] = -1.0;
-
- } else {
-
- r[col] = ((1+0.5)*( b[col] - a[col] )) / ( b[col] + a[col] +0.5);
-
- }
- }
- else if (I[col]==8){
- //msavi
- if( ( b[col] + a[col] ) == 0.0 ){
- r[col] = -1.0;
-
- } else {
-
- r[col] =(1/2)*(2 * (b[col]+1)-sqrt((2*b[col]+1)*(2*b[col]+1))-(8 *(b[col]-a[col]))) ;
-
- }
- }
- else if (I[col]==9){
- //msavi2
- if( ( b[col] + a[col] ) == 0.0 ){
- r[col] = -1.0;
- } else {
-
- r[col] =(1/2)*(2 * (b[col]+1)-sqrt((2*b[col]+1)*(2*b[col]+1))-(8 *(b[col]-a[col]))) ;
- }
- }
- else if (I[col]==10){
- //gemi
- if( ( b[col] + a[col] ) == 0.0 ){
- r[col] = -1.0;
- } else {
- r[col] = (( (2*((b[col] * b[col])-(a[col] * a[col]))+1.5*b[col]+0.5*a[col]) /(b[col]+ a[col] + 0.5)) * (1 - 0.25 * (2*((b[col] * b[col])-(a[col] * a[col]))+1.5*b[col]+0.5*a[col]) /(b[col] + a[col] + 0.5))) -( (a[col] - 0.125) / (1 - a[col])) ;
-
- }
- }
- else if (I[col]==11){
- //arvi
- if( ( b[col] + a[col] ) == 0.0 ){
- r[col] = -1.0;
- } else {
- r[col] = ( b[col] - (2*a[col] - d[col])) / ( b[col] + (2*a[col] - d[col]));
- }
- }
- else if (I[col]==12){
- //gvi
- if( ( b[col] + a[col] ) == 0.0 ){
- r[col] = -1.0;
- } else {
- r[col] = (-0.2848*d[col]-0.2435*c[col]-0.5436*a[col]+0.7243*b[col]+0.0840*e[col]- 0.1800*f[col]);
- }
- }
- else if (I[col]==13){
- //gari
- r[col] = ( b[col] - (c[col]-(d[col] - a[col]))) / ( b[col] + (c[col]-(d[col] - a[col]))) ;
- }
- // } //t
- }//for col end
-
-
-}//function end
+#include<stdio.h>
+#include<math.h>
+#include<stdlib.h>
+#include<unistd.h>
+
+void VI_CALC(int n, int *I, double *a,double *b, double *c, double *d, double *e, double *f,double *r)
+{
+
+
+ int col,t,temp;
+ char hname[256];
+ //temp=400;
+ gethostname(hname, (int) sizeof(hname));
+ printf("Hostname:%s\n",hname);
+ //printf("temp=%d\n",temp);
+ for (col=0; col<n; col++)
+ {
+ // for(t=0;t<temp;t++){
+ if (I[col]==0) r[col]=-999.99;
+ else if (I[col]==1){
+ //sr
+ if( a[col] == 0.0 ){
+ r[col] = -1.0;
+ } else {
+ r[col] = (b[col]/ a[col]);
+ }
+ }
+ else if (I[col]==2){
+ //ndvi
+ if( ( b[col] + a[col] ) == 0.0 ){
+ r[col] = -1.0;
+ } else {
+ r[col] = ( b[col] - a[col] ) / ( b[col] + a[col] );
+ }
+ }
+ else if (I[col]==3){
+ //ipvi
+
+ if( ( b[col] + a[col] ) == 0.0 ){
+ r[col] = -1.0;
+ } else {
+ r[col] = ( b[col] ) / ( b[col] + a[col] );
+ }
+
+ }
+ else if (I[col]==4){
+ //dvi
+ if( ( b[col] + a[col] ) == 0.0 ){
+ r[col] = -1.0;
+ } else {
+ r[col] = ( b[col] - a[col] ) ;
+ }
+ }
+ else if (I[col]==5){
+ //pvi
+ if( ( b[col] + a[col] ) == 0.0 ){
+ r[col] = -1.0;
+ } else {
+ r[col] = (sin(1) * b[col] ) / ( cos(1) * a[col] );
+
+ }
+
+ }
+ else if (I[col]==6){
+ //wdvi
+ double slope=1;//slope of soil line //
+ if( ( b[col] + a[col] ) == 0.0 ){
+ r[col] = -1.0;
+ } else {
+ r[col] = ( b[col] - slope*a[col] );
+
+ }
+ }
+ else if (I[col]==7){
+ //savi
+ if( ( b[col] + a[col] ) == 0.0 ){
+ r[col] = -1.0;
+
+ } else {
+
+ r[col] = ((1+0.5)*( b[col] - a[col] )) / ( b[col] + a[col] +0.5);
+
+ }
+ }
+ else if (I[col]==8){
+ //msavi
+ if( ( b[col] + a[col] ) == 0.0 ){
+ r[col] = -1.0;
+
+ } else {
+
+ r[col] =(1/2)*(2 * (b[col]+1)-sqrt((2*b[col]+1)*(2*b[col]+1))-(8 *(b[col]-a[col]))) ;
+
+ }
+ }
+ else if (I[col]==9){
+ //msavi2
+ if( ( b[col] + a[col] ) == 0.0 ){
+ r[col] = -1.0;
+ } else {
+
+ r[col] =(1/2)*(2 * (b[col]+1)-sqrt((2*b[col]+1)*(2*b[col]+1))-(8 *(b[col]-a[col]))) ;
+ }
+ }
+ else if (I[col]==10){
+ //gemi
+ if( ( b[col] + a[col] ) == 0.0 ){
+ r[col] = -1.0;
+ } else {
+ r[col] = (( (2*((b[col] * b[col])-(a[col] * a[col]))+1.5*b[col]+0.5*a[col]) /(b[col]+ a[col] + 0.5)) * (1 - 0.25 * (2*((b[col] * b[col])-(a[col] * a[col]))+1.5*b[col]+0.5*a[col]) /(b[col] + a[col] + 0.5))) -( (a[col] - 0.125) / (1 - a[col])) ;
+
+ }
+ }
+ else if (I[col]==11){
+ //arvi
+ if( ( b[col] + a[col] ) == 0.0 ){
+ r[col] = -1.0;
+ } else {
+ r[col] = ( b[col] - (2*a[col] - d[col])) / ( b[col] + (2*a[col] - d[col]));
+ }
+ }
+ else if (I[col]==12){
+ //gvi
+ if( ( b[col] + a[col] ) == 0.0 ){
+ r[col] = -1.0;
+ } else {
+ r[col] = (-0.2848*d[col]-0.2435*c[col]-0.5436*a[col]+0.7243*b[col]+0.0840*e[col]- 0.1800*f[col]);
+ }
+ }
+ else if (I[col]==13){
+ //gari
+ r[col] = ( b[col] - (c[col]-(d[col] - a[col]))) / ( b[col] + (c[col]-(d[col] - a[col]))) ;
+ }
+ // } //t
+ }//for col end
+
+
+}//function end
Property changes on: grass-addons/gipe/i.vi.grid/server/VI_ServerC.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.vi.grid/server/_stub_VI_CALC.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.vi.mpi
___________________________________________________________________
Added: svn:ignore
+ OBJ.*
*.tmp.html
Modified: grass-addons/gipe/i.vi.mpi/Makefile
===================================================================
--- grass-addons/gipe/i.vi.mpi/Makefile 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/i.vi.mpi/Makefile 2010-04-03 08:49:00 UTC (rev 41680)
@@ -1,15 +1,15 @@
-MODULE_TOPDIR = ../..
-CC=mpicc --static
-PGM = i.vi.mpi
-
-LIBES = $(GISLIB) $(GMATHLIB)
-DEPENDENCIES = $(GISDEP) $(GMATHDEP)
-
-include $(MODULE_TOPDIR)/include/Make/Module.make
-
-ifneq ($(USE_LARGEFILES),)
- EXTRA_CFLAGS = -D_FILE_OFFSET_BITS=64
-endif
-
-default: cmd
-CC=mpicc
+MODULE_TOPDIR = ../..
+CC=mpicc --static
+PGM = i.vi.mpi
+
+LIBES = $(GISLIB) $(GMATHLIB)
+DEPENDENCIES = $(GISDEP) $(GMATHDEP)
+
+include $(MODULE_TOPDIR)/include/Make/Module.make
+
+ifneq ($(USE_LARGEFILES),)
+ EXTRA_CFLAGS = -D_FILE_OFFSET_BITS=64
+endif
+
+default: cmd
+CC=mpicc
Property changes on: grass-addons/gipe/i.vi.mpi/Makefile
___________________________________________________________________
Added: svn:mime-type
+ text/x-makefile
Added: svn:eol-style
+ native
Modified: grass-addons/gipe/i.vi.mpi/description.html
===================================================================
--- grass-addons/gipe/i.vi.mpi/description.html 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/i.vi.mpi/description.html 2010-04-03 08:49:00 UTC (rev 41680)
@@ -1,64 +1,64 @@
-<H2>DESCRIPTION</H2>
-
-<EM>i.vi</EM> calculates vegetation indices based on biophysical parameters.
-
-
- <ul>
- <li>RVI: ratio vegetation index:</li>
- <li>NDVI: Normalized Difference Vegetation Index</li>
- <li>IPVI: Infrared Percentage Vegetation Index</li>
- <li>DVI: Difference Vegetation Index</li>
- <li>PVI: Perpendicular Vegetation Index</li>
- <li>WDVI: Weighted Difference Vegetation Index</li>
- <li>SAVI: Soil Adjusted Vegetation Index</li>
- <li>GARI: Green atmospherically resistant vegetation index</li>
- <li>MSAVI: Modified Soil Adjusted Vegetation Index</li>
- <li>MSAVI2: second Modified Soil Adjusted Vegetation Index</li>
- <li>GEMI: Global Environmental Monitoring Index</li>
- <li>ARVI: atmospherically resistant vegetation indices</li>
- <li>GVI: Green Vegetation Index</li>
- </ul>
-
-<H2>Description</H2>
-
-NDVI
- <ul>
- <li>Data Type Band Numbers ([IR, Red]) </li>
- <li>TM Bands= [4,3] </li>
- <li>MSS Bands = [7, 5] </li>
- <li>AVHRR Bands = [2, 1] </li>
- <li>SPOT XS Bands = [3, 2] </li>
- <li>AVIRIS Bands = [51, 29] </li>
- <li> example: (AVHRR) NDVI = (channel 2 - channel 1) / (channel 2 + channel 1)</li>
- </ul>
-
-<H2>NOTES</H2>
-Originally from kepler.gps.caltech.edu <br>
-A FAQ on Vegetation in Remote Sensing <br>
-Written by Terrill W. Ray <br>
- Div. of Geological and Planetary Sciences<br>
- California Institute of Technology<br>
-email: terrill at mars1.gps.caltech.edu<br>
-Snail Mail: Terrill Ray<br>
- Division of Geological and Planetary Sciences<br>
- Caltech<br>
- Mail Code 170-25<br>
- Pasadena, CA 91125<br>
-
-<H2>TODO</H2>
-
-
-<H2>SEE ALSO</H2>
-
-<em>
-<A HREF="i.albedo.html">i.albedo</A><br>
-</em>
-
-
-<H2>AUTHORS</H2>
-Baburao Kamble, Asian Institute of Technology, Thailand<BR>
-Yann Chemin, Asian Institute of Technology, Thailand<BR>
-
-
-<p>
-<i>Last changed: $Date: 2006/10/09 21:30:42 $</i>
+<H2>DESCRIPTION</H2>
+
+<EM>i.vi</EM> calculates vegetation indices based on biophysical parameters.
+
+
+ <ul>
+ <li>RVI: ratio vegetation index:</li>
+ <li>NDVI: Normalized Difference Vegetation Index</li>
+ <li>IPVI: Infrared Percentage Vegetation Index</li>
+ <li>DVI: Difference Vegetation Index</li>
+ <li>PVI: Perpendicular Vegetation Index</li>
+ <li>WDVI: Weighted Difference Vegetation Index</li>
+ <li>SAVI: Soil Adjusted Vegetation Index</li>
+ <li>GARI: Green atmospherically resistant vegetation index</li>
+ <li>MSAVI: Modified Soil Adjusted Vegetation Index</li>
+ <li>MSAVI2: second Modified Soil Adjusted Vegetation Index</li>
+ <li>GEMI: Global Environmental Monitoring Index</li>
+ <li>ARVI: atmospherically resistant vegetation indices</li>
+ <li>GVI: Green Vegetation Index</li>
+ </ul>
+
+<H2>Description</H2>
+
+NDVI
+ <ul>
+ <li>Data Type Band Numbers ([IR, Red]) </li>
+ <li>TM Bands= [4,3] </li>
+ <li>MSS Bands = [7, 5] </li>
+ <li>AVHRR Bands = [2, 1] </li>
+ <li>SPOT XS Bands = [3, 2] </li>
+ <li>AVIRIS Bands = [51, 29] </li>
+ <li> example: (AVHRR) NDVI = (channel 2 - channel 1) / (channel 2 + channel 1)</li>
+ </ul>
+
+<H2>NOTES</H2>
+Originally from kepler.gps.caltech.edu <br>
+A FAQ on Vegetation in Remote Sensing <br>
+Written by Terrill W. Ray <br>
+ Div. of Geological and Planetary Sciences<br>
+ California Institute of Technology<br>
+email: terrill at mars1.gps.caltech.edu<br>
+Snail Mail: Terrill Ray<br>
+ Division of Geological and Planetary Sciences<br>
+ Caltech<br>
+ Mail Code 170-25<br>
+ Pasadena, CA 91125<br>
+
+<H2>TODO</H2>
+
+
+<H2>SEE ALSO</H2>
+
+<em>
+<A HREF="i.albedo.html">i.albedo</A><br>
+</em>
+
+
+<H2>AUTHORS</H2>
+Baburao Kamble, Asian Institute of Technology, Thailand<BR>
+Yann Chemin, Asian Institute of Technology, Thailand<BR>
+
+
+<p>
+<i>Last changed: $Date$</i>
Property changes on: grass-addons/gipe/i.vi.mpi/description.html
___________________________________________________________________
Added: svn:mime-type
+ text/html
Added: svn:keywords
+ Author Date Id
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.vi.mpi/main.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.vi.mpi/run.sh
___________________________________________________________________
Added: svn:mime-type
+ text/x-sh
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.water
___________________________________________________________________
Added: svn:ignore
+ OBJ.*
*.tmp.html
Property changes on: grass-addons/gipe/i.water/Makefile
___________________________________________________________________
Added: svn:mime-type
+ text/x-makefile
Added: svn:eol-style
+ native
Modified: grass-addons/gipe/i.water/description.html
===================================================================
--- grass-addons/gipe/i.water/description.html 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/i.water/description.html 2010-04-03 08:49:00 UTC (rev 41680)
@@ -29,4 +29,4 @@
<p>
-<i>Last changed: $Date: 2008/06/27 10:00:00 $</i>
+<i>Last changed: $Date$</i>
Property changes on: grass-addons/gipe/i.water/description.html
___________________________________________________________________
Added: svn:mime-type
+ text/html
Added: svn:keywords
+ Author Date Id
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.water/main.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.water/water.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.water/water_modis.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.wi
___________________________________________________________________
Added: svn:ignore
+ OBJ.*
*.tmp.html
Modified: grass-addons/gipe/i.wi/Makefile
===================================================================
--- grass-addons/gipe/i.wi/Makefile 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/i.wi/Makefile 2010-04-03 08:49:00 UTC (rev 41680)
@@ -1,14 +1,14 @@
-MODULE_TOPDIR = ../..
-
-PGM = i.wi
-
-LIBES = $(GISLIB)
-DEPENDENCIES = $(GISDEP)
-
-include $(MODULE_TOPDIR)/include/Make/Module.make
-
-ifneq ($(USE_LARGEFILES),)
- EXTRA_CFLAGS = -D_FILE_OFFSET_BITS=64
-endif
-
-default: cmd
+MODULE_TOPDIR = ../..
+
+PGM = i.wi
+
+LIBES = $(GISLIB)
+DEPENDENCIES = $(GISDEP)
+
+include $(MODULE_TOPDIR)/include/Make/Module.make
+
+ifneq ($(USE_LARGEFILES),)
+ EXTRA_CFLAGS = -D_FILE_OFFSET_BITS=64
+endif
+
+default: cmd
Property changes on: grass-addons/gipe/i.wi/Makefile
___________________________________________________________________
Added: svn:mime-type
+ text/x-makefile
Added: svn:eol-style
+ native
Modified: grass-addons/gipe/i.wi/description.html
===================================================================
--- grass-addons/gipe/i.wi/description.html 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/i.wi/description.html 2010-04-03 08:49:00 UTC (rev 41680)
@@ -1,26 +1,26 @@
-<H2>DESCRIPTION</H2>
-
-<EM>i.wi</EM> calculates water indices based on biophysical parameters.
-
-1. LSWI: Land Surface Water Index
-
-
-<H2>NOTES</H2>
-Created the module following the i.vi modular architechture to add more water indices as they come in literature.
-
-<H2>TODO</H2>
-Find other water indices and add them.
-
-<H2>SEE ALSO</H2>
-
-<em>
-<A HREF="i.vi.html">i.vi</A><br>
-</em>
-
-
-<H2>AUTHORS</H2>
-Yann Chemin, International Rice Research Institute, The Philippines<BR>
-
-
-<p>
-<i>Last changed: $Date: 2006/10/09 21:30:42 $</i>
+<H2>DESCRIPTION</H2>
+
+<EM>i.wi</EM> calculates water indices based on biophysical parameters.
+
+1. LSWI: Land Surface Water Index
+
+
+<H2>NOTES</H2>
+Created the module following the i.vi modular architechture to add more water indices as they come in literature.
+
+<H2>TODO</H2>
+Find other water indices and add them.
+
+<H2>SEE ALSO</H2>
+
+<em>
+<A HREF="i.vi.html">i.vi</A><br>
+</em>
+
+
+<H2>AUTHORS</H2>
+Yann Chemin, International Rice Research Institute, The Philippines<BR>
+
+
+<p>
+<i>Last changed: $Date$</i>
Property changes on: grass-addons/gipe/i.wi/description.html
___________________________________________________________________
Added: svn:mime-type
+ text/html
Added: svn:keywords
+ Author Date Id
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.wi/lswi.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/i.wi/main.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/install_yanns_grass.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mime-type
+ text/x-sh
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/m.gem
___________________________________________________________________
Added: svn:ignore
+ OBJ.*
*.tmp.html
Property changes on: grass-addons/gipe/m.gem/Makefile
___________________________________________________________________
Added: svn:mime-type
+ text/x-makefile
Added: svn:eol-style
+ native
Modified: grass-addons/gipe/m.gem/description.html
===================================================================
--- grass-addons/gipe/m.gem/description.html 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/m.gem/description.html 2010-04-03 08:49:00 UTC (rev 41680)
@@ -12,4 +12,4 @@
<H2>AUTHOR</H2>
Yann Chemin
-<p><i>Last changed: $Date: 2007/02/12 14:44:57 $</i>
+<p><i>Last changed: $Date$</i>
Property changes on: grass-addons/gipe/m.gem/description.html
___________________________________________________________________
Added: svn:mime-type
+ text/html
Added: svn:keywords
+ Author Date Id
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/m.gem/m.gem
___________________________________________________________________
Added: svn:mime-type
+ text/x-sh
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/menudata.py
___________________________________________________________________
Added: svn:mime-type
+ text/x-python
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/python
___________________________________________________________________
Added: svn:ignore
+ OBJ.*
*.tmp.html
Property changes on: grass-addons/gipe/python/ndvi_gdal.py
___________________________________________________________________
Added: svn:mime-type
+ text/x-python
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.evapo.MH
___________________________________________________________________
Added: svn:ignore
+ OBJ.*
*.tmp.html
Property changes on: grass-addons/gipe/r.evapo.MH/Makefile
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-makefile
Added: svn:eol-style
+ native
Modified: grass-addons/gipe/r.evapo.MH/description.html
===================================================================
--- grass-addons/gipe/r.evapo.MH/description.html 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/r.evapo.MH/description.html 2010-04-03 08:49:00 UTC (rev 41680)
@@ -31,4 +31,4 @@
<p>
-<i>Last changed: $Date: 2007/04/10 11:58:15 $</i>
+<i>Last changed: $Date$</i>
Property changes on: grass-addons/gipe/r.evapo.MH/description.html
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/html
Added: svn:keywords
+ Author Date Id
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.evapo.MH/main.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.evapo.MH/mh_eto.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.evapo.MH/mh_original.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.evapo.MH/mh_samani.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.evapo.PM
___________________________________________________________________
Added: svn:ignore
+ OBJ.*
*.tmp.html
Property changes on: grass-addons/gipe/r.evapo.PM/Makefile
___________________________________________________________________
Added: svn:mime-type
+ text/x-makefile
Added: svn:eol-style
+ native
Modified: grass-addons/gipe/r.evapo.PM/description.html
===================================================================
--- grass-addons/gipe/r.evapo.PM/description.html 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/r.evapo.PM/description.html 2010-04-03 08:49:00 UTC (rev 41680)
@@ -162,6 +162,6 @@
<p>[3] Penman, H. L. 1948. Natural evaporation from open water,
bare soil and grass. Proc. Roy. Soc. London, A193, pp. 120-146.
-<p><i>Last changed: $Date: 2007/07/29 19:30:00 $</i>
+<p><i>Last changed: $Date$</i>
</body>
</html>
Property changes on: grass-addons/gipe/r.evapo.PM/description.html
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/html
Added: svn:keywords
+ Author Date Id
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.evapo.PM/functions.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.evapo.PM/local_proto.h
___________________________________________________________________
Added: svn:mime-type
+ text/x-chdr
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.evapo.PM/main.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.gaswap.serial
___________________________________________________________________
Added: svn:ignore
+ OBJ.*
*.tmp.html
Property changes on: grass-addons/gipe/r.gaswap.serial/Makefile
___________________________________________________________________
Added: svn:mime-type
+ text/x-makefile
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.gaswap.serial/copy.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mime-type
+ text/x-sh
Added: svn:eol-style
+ native
Modified: grass-addons/gipe/r.gaswap.serial/description.html
===================================================================
--- grass-addons/gipe/r.gaswap.serial/description.html 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/r.gaswap.serial/description.html 2010-04-03 08:49:00 UTC (rev 41680)
@@ -1,13 +1,13 @@
-<H2>DESCRIPTION</H2>
-
-r.gaswap is a GRASS data interface to a genetic algorithm for assimilating soil-Water-air-plant parameters from SWAP models.<br><br>
-
-More description from Shamim when the different functions for Cluster and Grid implementations will be included in the code.<br><br>
-
-
-<H2>AUTHOR</H2>
-
-Shamim Akhter (shamimakhter at gmail.com) <br>
-Yann Chemin (ychemin at gmail.com)<BR>
-
-<p><i>Last changed: Date: 2005/06/14 </i>
+<H2>DESCRIPTION</H2>
+
+r.gaswap is a GRASS data interface to a genetic algorithm for assimilating soil-Water-air-plant parameters from SWAP models.<br><br>
+
+More description from Shamim when the different functions for Cluster and Grid implementations will be included in the code.<br><br>
+
+
+<H2>AUTHOR</H2>
+
+Shamim Akhter (shamimakhter at gmail.com) <br>
+Yann Chemin (ychemin at gmail.com)<BR>
+
+<p><i>Last changed: Date: 2005/06/14 </i>
Property changes on: grass-addons/gipe/r.gaswap.serial/description.html
___________________________________________________________________
Added: svn:mime-type
+ text/html
Added: svn:keywords
+ Author Date Id
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.gaswap.serial/evaluation.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.gaswap.serial/gaswap.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.gaswap.serial/gaswap.h
___________________________________________________________________
Added: svn:mime-type
+ text/x-chdr
Added: svn:eol-style
+ native
Deleted: grass-addons/gipe/r.gaswap.serial/lab/ HFINAL.DAT
===================================================================
--- grass-addons/gipe/r.gaswap.serial/lab/ HFINAL.DAT 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/r.gaswap.serial/lab/ HFINAL.DAT 2010-04-03 08:49:00 UTC (rev 41680)
@@ -1,5 +0,0 @@
- -148.807 -111.762 -88.546 -73.560 -63.551 -56.673 -51.860 -48.471 -46.106 -44.506
- -41.483 -44.021 -52.751 -71.417 -66.952 -62.223 -57.480 -52.722 -47.948 -43.374
- -42.347 -41.072 -39.628 -37.992 -36.178 -34.028 -26.302 -17.361 -7.960 1.989
- 11.962 21.935 31.908 41.881 51.854 61.827 71.800 81.773 91.746 101.719
- 116.678 136.624 156.570 176.516 196.462 216.408 236.354 256.300 286.219 326.111
Copied: grass-addons/gipe/r.gaswap.serial/lab/HFINAL.DAT (from rev 41675, grass-addons/gipe/r.gaswap.serial/lab/ HFINAL.DAT)
===================================================================
--- grass-addons/gipe/r.gaswap.serial/lab/HFINAL.DAT (rev 0)
+++ grass-addons/gipe/r.gaswap.serial/lab/HFINAL.DAT 2010-04-03 08:49:00 UTC (rev 41680)
@@ -0,0 +1,5 @@
+ -148.807 -111.762 -88.546 -73.560 -63.551 -56.673 -51.860 -48.471 -46.106 -44.506
+ -41.483 -44.021 -52.751 -71.417 -66.952 -62.223 -57.480 -52.722 -47.948 -43.374
+ -42.347 -41.072 -39.628 -37.992 -36.178 -34.028 -26.302 -17.361 -7.960 1.989
+ 11.962 21.935 31.908 41.881 51.854 61.827 71.800 81.773 91.746 101.719
+ 116.678 136.624 156.570 176.516 196.462 216.408 236.354 256.300 286.219 326.111
Property changes on: grass-addons/gipe/r.gaswap.serial/lab/run_gaswap.sh
___________________________________________________________________
Added: svn:mime-type
+ text/x-sh
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.gaswap.serial/main.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.gaswap.serial/swapcompile
___________________________________________________________________
Added: svn:mime-type
+ text/x-sh
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.hydro.CASC2D
___________________________________________________________________
Added: svn:ignore
+ OBJ.*
*.tmp.html
Property changes on: grass-addons/gipe/r.hydro.CASC2D/CASC2D.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.hydro.CASC2D/Makefile
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-makefile
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.hydro.CASC2D/Manual.txt
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/plain
Added: svn:keywords
+ Author Date Id
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.hydro.CASC2D/all.h
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-chdr
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.hydro.CASC2D/ch_depth.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.hydro.CASC2D/ch_flow.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.hydro.CASC2D/crash.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.hydro.CASC2D/im_coeff.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.hydro.CASC2D/im_ddsqoy.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.hydro.CASC2D/im_dsqoy.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.hydro.CASC2D/im_dsyot.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.hydro.CASC2D/im_flow_route.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.hydro.CASC2D/im_norm_calc.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.hydro.CASC2D/im_read_input.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.hydro.CASC2D/im_read_table.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.hydro.CASC2D/im_reservoir.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.hydro.CASC2D/im_section.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.hydro.CASC2D/im_spill.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.hydro.CASC2D/im_usqot.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.hydro.CASC2D/im_weir_coeff.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.hydro.CASC2D/inf_nodist.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.hydro.CASC2D/inf_redist.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.hydro.CASC2D/intercep.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.hydro.CASC2D/ov_flow.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.hydro.CASC2D/ov_lake.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Deleted: grass-addons/gipe/r.hydro.CASC2D/r.hydro.CASC2D.tmp.html
===================================================================
--- grass-addons/gipe/r.hydro.CASC2D/r.hydro.CASC2D.tmp.html 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/r.hydro.CASC2D/r.hydro.CASC2D.tmp.html 2010-04-03 08:49:00 UTC (rev 41680)
@@ -1,199 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
-<head>
-<title>r.hydro.CASC2D</title>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
-<link rel="stylesheet" href="grassdocs.css" type="text/css">
-</head>
-<body bgcolor="white">
-
-<img src="grass_logo.png" alt="GRASS logo"><hr align=center size=6 noshade>
-
-<h2>NAME</h2>
-<em><b>r.hydro.CASC2D</b></em> - Fully integrated distributed cascaded 2D hydrologic modeling.
-<h2>KEYWORDS</h2>
-<h2>SYNOPSIS</h2>
-<b>r.hydro.CASC2D</b><br>
-<b>r.hydro.CASC2D help</b><br>
-<b>r.hydro.CASC2D</b> [-<b>smtoepidbuq</b>] [<b>watershed_mask</b>=<em>string</em>] <b>elevation</b>=<em>string</em> [<b>initial_depth</b>=<em>string</em>] [<b>storage_capacity</b>=<em>string</em>] [<b>interception_coefficient</b>=<em>string</em>] [<b>roughness_map</b>=<em>string</em>] [<b>conductivity</b>=<em>string</em>] [<b>capillary</b>=<em>string</em>] [<b>porosity</b>=<em>string</em>] [<b>moisture</b>=<em>string</em>] [<b>pore_index</b>=<em>string</em>] [<b>residual_sat</b>=<em>string</em>] [<b>lake_map</b>=<em>string</em>] [<b>lake_elev</b>=<em>string</em>] [<b>radar_intensity_map</b>=<em>string</em>] [<b>links_map</b>=<em>string</em>] [<b>nodes_map</b>=<em>string</em>] [<b>channel_input</b>=<em>string</em>] [<b>table_input</b>=<em>string</em>] [<b>dis_profile</b>=<em>string</em>] [<b>wat_surf_profile</b>=<em>string</em>] [<b>hyd_location</b>=<em>string</em>] [<b>r_gage_file</b>=<em>string</em>] <b>outlet_eastNnorthNslope</b>=<em>east,north,bedslope</em> [<b>Manning_n</b>=<em>float</em>] [<b>unif_rain_int</b>=<em>float</em>] [<b>num_of_raingages</b>=<em>integer</em>] <b>time_step</b>=<em>integer</em> [<b>gage_time_step</b>=<em>integer</em>] [<b>radar_time_step</b>=<em>integer</em>] <b>rain_duration</b>=<em>integer</em> <b>tot_time</b>=<em>integer</em> [<b>write_time_step</b>=<em>integer</em>] [<b>unit_el_conv</b>=<em>float</em>] [<b>unit_lake</b>=<em>float</em>] [<b>unit_space</b>=<em>float</em>] [<b>d_thresh</b>=<em>float</em>] <b>discharge</b>=<em>string</em> [<b>dis_hyd_location</b>=<em>string</em>] [<b>depth_map</b>=<em>string</em>] [<b>inf_depth_map</b>=<em>string</em>] [<b>surf_moist_map</b>=<em>string</em>] [<b>rate_of_infil_map</b>=<em>string</em>] [<b>dis_rain_map</b>=<em>string</em>] [--<b>verbose</b>] [--<b>quiet</b>]
-
-<h3>Flags:</h3>
-<DL>
-<DT><b>-s</b></DT>
-<DD>do not check square tolerance</DD>
-
-<DT><b>-m</b></DT>
-<DD>r_gage_file units in mm/hr</DD>
-
-<DT><b>-t</b></DT>
-<DD>interpolates raingage rainfall intensities using Thiessen polygon technique (default: inverse square distance)</DD>
-
-<DT><b>-o</b></DT>
-<DD>routes edge-accmulated overland flow out of active region (ONLY when no mask is specified)</DD>
-
-<DT><b>-e</b></DT>
-<DD>performs explicit channel routing</DD>
-
-<DT><b>-p</b></DT>
-<DD>assumes uniform channel geometry in each link (needs -e option)</DD>
-
-<DT><b>-i</b></DT>
-<DD>performs Priessman double sweep implicit channel routing</DD>
-
-<DT><b>-d</b></DT>
-<DD>performs only drainage of the basin for implicit routing by flooding the basin</DD>
-
-<DT><b>-b</b></DT>
-<DD>determines initial flow depths for implicit routing by performinf standard step backwater computations</DD>
-
-<DT><b>-u</b></DT>
-<DD>print discharges in cfs and volumes in cubic ft</DD>
-
-<DT><b>-q</b></DT>
-<DD>skips printing iteration, time, and discharge values to the screen</DD>
-
-<DT><b>--verbose</b></DT>
-<DD>Verbose module output</DD>
-<DT><b>--quiet</b></DT>
-<DD>Quiet module output</DD>
-</DL>
-
-<h3>Parameters:</h3>
-<DL>
-<DT><b>watershed_mask</b>=<em>string</em></DT>
-<DD>map of watershed boundary (or mask); recommended</DD>
-
-<DT><b>elevation</b>=<em>string</em></DT>
-<DD>map of elevation</DD>
-
-<DT><b>initial_depth</b>=<em>string</em></DT>
-<DD>map of initial overland (not lakes) depth in mm</DD>
-
-<DT><b>storage_capacity</b>=<em>string</em></DT>
-<DD>map of vegetation storage capacity in tenths of mm</DD>
-
-<DT><b>interception_coefficient</b>=<em>string</em></DT>
-<DD>map of interception coefficient (values in 1000*actual coefficient)</DD>
-
-<DT><b>roughness_map</b>=<em>string</em></DT>
-<DD>map of surface roughness coefficient (values in 1000*Manning n)</DD>
-
-<DT><b>conductivity</b>=<em>string</em></DT>
-<DD>map of soil saturated hydraulic conductivity in tenths of mm/hr</DD>
-
-<DT><b>capillary</b>=<em>string</em></DT>
-<DD>map of soil capillary pressure head at the wetting front in tenths of mm</DD>
-
-<DT><b>porosity</b>=<em>string</em></DT>
-<DD>map of soil effective porosity (values in 1000*porosirty)</DD>
-
-<DT><b>moisture</b>=<em>string</em></DT>
-<DD>map of soil initial moisture (values in 1000*moisture)</DD>
-
-<DT><b>pore_index</b>=<em>string</em></DT>
-<DD>map of soil pore-size distribution index (Brooks-Corey lambda) in 1000*index</DD>
-
-<DT><b>residual_sat</b>=<em>string</em></DT>
-<DD>map of soil residual saturation (values in 1000*residual saturation)</DD>
-
-<DT><b>lake_map</b>=<em>string</em></DT>
-<DD>map of lakes categories</DD>
-
-<DT><b>lake_elev</b>=<em>string</em></DT>
-<DD>map of lakes initial water surface elevation (for unit see unit_lake)</DD>
-
-<DT><b>radar_intensity_map</b>=<em>string</em></DT>
-<DD>map of radar- (or otherwise-) generated time series of rainfall intensity in mm/hr</DD>
-
-<DT><b>links_map</b>=<em>string</em></DT>
-<DD>map of channel network link numbers</DD>
-
-<DT><b>nodes_map</b>=<em>string</em></DT>
-<DD>map of channel network node numbers</DD>
-
-<DT><b>channel_input</b>=<em>string</em></DT>
-<DD>channel input data file name (ASCII)</DD>
-
-<DT><b>table_input</b>=<em>string</em></DT>
-<DD>look-up table file for links with breakpoint cross section (ASCII)</DD>
-
-<DT><b>dis_profile</b>=<em>string</em></DT>
-<DD>channel initial discharge profile file name (ASCII)</DD>
-
-<DT><b>wat_surf_profile</b>=<em>string</em></DT>
-<DD>channel intial water surface profile file name (ASCII)</DD>
-
-<DT><b>hyd_location</b>=<em>string</em></DT>
-<DD>file name containing link and node addresses of internal locations where discharge hydrographs are to be saved (ASCII)</DD>
-
-<DT><b>r_gage_file</b>=<em>string</em></DT>
-<DD>raingage rainfall input file name (ASCII), intensities in in/hr</DD>
-
-<DT><b>outlet_eastNnorthNslope</b>=<em>east,north,bedslope</em></DT>
-<DD>easting, northing, and bed slope at the outlet cell</DD>
-
-<DT><b>Manning_n</b>=<em>float</em></DT>
-<DD>spatially uniform overland Manning n roughness value</DD>
-
-<DT><b>unif_rain_int</b>=<em>float</em></DT>
-<DD>spatially uniform rainfall intensity in mm/hr</DD>
-
-<DT><b>num_of_raingages</b>=<em>integer</em></DT>
-<DD>number of recording raingages</DD>
-
-<DT><b>time_step</b>=<em>integer</em></DT>
-<DD>computational time step duration in sec</DD>
-
-<DT><b>gage_time_step</b>=<em>integer</em></DT>
-<DD>time step of recorded raingage data in sec</DD>
-
-<DT><b>radar_time_step</b>=<em>integer</em></DT>
-<DD>time increment between radar- (or otherwise) generated rainfall maps in sec</DD>
-
-<DT><b>rain_duration</b>=<em>integer</em></DT>
-<DD>total rainfall duration in sec</DD>
-
-<DT><b>tot_time</b>=<em>integer</em></DT>
-<DD>total simulation time or channel drainage time (-d option) in sec</DD>
-
-<DT><b>write_time_step</b>=<em>integer</em></DT>
-<DD>time increment for writing output raster maps in sec</DD>
-
-<DT><b>unit_el_conv</b>=<em>float</em></DT>
-<DD>unit convertion factor by which the values in elevation map must be DIVIDED to convert them into meters</DD>
-
-<DT><b>unit_lake</b>=<em>float</em></DT>
-<DD>unit convertion factor by which the values in lake surface elevation map must be DIVIDED to convert them into meters</DD>
-
-<DT><b>unit_space</b>=<em>float</em></DT>
-<DD>unit convertion factor by which the region easting and northing values must be DIVIDED to convert them into meters</DD>
-
-<DT><b>d_thresh</b>=<em>float</em></DT>
-<DD>threshold overland depth, in meters, below which overland routing will not be performed (i.e. average depression storage)</DD>
-
-<DT><b>discharge</b>=<em>string</em></DT>
-<DD>outflow discharge output file name (ASCII)</DD>
-
-<DT><b>dis_hyd_location</b>=<em>string</em></DT>
-<DD>output file name for discharge hydrograph at internal locations (ASCII)</DD>
-
-<DT><b>depth_map</b>=<em>string</em></DT>
-<DD>output map of surface depth in mm</DD>
-
-<DT><b>inf_depth_map</b>=<em>string</em></DT>
-<DD>output map of cumulative infiltration depth in tenth of mm</DD>
-
-<DT><b>surf_moist_map</b>=<em>string</em></DT>
-<DD>output map of surface soil moisture in number of fractions of a thousand</DD>
-
-<DT><b>rate_of_infil_map</b>=<em>string</em></DT>
-<DD>output map of infiltration rate in mm/hr</DD>
-
-<DT><b>dis_rain_map</b>=<em>string</em></DT>
-<DD>output map of distributed rainfall intensity in mm/hr</DD>
-
-</DL>
-<HR>
-<P><a href="index.html">Main index</a> - <a href="raster.html">raster index</a> - <a href="full_index.html">Full index</a></P>
-</body>
-</html>
Property changes on: grass-addons/gipe/r.hydro.CASC2D/rain_sq_dis.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.hydro.CASC2D/rain_thiessen.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.hydro.CASC2D/read_gage_file.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Modified: grass-addons/gipe/r.hydro.CASC2D/readme
===================================================================
--- grass-addons/gipe/r.hydro.CASC2D/readme 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/r.hydro.CASC2D/readme 2010-04-03 08:49:00 UTC (rev 41680)
@@ -46,7 +46,13 @@
read_gage_file.c function to read raingage file
write_files.c function to write output raster maps
+
To try in Spearfish Dataset
---------------------------
-r.hydro.CASC2D elevation=elevation.10m at PERMANENT outlet_eastNnorthNslope=601220.607477,4927674.62617,0.1 Manning_n=0.1 unif_rain_int=50 time_step=1 rain_duration=10800 tot_time=10800 write_time_step=600 discharge=try depth_map=CASC2D_depth
+r.hydro.CASC2D elevation=elevation.10m at PERMANENT \
+ outlet_eastNnorthNslope=601220.607477,4927674.62617,0.1 \
+ Manning_n=0.1 unif_rain_int=50 time_step=1 rain_duration=10800 tot_time=10800 \
+ write_time_step=600 discharge=try depth_map=CASC2D_depth
+
+
Property changes on: grass-addons/gipe/r.hydro.CASC2D/readme
___________________________________________________________________
Deleted: svn:executable
- *
Property changes on: grass-addons/gipe/r.hydro.CASC2D/write_files.c
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.out.vic
___________________________________________________________________
Added: svn:ignore
+ OBJ.*
*.tmp.html
Property changes on: grass-addons/gipe/r.out.vic/Makefile
___________________________________________________________________
Added: svn:mime-type
+ text/x-makefile
Added: svn:eol-style
+ native
Modified: grass-addons/gipe/r.out.vic/description.html
===================================================================
--- grass-addons/gipe/r.out.vic/description.html 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/r.out.vic/description.html 2010-04-03 08:49:00 UTC (rev 41680)
@@ -42,4 +42,4 @@
<p>
-<i>Last changed: $Date: 2008/03/23 09:39:55 $</i>
+<i>Last changed: $Date$</i>
Property changes on: grass-addons/gipe/r.out.vic/description.html
___________________________________________________________________
Added: svn:mime-type
+ text/html
Added: svn:keywords
+ Author Date Id
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.out.vic/main.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.out.vic/veg_lib.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.soiltex2prop
___________________________________________________________________
Added: svn:ignore
+ OBJ.*
*.tmp.html
Property changes on: grass-addons/gipe/r.soiltex2prop/Makefile
___________________________________________________________________
Added: svn:mime-type
+ text/x-makefile
Added: svn:eol-style
+ native
Modified: grass-addons/gipe/r.soiltex2prop/description.html
===================================================================
--- grass-addons/gipe/r.soiltex2prop/description.html 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/r.soiltex2prop/description.html 2010-04-03 08:49:00 UTC (rev 41680)
@@ -21,4 +21,4 @@
<p>
-<i>Last changed: $Date: 2006/09/31 15:20:43 $</i>
+<i>Last changed: $Date$</i>
Property changes on: grass-addons/gipe/r.soiltex2prop/description.html
___________________________________________________________________
Added: svn:mime-type
+ text/html
Added: svn:keywords
+ Author Date Id
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.soiltex2prop/main.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.soiltex2prop/prct2hf.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.soiltex2prop/prct2ksat.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.soiltex2prop/prct2porosity.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.soiltex2prop/vector_multiplication.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.soilusda2tex
___________________________________________________________________
Added: svn:ignore
+ OBJ.*
*.tmp.html
Property changes on: grass-addons/gipe/r.soilusda2tex/Makefile
___________________________________________________________________
Added: svn:mime-type
+ text/x-makefile
Added: svn:eol-style
+ native
Modified: grass-addons/gipe/r.soilusda2tex/description.html
===================================================================
--- grass-addons/gipe/r.soilusda2tex/description.html 2010-04-03 08:28:18 UTC (rev 41679)
+++ grass-addons/gipe/r.soilusda2tex/description.html 2010-04-03 08:49:00 UTC (rev 41680)
@@ -37,4 +37,4 @@
<p>
-<i>Last changed: $Date: 2008/06/11 15:20:43 $</i>
+<i>Last changed: $Date$</i>
Property changes on: grass-addons/gipe/r.soilusda2tex/description.html
___________________________________________________________________
Added: svn:mime-type
+ text/html
Added: svn:keywords
+ Author Date Id
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.soilusda2tex/main.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.soilusda2tex/usda2pclay.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.soilusda2tex/usda2psand.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/r.soilusda2tex/usda2psilt.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/screenshots
___________________________________________________________________
Added: svn:ignore
+ OBJ.*
*.tmp.html
Property changes on: grass-addons/gipe/screenshots/gipe01.png
___________________________________________________________________
Modified: svn:mime-type
- application/octet-stream
+ image/png
Property changes on: grass-addons/gipe/screenshots/gipe02.png
___________________________________________________________________
Modified: svn:mime-type
- application/octet-stream
+ image/png
Property changes on: grass-addons/gipe/screenshots/gipe03.png
___________________________________________________________________
Modified: svn:mime-type
- application/octet-stream
+ image/png
Property changes on: grass-addons/gipe/screenshots/gipe04.png
___________________________________________________________________
Modified: svn:mime-type
- application/octet-stream
+ image/png
Property changes on: grass-addons/gipe/screenshots/gipe05.png
___________________________________________________________________
Modified: svn:mime-type
- application/octet-stream
+ image/png
Property changes on: grass-addons/gipe/screenshots/gipe06.png
___________________________________________________________________
Modified: svn:mime-type
- application/octet-stream
+ image/png
Property changes on: grass-addons/gipe/screenshots/gipe07.png
___________________________________________________________________
Modified: svn:mime-type
- application/octet-stream
+ image/png
Property changes on: grass-addons/gipe/script_examples
___________________________________________________________________
Added: svn:ignore
+ OBJ.*
*.tmp.html
Property changes on: grass-addons/gipe/script_examples/grass_etpot.sh
___________________________________________________________________
Added: svn:mime-type
+ text/x-sh
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/script_examples/i.dn2potrad.l7.sh
___________________________________________________________________
Added: svn:mime-type
+ text/x-sh
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/script_generator
___________________________________________________________________
Added: svn:ignore
+ OBJ.*
*.tmp.html
Property changes on: grass-addons/gipe/script_generator/Makefile
___________________________________________________________________
Added: svn:mime-type
+ text/x-makefile
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/script_generator/l7_in_read.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Added: svn:eol-style
+ native
Property changes on: grass-addons/gipe/script_generator/test_data/run.sh
___________________________________________________________________
Added: svn:mime-type
+ text/x-sh
Added: svn:eol-style
+ native
More information about the grass-commit
mailing list