GithubHelp home page GithubHelp logo

m3nin0-labs / burned.py Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 47 KB

๐Ÿ”ฅ ๐Ÿ” Index and Search data from Queimadas/INPE

License: MIT License

Dockerfile 8.25% Python 91.75%
inpe queimadas

burned.py's Introduction

Burned.py ๐Ÿ”ฅ

The burned.py library is a powerful tool designed to index and search data from the Brazilian fire identification program conducted by the National Institute for Space Research (INPE) - Programa de Queimadas do INPE. This library is an essential resource for researchers, developers, and analysts working with environmental data related to fire events in Brazil.

Note: This is a hobby project.

Structure

The library is divided into two main components:

1. Core

The core of burned.py provides the fundamental functionalities of indexing and searching for fire data. Built on top of technologies like SpatiaLite and SQLModel, the core is versatile enough to support the development of RESTful APIs, CLI applications, and more.

2. High-level API

The high-level API abstracts the complexities of the core functionalities using GeoPandas, enabling users to easily index and search for fire data without needing to interact directly with the underlying components.

Installation

You can install burned.py using:

pip install git+https://github.com/m3nin0-labs/burned.py

Usage

To use the High-level API, two steps are required:

Indexing Data

Indexing is the process of organizing data in a way that makes it easier to retrieve. In the context of burned.py, indexing involves reading and storing data from CSV files into SpatiaLite, allowing for efficient searching. To index data, users can utilize the following example code:

from burnedpy.manager import FirespotsDataManager

# Create the data manager
manager = FirespotsDataManager()

# Index the data
status = manager.index("/path/to/focos_ams_ref_XXXX.csv")
print(status)  # Outputs: (success, error)

Searching Data

Once data is indexed, it can be searched using coordinates:

from burnedpy.manager import FirespotsDataManager

# Create the data manager (data must be already indexed)
manager = FirespotsDataManager()

# Perform a search within a geographical bounding box
results = manager.search((-26.470573, -54.536133, -21.902278, -48.471680))
results.head(5) # Output: GeoDataFrame

Contributing

We welcome contributions! If you have suggestions for improvements or bug fixes, please feel free to fork the repository and submit a pull request.

License

burned.py is distributed under the MIT license. See LICENSE for more details.

burned.py's People

Contributors

m3nin0 avatar

Watchers

 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.