Skip to content

Export Rdata-File of the LUCAS Topsoil Database 2009 to CSV files.

License

Notifications You must be signed in to change notification settings

felixriese/lucas2csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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

Requirements

For this script, the following Python 3.x packages are needed:

  • rpy2
  • numpy
  • pandas

Usage

import lucas2csv as l2csv

lucas2csv(
    path_to_rdata_file="path/to/rdata",
    output_path="output/path/",
    verbose=1)

About

Export Rdata-File of the LUCAS Topsoil Database 2009 to CSV files.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages