- Notifications
You must be signed in to change notification settings - Fork1
Export Rdata-File of the LUCAS Topsoil Database 2009 to CSV files.
License
NotificationsYou must be signed in to change notification settings
felixriese/lucas2csv
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Export several columns from the Rdata-File of the LUCAS Topsoil Database 2009 to CSV files.
The LUCAS 2009 TOPSOIL database is a rich dataset consisting of hyperspectral reflectance data and various soil properties data like clay, silt and sand content. This Python script extracts the several columns from the RData-file. I uploaded this script since there are no working examples for this file available yet.
The following columns are extracted:
sample.ID
: ID of the soil sampledate
: date and timespc
: hyperspectral dataclay
: clay content in percentagesilt
: silt content in percentagesand
: sand content in percentageGPS_LAT
: GPS latitudeGPS_LONG
: GPS longitude
Link to the LUCAS Topsoil database:https://esdac.jrc.ec.europa.eu/content/lucas-2009-topsoil-data
For this script, the following Python 3.x packages are needed:
- rpy2
- numpy
- pandas
importlucas2csvasl2csvlucas2csv(path_to_rdata_file="path/to/rdata",output_path="output/path/",verbose=1)