Professional Experience

Automation Consultant

The Optimal Flow, Madrid Dec 2025 – Oct 2026
  • Design and development of digital systems and process automations for companies on Airtable, Notion, Monday and Slack, using n8n and Make, owning the whole project: system design, technical development and client communication.
  • Audit of clients' internal processes with improvement proposals, and AI training for companies.

Predoctoral Researcher

Centro de Astrobiología (CSIC-INTA), Madrid 2021 – 2025
  • Building and evaluation of classification models for massive stars in the infrared (PCA, XGBoost, Random Forest) from He and H diagnostic lines, in Python, end to end: data, model, evaluation and documentation.
  • Statistical analysis of results and validation of conclusions against observations and the literature.
  • Presentation of results at international conferences in English.

Engineering Intern, Structures department

Airbus Defence & Space, Getafe Sep – Dec 2017

Education

PhD in Astrophysics

Universidad Autónoma de Madrid · CAB (CSIC-INTA) 2021 – present

MSc in Astrophysics

Universidad Complutense de Madrid 2019 – 2020

BSc in Aerospace Engineering

Universidad Politécnica de Madrid 2012 – 2018

Technical Skills

Programming

Python, R, Matlab, SQL, Git, Docker.

Statistics and machine learning

Statistical inference, hypothesis testing, PCA, classification models (XGBoost, Random Forest; scikit-learn), model evaluation and validation, time series, Monte Carlo simulation.

AI and automation

Local LLMs (Ollama, Qwen), Anthropic API, MCP (Model Context Protocol), n8n, Make, Airtable, Notion, Monday, Slack.

Office

Excel, Word, PowerPoint.

Languages

Spanish (native) · English C1 (Trinity College London) · French A2.

Certifications and Courses

CFA Level I

Candidate

Model Context Protocol: Advanced Topics

Anthropic 2026

n8n: Zero to Hero

KodeKloud / freeCodeCamp 2025

IBM Data Science Professional Certificate

IBM / Coursera · 9 courses: Python, SQL, data analysis and visualisation, machine learning 2021

Deep Learning Specialization

DeepLearning.AI / Coursera · 5 courses 2021

Publications

Peer-reviewed papers. Full list on ADS (ORCID 0000-0002-6336-0359).

First author

First spectroscopic identification of the main sequence in Westerlund 1

Castellanos, R.; Najarro, F.; Garcia, M.; et al. 2026

Astronomy & Astrophysics, 708, A209 · DOI 10.1051/0004-6361/202558099

Castellanos et al. 2026b

Castellanos, R.; et al. 2026

Astronomy & Astrophysics, accepted (link to follow on publication)

Diffuse interstellar bands in the near-infrared: expanding the reddening range

Castellanos, R.; Najarro, F.; Garcia, M.; et al. 2024

Monthly Notices of the Royal Astronomical Society, 532, 2065–2081 · DOI 10.1093/mnras/stae1472

Co-author

EWOCS-IV: 1 Ms ACIS Chandra observation of the supergiant B[e] star Wd1-9

Anastasopoulou, K.; Guarcello, M. G.; Drake, J. J.; et al. 2025

Astronomy & Astrophysics, 701, A138 · DOI 10.1051/0004-6361/202555305

EWOCS-II: X-ray properties of the Wolf–Rayet stars in the young Galactic super star cluster Westerlund 1

Anastasopoulou, K.; Guarcello, M. G.; Flaccomio, E.; et al. 2024

Astronomy & Astrophysics, 690, A25 · DOI 10.1051/0004-6361/202348914

Spectroscopic evidence of a possible young stellar cluster at the Galactic Center

Martínez-Arranz, A.; Schödel, R.; Nogueras-Lara, F.; et al. 2024

Astronomy & Astrophysics, 685, L7 · DOI 10.1051/0004-6361/202449877

EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Westerlund 1 and 2 Open Clusters Survey

Guarcello, M. G.; Flaccomio, E.; Albacete-Colombo, J. F.; et al. 2024

Astronomy & Astrophysics, 682, A49 · DOI 10.1051/0004-6361/202347778

Projects

Personal projects in production (2026). All the code is at github.com/CasteSan.

Job-offer radar

Python · local LLM 2026

A daily radar that collects job offers, filters and scores them with a local language model, and sends a prioritised digest. The scoring is versioned and evaluated against human verdicts, and the system is tested against prompt injection.

PortfolioHub — investment portfolio tracker

Next.js · TypeScript · Prisma · PostgreSQL on Neon · Vercel 2026

A web application to track investment portfolios: Spanish tax engine (FIFO/IRPF), TWR/MWR returns, risk metrics, ECB exchange rates and broker import parsers. It runs in production on Vercel; the pure calculation engines are public, with more than 500 tests and screenshots of the dashboard.

E-mail classifier with a local LLM

n8n · Docker · Telegram 2026

An e-mail classifier that runs a local language model inside an n8n workflow on Docker and reports through Telegram.