Presentation is loading. Please wait.

Presentation is loading. Please wait.

Putting GLOBIOM data into a database Pedro R. Andrade Cambrigde, 2013.

Similar presentations


Presentation on theme: "Putting GLOBIOM data into a database Pedro R. Andrade Cambrigde, 2013."— Presentation transcript:

1 Putting GLOBIOM data into a database Pedro R. Andrade Cambrigde, 2013

2 Integration between TerraLib and IIASA tools G4M SciSoft TerraLib GeoWiki EPICGLOBIOM ???

3 Integration between TerraLib and GLOBIOM TerraLib GLOBIOM

4 GLOBIOM Integration TerraView data Amazonia (TerraLib) export import GeoTiff, CSV data GLOBIOM GMS files GDX files simU shapefiles

5 GLOBIOM Integration TerraView data Amazonia (TerraLib) export import GeoTiff, CSV data GLOBIOM GMS files GDX files simU shapefiles

6 Implementation generate- brazil-cr.R brasilcr_pt.shp

7 Implementation CRbrazil- database.R CRbrazil- plotall.R CRbrazil- basics.R globiom (TerraLib) bmp files ACR_COMPARE.csv CROP_DATA_COMPARE.csv YLD_COMPARE.csv... aRT

8 FILE aux3 /'Land_Compare3.CSV'/; aux3.pc=5; PUT aux3; LOOP ( (COUNTRY('Brazil'),ALLCOLROW,AltiClass,SlpClass,SOILCLASS,AEZCLASS,LC_TYPE, AllMacroScen,AllBioenScen,IEA_SCEN,ALLScenYear) $ Land_Compare3(COUNTRY,ALLCOLROW,AltiClass,SlpClass,SOILCLASS,AEZCLASS, LC_TYPE, AllMacroScen,AllBioenScen,IEA_SCEN,ALLScenYear), PUT COUNTRY.tl,ALLCOLROW.tl,AltiClass.tl,SlpClass.tl,SOILCLASS.tl, AEZCLASS.tl, LC_TYPE.tl,AllMacroScen.tl,AllBioenScen.tl,IEA_SCEN.tl, ALLScenYear.tl, Land_Compare3(COUNTRY,ALLCOLROW,AltiClass,SlpClass, SOILCLASS,AEZCLASS, LC_TYPE,AllMacroScen,AllBioenScen,IEA_SCEN, ALLScenYear) / ); PUTCLOSE; attribute_names = list(... Land_Compare3 = c("COUNTRY", "ALLCOLROW", "ALTICLASS", "SLPCLASS", "SOILCLASS", "AEZCLASS", "LC_TYPE", "AllMacroScen", "AllBioenScen", "IEA_SCEN”, "ALLScenYear", "Value"), ) 7_output.gms CRbrazil-basics.R

9 CRbrazil-plotall.R/CRbrazil-database.R original_file = "LUCDET_Compare" r = read_output_csv(original_file) print_unique(r) w = uniques(r) w$AEZCLASS = NULL w$COUNTRY = NULL w$ALLScenYear = 2000 w$IEA_SCEN = "BASE" w$AllMacroScen = NULL w$ALTICLASS = NULL w$SLPCLASS = NULL w$SOILCLASS = NULL save_all(w, original_file) tstates = createTheme(lstates, paste("states-", original_file, sep=""), view=original_file) setVisual(tstates, visualPolygons(transp=100, cwidth=2)) Output Selecting attributes Input

10 7_output.gms

11

12 R plot x TerraLib database R plotTerraLib database Overlaysinglemultiple Plotting at oncemultiple mapssingle map Colors and spatial operations require R knowledge can be handled visually Running scriptevery time to plot the results (or save the R session) only once

13 Future development  Version 2.0 of the scripts  Review R-Script_Instructions.pdf  Adapt the scripts to work with different geographical areas


Download ppt "Putting GLOBIOM data into a database Pedro R. Andrade Cambrigde, 2013."

Similar presentations


Ads by Google