README.

advertisement
CROPCLASS-2.0 software,
Objective, achievements and installation
(CROPCLASS-2.0 software for census parcel cropping systems classification from
multitemporal remote imagery)
Objective
CROPCLASS-2.0 software has been developed to semi-automatically identify crops and forestry
species based in census parcels in multitemporal remote images of agrarian scenes.
Main achievements
CROPCLASS 2.0 achieve the following steps:
1) Load multi/ hyper-spectral multitemporal band images.
2) Delineate the census parcels at each image by operating shp files of each parcel
3) Extract the average band spectra’s value of each parcel at each image
4) Calculate vegetation indexes such as NDVI (“Normalized Difference Vegetation Index”,
(NIR-R)/ NIR+R)), STU (“Stubble index”, = R/G), and B/G, for each parcel at each image,
according with the spectral data of each parcel at each image, and based in the average
spectral data previously extracted.
5) Organize/ delineate the overall matrix data of spectral bands and vegetation indices of each
parcel and images in Excel format. The matrix data is made up of the average data value of
all parcels and images of the agrarian scene under study.
6) Transpose the matrix data to the software tool “Decision Tree” for its corresponding statistic
analyze (Decision Trees Analysis) and capture the predictive models which define each
crop/ cropping systems (“SQL predictive models”). The decision tree analysis is based in the
preliminary field work (Preliminary crop-parcel identification / ground-truth work) which
consists in identifying crops in a reduced number of parcel and that is required to carry out
in every geographical scene
7) The implementation of predictive models for the diagnostic of parcels with non-identified
crop/ soil uses is achieved over the previously extracted spectral bands and vegetation
indices data of the corresponding census parcels of each image.
8) A diagnostic txt format file for each previously not identified census parcel is generated in
which a percentage of accuracy (right diagnosis) for each unidentified crop/ soil use is
generated.
CROPCLASS-2.0 software was developed to achieve semi-automatically the procedure previously
described, particularly the steps 1, 2, 3 and 5.
Installation and preparation of Java y SQL components
The execution of CROPCLASS-2.0 requires installing the following:
1) A SQL data base management. For the software development an open source was used. MySQL
Community, can be loaded free through http://dev.mysql.com/downloads/mysql/ .
Once installed a new data base device so called “cropclass” was created.
2) To install the Kit of JAVA development it can be loaded free from development web site:
http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads1880260.html?ssSourceSiteId=otnes.
3) It is also necessary the connector between JAVA and the base of data SQL. For the software
development Mysql Connector/J 5.1.25 was used, which can be loaded free from
https://dev.mysql.com/downloads/connector/j/.
Once installed check in the added variable the sentence
“;C:\mysql-connector-java\mysql-connector-java-5.1.25-bin.jar”, and insert it; otherwise it would
be to modify the file “Cropclass.java” as following: in the instruction line
jdbc:mysql://miHost/cropclass", "root", "password", substitute the following: “miHost” for the name
of localhost (machine where CROPCLASS-2.0 wis going/ will be executed), “root” for the root user
of the SQL data management, and “password” for the assigned password of the root user. Once
modified the file Cropclass.jar should be generated and introduce it into the subdirectory
“\resource\bridges\import\java” of ENVI. For example for ENVI 5.0 the complete path would be
“C:\Program files\Exelis\IDL82\resource\bridges\import\java”).
Modify the files “idljavabrc” and “idljavabrcorig” placed in the subdirectory
“\resource\bridges\import\java” of the installation of ENVI (for example for ENVI 5.0 the complete
path could be “C:\Program file\Exelis\IDL82\resource\bridges\import\java”, as describe beyond. It s
recommended getting safety copies of both files before to achieve any change:
- At idljavabrc, substitute the line that begin with “JVM Classpath…” for “JVM Classpath =
$CLASSPATH;C:\Program files\Exelis\IDL82\resource\bridges\import\java\jbexamples.jar;
C:\Programme files\Exelis\IDL82\resource\bridges\import\java\Cropclass.jar”
- At idljavabrcorig, substitute the line that begin with “JVM Classpath…” for “JVM Classpath
= $CLASSPATH;$JAVABRIDGE_DIR\jbexamples.jar;$JAVABRIDGE_DIR\Cropclass.jar”
Finally, the following line should be added “C:\Program
files\Exelis\IDL82\resource\bridges\import\java\Cropclass.jar”,in
CLASSPATH within the operative system variable.
the
variable
of
system
Installation and des-installation of CROPCLASS 2.0 en ENVI
To install the module the compiled IDL code files (CROPCLASS.sav) in the Extension directory.
For example for ENVI 5.0 the complete path is C:\Programme files \Exelis\ENVI50\extensions).
At the end of the menu Toolbox, in the Extensions directory, it will show the icon to execute diverse
procedures of CROPCLASS, clicking over the icons
To des-install CROPCLASS 2.0 just eliminate the CROPCLASS.sav file in the directory
Extensions. It is recommended to close ENVI before executing the previous operation to advoid
conflict in the software. To update CROPCLASS 2.0 to a new versionit is necessary overwrite the
preexisting .sav with the new one, o just to delete in in the Extension directory and then to add the
new one. Never to different versions of CROPCLASS 2.0 should be placed in the Extension
directory.
Starting CROPCLASS
Once installed the add-on, before starting ENVI an additional subdirectory called CROPCLASS will
be available at the end of the menue Toolbox/Extension. In the subdirectory there is two options
each corresponding to a different functionality of CROPCLASS:
-- Parcel Data Extraction: Open the menú to choose the shape files to delineate the parcels to be
analyzed in the image series. A new output directory to store the resulting “Spectral Band Vegetation
Index” files for each parcel. (.sbvi)
-- Parcels Classification: Classify the previously analyzed parcels through Parcel Data Extraction.
It show a menu to load the .sbvi files which results from the previous step and for introducing the
SQL predictive models, and create an output file with the classification results.
Institute for Sustainable Agriculture, CSIC,
P.O. Box 4084, 14004-CORDOBA, Spain
phone: +34 957 499206; mobile: 610753265; fax: +34 957 499252
e-mail: lgarciatorres@ias.csic.es;
luisgt2015@hotmail.es
http://www.ias.csic.es/precisionmalherbologia/
Download