This file contains 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
_stix_fonts = Dict(:regular => "/System/Library/Fonts/Supplemental/STIXTwoMath.otf",#joinpath("NewComputerModern", "NewCMMath-Regular.otf"), | |
:italic => "/System/Library/Fonts/Supplemental/STIXTwoMath.otf",#joinpath("NewComputerModern", "NewCM10-Italic.otf"), | |
:bold => "/System/Library/Fonts/Supplemental/STIXTwoMath.otf",#joinpath("NewComputerModern", "NewCM10-Bold.otf"), | |
:bolditalic => "/System/Library/Fonts/Supplemental/STIXTwoMath.otf",#joinpath("NewComputerModern", "NewCM10-BoldItalic.otf"), | |
:math => "/System/Library/Fonts/Supplemental/STIXTwoMath.otf" | |
) | |
Makie.MathTeXEngine.default_font_families["STIX"] = Makie.MathTeXEngine.FontFamily( | |
_stix_fonts, |
This file contains 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
using Proj, BenchmarkTools | |
import GeometryOps as GO | |
# using proj_trans_generic on a vector of tuples - or could be GB.Point or SVector or GI.Point with arbitrary metadata, doesn't matter! | |
points = tuple.(rand(10000), rand(10000)) | |
t = Proj.Transformation("+proj=longlat", "+proj=natearth"; always_xy = true) | |
function batch_project_numsfirst!(points, projection) | |
# GC.@preserve points begin # not technically necessary |
This file contains 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
using SHA | |
function archive_source_string(prefix_name, prefix, suffix, oldhash::String; joinchar = "", unpack_target = nothing) | |
url = join((prefix, suffix,), joinchar) | |
hash = bytes2hex(get_hash(url)) | |
print("ArchiveSource(\"\$($(prefix_name))$(joinchar)$(suffix)\", \"$(hash)\"") | |
if !isnothing(unpack_target) | |
print("; unpack_target = \"$(unpack_target)\")") | |
else | |
print(")") |
This file contains 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
#= | |
This file provides integration for R's SF objects | |
which are essentially geo-dataframes, | |
into Julia DataFrames with GeoInterface wrapper | |
geometries. | |
This requires https://github.com/JuliaInterop/RCall.jl/pull/528, | |
so run `Pkg.add((; url = "https://github.com/asinghvi17/RCall.jl", rev = "patch-1"))` to get that. | |
TODO: |
OlderNewer