Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6615000 | 3125000 | #ff0000 | |
---|---|---|---|
6635000 | 3185000 | #ff0000 | |
6635000 | 3195000 | #ff0000 | |
6635000 | 3205000 | #ff0100 | |
6635000 | 3215000 | #ff0100 | |
6635000 | 3225000 | #ff0100 | |
6635000 | 3235000 | #ff0200 | |
6635000 | 3245000 | #ff0200 | |
6635000 | 3255000 | #ff0300 | |
6635000 | 3265000 | #ff0300 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Reads EPSG:2393 (KKJ / Finland Uniform Coordinate System) coordinates with optional color and draws them as dots on a SVG map. | |
# Depends on: | |
# GeoJSON data from https://gist.github.com/mikkohei13/0acf09633a1635b5363d47c5603fd789 | |
# Sample data from https://gist.github.com/mikkohei13/d03316b75393a1718be5232986e0e2eb | |
import re | |
import json | |
def extract_polygons_from_geojson(file_path): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Script to make conversions to a CSV tabular file containing bird species observations (occurrence records) | |
Updated for 2024 file format | |
Data format sample: | |
id;pvm;aika;laji;lkm;ykj_p;ykj_i;PV-indeksi | |
1593921;01.02.2024;07:16;teeri;1;6890000;3410000;2 | |
1593922;01.02.2024;08:04;metso;1;7070000;3380000;2 | |
1593925;01.02.2024;08:17;metso;1;6980000;3230000;2 | |
1593941;01.02.2024;10:39;teeri;80;7090000;3470000;2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Tool to compare observations from Tiira to atlas data, to see which observations could increase breeding indices. | |
MIT License | |
''' | |
# Source data - Tiira export saved as UTF-8 CSV file | |
tiira_filename = "./import/tiira.csv" | |
# Atlas square to compare to | |
atlas_square = "667:337" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Converts "Luken aineistokooste 4. lintuatlakseen" tsv file into FinBIF Data Bank secondary data format. | |
Mikko Heikkinen 2023-12-29 | |
''' | |
import pandas as pd | |
# Load the file into a Pandas dataframe using tab as the delimiter. Keep "NA" as a value. | |
file_path = 'luke_atlasdata.txt' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Made wth ChatGPT / GPT-4 | |
# Finds spatial ouliers by clcularing SD of locations | |
# Input: FinBIF data of a single species in simple data format | |
import pandas as pd | |
import numpy as np | |
# Load the data (Replace 'file_path' with your actual file path) | |
file_path = 'your_data_file.csv' # Change this to your file path | |
bird_data = pd.read_csv(file_path, sep='\t') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Made with ChatGPT GPT-4 2023-11-23 | |
# Finds temporal outliers from a simple occurrence data file of a single species from FinBIF, with headers in English. | |
import pandas as pd | |
import seaborn as sns | |
import matplotlib.pyplot as plt | |
from shapely.geometry import Point | |
import geopandas as gpd | |
# Load the data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Made with ChatGPT/GPT-4 | |
import requests | |
import pandas as pd | |
import time | |
import csv | |
def fetch_citation_count(doi): | |
""" | |
Function to fetch the citation count for a given DOI using the OpenCitations API. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import numpy as np | |
import re | |
# Mikko Heikkinen 2020, 2022, 2023 | |
# Defines which columns to use. Order is not significant. | |
usecols = [ | |
'gbifID', |