https://github.com/felixriese/lucas2csv
Export Rdata-File of the LUCAS Topsoil Database 2009 to CSV files.
https://github.com/felixriese/lucas2csv
csv hyperspectral-data lucas-topsoil-database python rdata soil-texture
Last synced: 6 days ago
JSON representation
Export Rdata-File of the LUCAS Topsoil Database 2009 to CSV files.
- Host: GitHub
- URL: https://github.com/felixriese/lucas2csv
- Owner: felixriese
- License: mit
- Created: 2018-12-04T20:00:02.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-11-03T10:11:12.000Z (over 6 years ago)
- Last Synced: 2025-10-26T19:40:17.206Z (9 months ago)
- Topics: csv, hyperspectral-data, lucas-topsoil-database, python, rdata, soil-texture
- Language: Python
- Size: 16.6 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LUCAS 2 CSV
Export several columns from the Rdata-File of the LUCAS Topsoil Database 2009 to CSV files.
## Description
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 sample
- `date`: date and time
- `spc`: hyperspectral data
- `clay`: clay content in percentage
- `silt`: silt content in percentage
- `sand`: sand content in percentage
- `GPS_LAT`: GPS latitude
- `GPS_LONG`: GPS longitude
Link to the LUCAS Topsoil database: [https://esdac.jrc.ec.europa.eu/content/lucas-2009-topsoil-data](https://esdac.jrc.ec.europa.eu/content/lucas-2009-topsoil-data)
## Requirements
For this script, the following Python 3.x packages are needed:
* rpy2
* numpy
* pandas
## Usage
```python
import lucas2csv as l2csv
lucas2csv(
path_to_rdata_file="path/to/rdata",
output_path="output/path/",
verbose=1)
```