Usage:
$ ASAN_OPTIONS="detect_leaks=1:halt_on_error=0" RUSTFLAGS="-Z sanitizer=address" cargo +nightly run -Z build-std=core,alloc --target aarch64-apple-darwin
Output:
Finished dev [unoptimized + debuginfo] target(s) in 0.07s
{ | |
"datasets": [ | |
{ | |
"version": "v1", | |
"data": { | |
"id": "-ixx2l4", | |
"label": "monaco.kepler.csv", | |
"color": [ | |
143, | |
47, |
#[derive(Clone, Copy, Debug, Eq, PartialEq)] | |
#[repr(u8)] | |
pub(crate) enum WorldCover { | |
Tree = 10, | |
Shrub = 20, | |
Grass = 30, | |
Crop = 40, | |
Built = 50, | |
Bare = 60, | |
Frozen = 70, |
use h3o::LatLng; | |
use h3o::Resolution; | |
use hextree::Cell; | |
use std::str::FromStr; | |
#[derive(Debug, Clone, Copy)] | |
pub struct CoordOrHex(Cell); | |
impl FromStr for CoordOrHex { | |
type Err = anyhow::Error; |
// https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=7d2fd8dc461ab1fc7216eb4e68c4517d | |
use std::str::FromStr; | |
#[derive(Clone, Debug, Eq, PartialEq)] | |
pub(crate) enum ResOpt { | |
Fixed(u8), | |
Range(u8, u8), | |
} |
#!/bin/bash | |
set -ex | |
for lat in "S90" "S30" "N30"; do | |
for lon in "E000" "E060" "E120" "W060" "W120" "W180"; do | |
file_name=ESA_WorldCover_10m_2021_v200_60deg_macrotile_$lat$lon.zip | |
wget https://worldcover2021.esa.int/data/archive/$file_name | |
unzip $file_name | |
rm $file_name |
use anyhow::Result as AnyRes; | |
use gdal::{ | |
spatial_ref::{CoordTransform, SpatialRef}, | |
Dataset, GeoTransformEx, | |
}; | |
fn main() -> AnyRes<()> { | |
let ds = Dataset::open("lulc2022/17R_20220101-20230101.tif")?; | |
// WGS84 |
Usage:
$ ASAN_OPTIONS="detect_leaks=1:halt_on_error=0" RUSTFLAGS="-Z sanitizer=address" cargo +nightly run -Z build-std=core,alloc --target aarch64-apple-darwin
Output:
Finished dev [unoptimized + debuginfo] target(s) in 0.07s
/opt/homebrew/bin/pip3 install packaging mako PyYAML
/Users/jay/forks/gr-lora/build (master *=) $ brew list
==> Formulae
abseil fftw hicolor-icon-theme libtasn1 numpy readline
adwaita-icon-theme flac hiredis libtiff oniguruma ripgrep
aften fmt hub libtool open-mpi scipy
I hereby claim:
To claim this, I am signing this object: