
Geographer and Lead GeoData Scientist at @HomesEngland. Daddy of 2, Raspberry Pi Geek, and enthusiastic mountaineering. Also a Spaniard ( Valencia) in the UK.
England
Joined July 2012
- Tweets1.9K
- Following1.4K
- Followers935
- Likes5.3K
GeoMariano retweeted
DBSCAN (Density-Based Spatial Clustering of Applications with Noise) is an unsupervised learning algorithm that identifies clusters as regions of high data density rather than assuming a particular cluster shape. Given a radius ε and a minimum number of points MinPts, an observation x is considered a core point if its ε-neighborhood contains at least MinPts observations. Clusters are then formed by connecting density-reachable points, while isolated observations can be classified as noise.
Unlike K-Means, DBSCAN does not require the number of clusters to be specified in advance and can discover clusters with highly non-convex geometries. Its behavior is governed by the local density structure of the data, making it closely related to ideas from nonparametric statistics and density estimation.
DBSCAN has applications in statistical machine learning including spatial data analysis, anomaly detection, image segmentation, customer behavior analysis and geospatial pattern recognition. From a statistical perspective, its notion of local density provides a simple way to distinguish structured populations from outliers. It is particularly useful when clusters have irregular shapes or when observations that do not belong to any meaningful population should be explicitly identified as noise. More recent density-based methods, such as HDBSCAN, extend these ideas to datasets with varying density levels.
GeoMariano retweeted
Devastating content but top tier cartography by José Luengo-Cabrera’s highlighting the power of mapping.
𝐌𝐨𝐫𝐞 𝐟𝐫𝐨𝐦 𝐭𝐡𝐞 𝐚𝐮𝐭𝐡𝐨𝐫: linkedin.com/posts/jos%C3%A9…
𝐌𝐨𝐫𝐞 𝐠𝐞𝐨𝐬𝐩𝐚𝐭𝐢𝐚𝐥: thenewscienceofmaps.com/?utm…
GeoMariano retweeted
`now()` is not now, it's more of a was.
`now()` is actually the start of the current transaction. The wall clock continues to move. Every later `now()`, `CURRENT_TIMESTAMP`, `CURRENT_TIME`, and `CURRENT_DATE` in a transaction still returns same time. Postgres calls this a transaction-frozen timestamp.
A 10,000-row `INSERT` with `created_at DEFAULT now()` gets one timestamp, not 10,000 slightly different ones.
Three clocks
• `now()` is a Postgres tradition (among other databases) and is not a SQL-standard. The SQL standard is `CURRENT_TIMESTAMP`. (Additionally, Postgres has the `transaction_timestamp()`method is is the same as `now()`, but with a name that admits what it is.)
• `statement_timestamp()` moves once per statement, which is useful inside a long transaction when you want per-command times without going all the way to the wall.
• `clock_timestamp()` is the only `timestamptz` that changes during a single statement
GeoMariano retweeted
⭐️⭐️ ¡¡𝗦𝗢𝗠𝗢𝗦 𝗕𝗜𝗖𝗔𝗠𝗣𝗘𝗢𝗡𝗘𝗦 𝗗𝗘𝗟 𝗠𝗨𝗡𝗗𝗢!!
#VamosEspaña | #CopaMundialFIFA
GeoMariano retweeted
Google set out to tackle the hedgerow problem.
The hedgerows, stone walls and little copses doing much of England's ecological work are too small for any national forest map to see, so on paper they barely exist.
Google decided to fix this. National forest inventories only count woodland above a certain size, so the thin ribbons of trees along field edges, the shelterbelts, the lone stands in a pasture all fall through the cracks, even though together they store carbon, shelter wildlife and stitch fragmented habitats back together. Google has now mapped every one of these features across the whole of England and turned them into data you can actually work with.
Start with the scale of it. England covers more than 130,000 square kilometres, and the system draws the fine woody features across all of it. The surprising part is how little hand-labelled data that took: roughly 247 square kilometres of carefully annotated samples, a rounding error against the national area. The model could stretch that far because it sits on a foundation trained on more than 300 million satellite images from around the world, so it arrived already knowing what trees, edges and fields tend to look like from above, and needed only a little local teaching to specialise.
To separate features that overlap and sit at different heights, it reads two layers at once: submetre optical imagery for the fine shape, and one-metre LiDAR, which measures height from the air, to tell a low hedge from the tree standing behind it. Then it sorts each feature by what it does in the landscape, using a simple measure of shape. Round, chunky patches above thirty metres across count as woodland. Long, thin, winding shapes get flagged as linear features like hedgerows. Shape becomes a stand-in for ecological function, worked out automatically across thousands of map tiles. The whole national sweep ran in parallel on Google Earth Engine, chewing through thousands of satellite cells at once rather than grinding through the country one region at a time.
The new release, Vectorized Farmscapes 2020, turns that into clean geometric shapes, each hedgerow or copse its own object with a length, an area and a position. You can measure it, add it up, and track whether it grew or vanished between surveys.
link to full article: research.google/blog/from-pi…
GeoMariano retweeted
Transform document images into structured data with LlamaParse (automated validation) 📊
Converting document images such as receipts to structured spreadsheet data requires tedious typing and careful validation.
LlamaParse automates document data extraction by combining OCR parsing with schema validation, eliminating manual typing and human error.
Here is an example pipeline for extracting receipt data:
• Parse receipt images to markdown using LlamaParse OCR engine
• Define receipt structure with Pydantic models (company, date, items, totals)
• Extract structured data automatically with OpenAI integration
• Validate types and enforce business rules (positive prices, valid dates)
• Export to pandas DataFrames or spreadsheets for analysis
🚀 Full article: bit.ly/46ODSl3
☕️ Run this code: bit.ly/46SQrdF
#DataScience #Python #MachineLearning #AI
GeoMariano retweeted
I’ve been deep in R for GIS mapping for years, but today marks a thrilling pivot: my very first Python tutorial is live!
We’ll extract Google’s latest satellite embeddings, run k-means analysis, and map our results
Everyone, watch the tutorial 👉youtu.be/WjoB7mou2n8
GeoMariano retweeted
Remember Global Buildings Atlas with
2.75 BILLION footprints for 97% of world's buildings?
You can view buildings for any city using this interactive map.
Link below 👇
GeoMariano retweeted
So awesome to have DeepMind 🧠 helping create datasets for #EarthEngine! Check out the Satellite Embedding dataset created with the AlphaEarth Foundations model 🛰️🌍👇
medium.com/google-earth/ai-p…
GeoMariano retweeted
I've prepared a short blog post on basic Markdown.
I use Markdown a lot in all of my Python projects.
And when I use it, 90% of time it's those 4 commands over and over again.
The blog will be out soon, but if you can't be bothered to read it, this graphics pretty much sums it up!
Enjoy!
GeoMariano retweeted
Have you seen pg_parquet yet?
Setting up `pg_parquet` lets you export tables or query results to Parquet format and read Parquet files into Postgres tables.
A typical workflow might look like this:
- Creating partitions using pg_partman, dividing your data by day, week, month, etc.
- Synching partitions to parquet for long term archiving and analytics
- Dropping partitions you no longer need in your transactional database, freeing up space
- Read from Parquet when you want to query the data lake. Create views to union multiple parquet files.
github.com/CrunchyData/pg_pa…
GeoMariano retweeted
Otra característica particular de esta dana ha sido su persistencia. Este tipo de borrascas que quedan aisladas suelen tener un ciclo de vida largo, pero en esta ocasión quedó "atrapada" por un bloqueo anticiclónico al norte y al sur. lavozdegalicia.es/noticia/es…
La clave meteorologica de la tragedia fue "el bloqueo orográfico". La cuestión no es no solo cuánto llovió, sino también dónde. Sumen además las aguas cálidas del Mediterráneo y la influencia del continente africano lavozdegalicia.es/noticia/es…
GeoMariano retweeted
Hemos recuperado las comunicaciones con la estación meteorológica de Turís.
Datos provisionales:
Precipitación acumulada: 618.0 l/m²
Precipitación máxima en 1 h: 179.4 l/m²
Precipitación máxima en 10’: 42.0 l/m²
GeoMariano retweeted
#SQL Interview Question for #DataScience:
Given two tables, “Trips” and “Users”, containing information on trips and users respectively. Calculate the cancellation rate for carpool requests involving users who are not banned.
Learn how to solve this problem: bit.ly/sql-question9
GeoMariano retweeted
MapLibre Tutorial 11: Visualizing Overture Open Buildings 🏢 in 3D. This demo showcases how to load and visualize the 90GB Overture Open Buildings dataset in PMTiles format using MapLibre. Customize building colors based on height for enhanced 3D visualization. 🌇
Video: youtu.be/OsFEH3DFstc
Playlist: bit.ly/maplibre
Notebook: leafmap.org/maplibre/3d_pmti…
Demo: maps.gishub.org/maplibre/3d_…
#geospatial #opensource #leafmap #maplibre
GeoMariano retweeted
it can be tricky to do forecasting in SQL, because SQL isn't really designed for operating on data that doesn't exist
in @duckdb it's simple, by combining generate_series() with unnest()
GeoMariano retweeted
📢Exciting news! 🚀 Leafmap now supports creating stunning interactive maps with #MapLibre 🗺️ It offers support for vector data, local rasters, COG, STAC, and hundreds of basemaps. Build captivating 3D maps with just a few lines of #Python code. Check it out 👇
GitHub: github.com/opengeos/leafmap
Notebook: leafmap.org/notebooks/92_map…
#geospatial #opensource #dataviz #leafmap
GeoMariano retweeted
DuckDB has introduced native Delta Lake support.
In our new blog post, @samansmink walks through the design and implementation of the new Delta Lake extension.
Read more at duckdb.org/2024/06/10/delta



































