Yuvraj Singh

Back to all work

modelevaluation.org: scoring land models against the real world

Research Software Engineer, UNSW Climate Change Research Centre, Jul 2025 – Present

The platform where land-surface models like CABLE are scored against flux-tower observations. I built the dataset-analysis stage that profiles every observational site before a model is scored against it, I'm adding per-site empirical ML baselines on top, and I keep the platform running underneath.

Fig. 1 Drag the model run. A Taylor diagram puts correlation, spread and error against observations into one picture; the platform draws plots like this for every submission. Illustrative data, not a real submission.

What the platform does

modelevaluation.org (formerly PALS) is where land-surface modellers find out how their model holds up against the real world. A modeller uploads output from a model such as CABLE and picks an experiment. The platform then scores the output against flux-tower observations and up to three benchmark models, and sends back plots and metrics. It's run by the UNSW Climate Change Research Centre, hosted at NCI, and works with ACCESS-NRI and TERN.

The science lives in palsR, Gab Abramowitz's R analysis package. Since July 2025 my job has been everything around it: the web app, the analysis worker, the engineering side of the R package, and getting the analysis to run on a supercomputer. The HPC half has its own write-up.

How an analysis moves through the system

Dataset analysis: look at the observations first

A score against a site is only as good as the site's data. If a tower's record is patchy, or the site behaves nothing like its neighbours, a model can look bad (or good) for reasons unrelated to the model. Dataset analysis looks at the observations themselves first. I built it end to end:

Every flux-tower site goes through it as it's processed onto the platform.

FluxNet, and where my part starts

FluxNet is a global network of towers that measure the weather and the exchange of heat, water and carbon between the land and the air. It's the reference land models are compared against. Bringing it onto the platform is a team effort:

  1. Fetch (team). A cron job runs the upstream fluxnet/shuttle library to check for and pull dataset updates.
  2. Process and QC (Gavin Wang). Gavin's fork of FluxnetLSM cleans each site and converts it into the format palsR reads. It's semi-automated on purpose: some sites need a different processing path to make scientific sense, and those choices are kept in the dataset's metadata.
  3. Dataset analysis (me). The profiling step above.
  4. Empirical baselines (me, in progress). Below.
  5. Scoring (palsR, Gab). Submitted models are compared against the observations and the benchmarks.

Empirical baselines (in progress)

Matching the observations isn't the whole test for a physics model. It should also beat what a simple statistical model gets from the same inputs. If a linear regression trained on a site's weather predicts its heat fluxes better than a land-surface model does, that tells the modeller something specific.

I'm extending the dataset-analysis stage so these baselines are trained and catalogued automatically for every processed site: a linear regression ("1lin"), a random forest and an LSTM, trained per site across all the FluxNet datasets. Their outputs become the benchmarks that uploaded model runs are scored against. Training runs on our worker and on NCI's Gadi. The work is under way, and I don't have results to show yet.

Keeping it running

A 37-hour outage (Sep 2026). The site started returning 502s, and I traced the chain from the container logs. The MongoDB volume filled at 23:58 on 9 September, WiredTiger panicked, and mongod crash-looped (about 2,200 restarts), taking the app with it (about 1,300). The app's error logging jumped from about 2 lines an hour to about 30,000, eating the disk we needed to free. Nothing alerted.

The detail that mattered most: the nightly backup had finished about 9 seconds before the disk filled. It was almost certainly the last good copy, and the next nightly run, against a crash-looping database, could overwrite it. So the first step in my write-up was to copy that backup somewhere safe. Then came a least-destructive recovery order and follow-ups: disk alerts, log caps, a Mongo healthcheck and dated backups. NCI runs the hardware, so the hands-on recovery sat with them.

Measuring before buying infrastructure (Aug 2026). Overseas users called the site close to unusable, and geo-replicated app servers were priced at about $600–1,100 a month. I built a Puppeteer harness instrumented for Meteor's DDP traffic and ran it from Sydney, Mumbai, Northern Virginia and London.

Two of my own hypotheses were wrong: that DDP data was most of the payload, and that it was purely bandwidth. I recommended fixing the startup payload first, with these numbers as the acceptance baseline, rather than replicating servers.

Meteor 3 and S3. I led the migration from Meteor 2.16 to 3.4. It touched 165 files, replaced eight deprecated packages, moved server methods to async and moved the main pages from Blaze to React. Later I normalised about 42,000 legacy file paths and replaced the OpenStack Swift layer with one S3 client (multipart uploads, server-side copies, idempotent deletes). A production release is now a date tag that promotes an image master already built and tested.

Flaky CI. Cypress on master failed in clusters. Cypress wrote failure screenshots inside the app directory, and Meteor's dev-mode watcher restarted the server when it saw them. That dropped every connection, so one failing test took the rest down with it. Every failed run since April had a restart; no passing run had one. Ignoring the folder wasn't enough, since any new folder under the app triggers a restart, so the fix moved test artifacts out of the app. A wider look at 124 pipelines found a real upload race too: under stress, master lost a file in 2 of 10 runs, and after the fix none in 30. Cypress coverage grew from 13 to 34 tests.

The UI. With Gavin, I moved it off a very dated look onto React and a token-based stylesheet. It still needs a lot of work, and I wouldn't call it a design showcase. My time has gone into what's underneath.