Skip to content

Instantly share code, notes, and snippets.

View M3nin0's full-sized avatar
🌍

Felipe M3nin0

🌍
View GitHub Profile
const TestToolbox = {
BasicPrint: (text) => {
console.log(text);
}
}
@M3nin0
M3nin0 / executa-myqlm.sh
Created September 16, 2021 13:52
WorCAP 2021 - Executando o myQLM no Linux
# 1° Download dos exemplos
git clone https://github.com/myQLM/myqlm-notebooks
# 2° Executando a imagem com o exemplo baixado
docker run -it --rm -p 8899:8899 -v $PWD/myqlm-notebooks -v $PWD/myqlm-notebooks:/myqlm gfccosta/myqlm
@M3nin0
M3nin0 / Vagrantfile
Created September 1, 2021 18:21
ResearchProcessing Vagrantfile
Vagrant.configure("2") do |config|
# Hardware
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--ioapic", "on"]
vb.customize ["modifyvm", :id, "--memory", "4096"]
vb.customize ["modifyvm", :id, "--cpus", "4"]
end
config.vm.box = "ubuntu/focal64"
config.vm.box_check_update = false
location /my-jupyter/ {
proxy_pass http://my-jupyter:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 90;
add_header Access-Control-Allow-Origin *;
@M3nin0
M3nin0 / ferreira-etal2020-results-style.qml
Created May 5, 2021 00:09
Estilo QGIS para os resultados do artigo "Earth Observation Data Cubes for Brazil: Requirements, Methodology and Products"
<!DOCTYPE qgis PUBLIC 'http://mrcc.com/qgis.dtd' 'SYSTEM'>
<qgis styleCategories="AllStyleCategories" version="3.16.3-Hannover" hasScaleBasedVisibilityFlag="0" minScale="1e+08" maxScale="0">
<flags>
<Identifiable>1</Identifiable>
<Removable>1</Removable>
<Searchable>1</Searchable>
</flags>
<temporal mode="0" enabled="0" fetchMode="0">
<fixedRange>
<start></start>
@M3nin0
M3nin0 / picoli-etal2020-results-style.qml
Created May 4, 2021 05:30
Estilo QGIS para os resultados do artigo "CBERS DATA CUBE: A POWERFUL TECHNOLOGY FOR MAPPING AND MONITORING BRAZILIAN BIOMES"
<!DOCTYPE qgis PUBLIC 'http://mrcc.com/qgis.dtd' 'SYSTEM'>
<qgis version="3.8.0-Zanzibar" maxScale="0" hasScaleBasedVisibilityFlag="0" minScale="1e+08" styleCategories="AllStyleCategories">
<flags>
<Identifiable>1</Identifiable>
<Removable>1</Removable>
<Searchable>1</Searchable>
</flags>
<customproperties>
<property value="false" key="WMSBackgroundLayer"/>
<property value="false" key="WMSPublishDataSourceUrl"/>
@M3nin0
M3nin0 / 01_ExtractTimeSeries.R
Created April 25, 2021 12:39
Exemplo de especificação de um workflow de classificação utilizando Common Workflow Language (CWL).
# Autor: Felipe Menino Carlos
# Data: 25/04/2021
set.seed(777)
library(sits)
#
# Auxiliary function
#
extract_ts_by_sample_location <- function(collection, start_date, end_date, bands, sample_file) {
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@M3nin0
M3nin0 / lulc-classification-reprozip-trace.yaml
Last active April 19, 2021 20:24
System Trace for a LULC Classification using SITS R Package. Generated by ReproZip
# Author: Felipe Menino Carlos
# Date: 19/04/2021
#
# ReproZip configuration file
# This file was generated by reprozip 1.0.16 at 2021-03-15T02:04:56+00:00
# You might want to edit this file before running the packer
# See 'reprozip pack -h' for help
# Run info
import numpy
from wtss import WTSS
service = WTSS('https://brazildatacube.dpi.inpe.br/', access_token='seu-token')
cbers4_coverage = service['CB4_64_16D_STK-1']
#
# bandas
#