Giter VIP home page Giter VIP logo

tvin_atpol's Introduction

Old data in 21 century

Grzegorz Sapijaszko

A couple of scripts to deal with a quite old (30+ years) data, made in DOS/Win 3.1 programs.

ATPOL extracts

Text files named 0123.LOC which contains species name in header and tabular data with ATPOL square, localization, author, year, longitude (Dl:) and latitude (Sz) as three columns with degrees, minutes and seconds. Below an example of such file.

Raport rekordow gatunku: 200
Atriplex roseum L.

Liczba kwadratow: 22
R173807  AD49    Kr�pa Ma�a, pow. Zielona G�ra,     1  Schube Th      1903    Dl:   0  0  0   Sz:   0  0  0
R173813  AD57    Lipno, pow. Zielona G�ra,          1  Schube Th      1903    Dl:   0  0  0   Sz:   0  0  0
R173817  AD59    Kr�pa, pow. Zielona G�ra,          1  Gruhl K        1929    Dl:   0  0  0   Sz:   0  0  0

The files uses Mazovia encoding. The content of the file can be read with extract_data_from_old_atpol() function from {atpolR} (Sapijaszko 2024) package, like:

atpolR::extract_data_from_old_atpol(filename = system.file("extdata/0200.LOC", package = "atpolR"))
# A tibble: 22 × 10
     lon   lat record_type record_number atpol_square description               
   <dbl> <dbl> <chr>               <dbl> <chr>        <chr>                     
 1     0     0 R                  173807 AD49         Krępa Mała, pow. Zielona …
 2     0     0 R                  173813 AD57         Lipno, pow. Zielona Góra  
 3     0     0 R                  173817 AD59         Krępa, pow. Zielona Góra  
 4     0     0 R                  173892 AE29         Bolesławiec               
 5     0     0 R                  173902 AE35         Zgorzelec                 
 6     0     0 R                  174013 BD50         Łaz, pow. Zielona Góra    
 7     0     0 R                  174018 BD51         Lubięcin, pow. Nowa Sól   
 8     0     0 R                  174029 BD60         Nowa Sól                  
 9     0     0 R                  174103 BE05         Krzelów, pow. Wołów       
10     0     0 R                  174149 BE18         Prusice, pow. Milicz      
# ℹ 12 more rows
# ℹ 4 more variables: date <dttm>, number_of_entries <dbl>, author_name <chr>,
#   species <chr>

It returns a tibble with coerced and formatted data.

Bibliography

Sapijaszko, Grzegorz. 2024. atpolR: ATPOL Grid Implementation. https://github.com/gsapijaszko/atpolR.

tvin_atpol's People

Contributors

gsapijaszko avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.