g.mapsets op=add map=ecad50_climate
g.copy rast=precip_0_25deg.1981_2010.10.sum,precip_0_25deg.1981_2010.10.sum
g.copy rast=precip_0_25deg.1981_2010.11.sum,precip_0_25deg.1981_2010.11.sum
g.copy rast=precip_0_25deg.1981_2010.12.sum,precip_0_25deg.1981_2010.12.sum
g.copy rast=precip_0_25deg.1981_2010.1.sum,precip_0_25deg.1981_2010.1.sum
g.copy rast=precip_0_25deg.1981_2010.2.sum,precip_0_25deg.1981_2010.2.sum
g.copy rast=precip_0_25deg.1981_2010.3.sum,precip_0_25deg.1981_2010.3.sum
g.copy rast=precip_0_25deg.1981_2010.4.sum,precip_0_25deg.1981_2010.4.sum
g.copy rast=precip_0_25deg.1981_2010.5.sum,precip_0_25deg.1981_2010.5.sum
g.copy rast=precip_0_25deg.1981_2010.6.sum,precip_0_25deg.1981_2010.6.sum
g.copy rast=precip_0_25deg.1981_2010.7.sum,precip_0_25deg.1981_2010.7.sum
g.copy rast=precip_0_25deg.1981_2010.8.sum,precip_0_25deg.1981_2010.8.sum
g.copy rast=precip_0_25deg.1981_2010.9.sum,precip_0_25deg.1981_2010.9.sum
g.copy rast=precip_0_25deg.1981_2010.10.sum,precip_0_25deg.1981_2010.10.sum
g.copy rast=tmean_0_25deg.1981_2010.1.avg,tmean_0_25deg.1981_2010.1.avg
g.copy rast=tmean_0_25deg.1981_2010.2.avg,tmean_0_25deg.1981_2010.2.avg
g.copy rast=tmean_0_25deg.1981_2010.3.avg,tmean_0_25deg.1981_2010.3.avg
g.copy rast=tmean_0_25deg.1981_2010.4.avg,tmean_0_25deg.1981_2010.4.avg
g.copy rast=tmean_0_25deg.1981_2010.5.avg,tmean_0_25deg.1981_2010.5.avg
g.copy rast=tmean_0_25deg.1981_2010.6.avg,tmean_0_25deg.1981_2010.6.avg
g.copy rast=tmean_0_25deg.1981_2010.7.avg,tmean_0_25deg.1981_2010.7.avg
g.copy rast=tmean_0_25deg.1981_2010.8.avg,tmean_0_25deg.1981_2010.8.avg
g.copy rast=tmean_0_25deg.1981_2010.9.avg,tmean_0_25deg.1981_2010.9.avg
g.copy rast=tmean_0_25deg.1981_2010.10.avg,tmean_0_25deg.1981_2010.10.avg
g.copy rast=tmean_0_25deg.1981_2010.11.avg,tmean_0_25deg.1981_2010.11.avg
g.copy rast=tmean_0_25deg.1981_2010.12.avg,tmean_0_25deg.1981_2010.12.avg
g.copy rast=precip_0_25deg.1981.2010.avg,precip_0_25deg.1981.2010.avg
g.copy rast=tmean_0_25deg.1981_2010.avg,tmean_0_25deg.1981_2010.avg
r.info precip_0_25deg.1981.2010.avg
exit
g.region rast=precip_0_25deg.1981.2010.avg@ecad50_geostat2012 -p
r.out.gdal -c input=tmean output=tmean_monthly.tif format=GTiff
r.out.gdal -c input=precip output=precip_monthly.tif format=GTiff
r.out.gdal -c input=precip output=precip_monthly.tif format=GTiff
r.out.gdal -c input=tmean output=tmean_monthly.tif format=GTiff
g.region -p
g.mlist type=rast pat=precip* fs=newline
g.mlist type=rast pat=tmean* fs=newline
g.region -p
sh convert_to_float.sh 
g.list rast
exit
r.info map=precip_0_25deg.1981.2010.avg@ecad50_geostat2012
history 
g.list rast
for i in `seq 1 9` ; do g.rename rast=precip_0_25deg.1981_2010.$i.sum,precip_0_25deg.1981_2010.0$i.sum ; done
for i in `seq 1 9` ; do g.rename rast=tmean_0_25deg.1981_2010.$i.avg,tmean_0_25deg.1981_2010.0$i.avg; done
g.list rast
i.group group=tmean_0_25deg_1981_2010_avg input=`g.mlist rast pat="tmean_0_25deg.1981_2010.??.avg" fs=,`
i.group group=precip_0_25deg_1981_2010_sum input=`g.mlist rast pat="precip_0_25deg.1981_2010.??.sum" fs=,`
g.region rast=precip_0_25deg.1981_2010.04.sum@ecad50_geostat2012
r.out.gdal precip_0_25deg_1981_2010_sum out=precip_0_25deg_1981_2010_monthly_sums.tif
r.out.gdal tmean_0_25deg_1981_2010_avg out=tmean_0_25deg_1981_2010_avg_monthly_avgs.tif
r.out.gdal precip_0_25deg.1981.2010.avg out=precip_0_25deg_1981_2010_avg.tif
r.in.gdal input=/home/neteler/geostat_2012/ecad5/precip_0_25deg_1951_1980_monthly_sums.tif output=precip_0_25deg_1951_1980_monthly_sums
r.in.gdal input=/home/neteler/geostat_2012/ecad5/tmean_0_25deg_1951_1980_monthly_avgs.tif output=tmean_0_25deg_1951_1980_monthly_avgs
g.list rast
g.region -p
g.mlist rast pattern="precip_0_25deg_1951_1980_monthly_sums.*"
r.series in=`g.mlist rast pattern="precip_0_25deg_1951_1980_monthly_sums.*" sep=","` out=precip_0_25deg.1951.1980.sum method=sum
r.colors precip_0_25deg.1951.1980.sum col=precipitation
d.rast.leg precip_0_25deg.1981.2010.sum
d.rast.leg precip_0_25deg.1951.1980.sum
r.mapcalc "precip_diff_1951_1980_vs_1981_2010 = precip_0_25deg.1951.1980.sum - precip_0_25deg.1981.2010.sum"
r.colors precip_diff_1951_1980_vs_1981_2010 color=differences
d.rast.leg precip_diff_1951_1980_vs_1981_2010 
g.list rast
g.remove rast=precip_diff_1951_1980_vs_1981_2010
g.mlist rast
i.group group=ecad_1981_2010 subgroup=ecad_1981_2010  input=`g.mlist rast pattern="*_0_25deg.1981_2010.*.*" sep=","`
v.build.all
db.connect -d
v.db.reconnect.all -cd
g.extension g.rename.many
g.rename.many raster=raster_names.csv
g.list group
g.gisenv 
g.gui
r.colors
r.colors
r.colors
g.gui
g.mapsets -p
g.mapsets -s
g.list type=raster mapset=.
cd
g.list type=raster mapset=. > a
geany a
g.list type=raster mapset=. > b
geany b
paste -d',' a b > raster_names.csv 
geany raster_names.csv
meld a b
g.rename.many raster=raster_names.csv
vim raster_names.csv 
g.rename.many raster=raster_names.csv
g.gisenv 
g.list raster 
