Skip to content

Instantly share code, notes, and snippets.

View prl900's full-sized avatar

Pablo Rozas Larraondo prl900

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
We can't make this file beautiful and searchable because it's too large.
Project Proponent,Project Name,Project ID,Method,Method URL,Method Type,Project Description,Date Project Registered,Project location,Project location (postcode),"Project Area(s), where the project is an area based offsets project",Project Mapping File URL,Carbon Estimation Area mapping file URL,Carbon Estimation Area Supplementary information,"If the area-based project is covered by a regional natural resource management plan, is it consistent with that plan?",Joint Implementation project,Is the project area or project areas subject to a Carbon Maintenance Obligation (CMO)?,Conditional upon all regulatory approvals being obtained,Conditional upon the written consent of relevant interest holders,"Nominated Permanence Period, if applicable","Finish date of permanence period, if applicable",Contracted on,Contract ID,ACCUs Total units issued,KACCUs Total units issued,KACCUs Units Issued in Financial Year 2012/13,KACCUs Units Issued in Financial Year 2013/14,KACCUs Units Issued in Financial Year 2014/15,KACCUs Uni
ID CEA
EOP100275 1
EOP100570 1
EOP100637 0
EOP100992 1
EOP100996 1
EOP101037 1
EOP101098 1
EOP101101 1
EOP101114 1
from glob import glob
from sklearn.ensemble import RandomForestRegressor
import pandas as pd
import rasterio as rio
import numpy as np
print("Starting!")
path = 'WCF_traindata_14122019.csv'
df = pd.read_csv(path)
df.columns = df.columns.str.replace(' ', '')
We can't make this file beautiful and searchable because it's too large.
Project Proponent,Project Name,Project ID,Method,Method URL,Method Type,Project Description,Date Project Registered,Project location,Project location (postcode),"Project Area(s), where the project is an area based offsets project",Mapping File URL,"If the area-based project is covered by a regional natural resource management plan, is it consistent with that plan?",Joint Implementation project,Is the project area or project areas subject to a Carbon Maintenance Obligation (CMO)?,Conditional upon all regulatory approvals being obtained,Conditional upon the written consent of relevant interest holders,"Nominated Permanence Period, if applicable","Finish date of permanence period, if applicable",Contracted on,Contract ID,ACCUs Total units issued,KACCUs Total units issued,KACCUs Units Issued in Financial Year 2012/13,KACCUs Units Issued in Financial Year 2013/14,KACCUs Units Issued in Financial Year 2014/15,KACCUs Units Issued in Financial Year 2015/16,KACCUs Units Issued in Financial Year 2016/17,KACCUs Units Is
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import numpy as np
opn = {
"+": np.add,
"-": np.subtract,
"*": np.multiply,
"/": np.divide,
"^": np.power,
"==": np.equal,
"!=": np.not_equal,
import dash
import dash_leaflet as dl
from dash import Dash, html, Output, Input
import dash_bootstrap_components as dbc
from dash.exceptions import PreventUpdate
purple_dot = {"iconUrl": 'https://storage.googleapis.com/terrakio_webapps/purple_dot.png', "iconSize": [40, 40]}
red_triangle = {"iconUrl": 'https://storage.googleapis.com/terrakio_webapps/red_triangle.png', "iconSize": [40, 40]}
hires_url = "https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"