The Second Story of Princess Olivia and the Magical Moose Whose Name No-one Could (Still) Quite Remember


A chill wind blew across the ruins of the battlefield as the mighty Princess Oliva strode victorious over her defeated enemies. Black orc blood dripped from her scimitar, glistening in the morning light and making a surprisingly dramatic "plink" sound as it hit the ground. The Princess was bored.

The goblins hadn't taken well to using FRELLED to detecting HI sources. They thought it had just been another cruel task demanded by their oppressors. Soon they'd rebelled, and as usual, they'd had to be slaughtered. Few things were as irritating as a bunch of rebellious goblins who wouldn't even do a simple thing like search radio data cubes for you. The Princess let out a long, disappointed sigh, and wished the magical moose would re-appear to sort out this horrible mess.

Just then the magical moose appeared from nowhere with a small flash that only an optimist would describe as a "special" effect. "Moose !" cried Olivia. "You came back !"
"Of course," said the Moose, "I had to, it's the sequel".
"Moose," pleaded Oliva, "I tried really hard. I had a whole team of goblins searching the data for me. But it, ahh, didn't go so well. I really think I need an automatic way to find HI galaxies. Can you help ?"
"Hmm," said the Moose, thoughtfully, "I think I've got just the thing. Climb aboard !"

The Princess climbed on to the the Mooses' back, who gave a sudden leap and soared majestically through the sky. Soon the smoking wreck of the battlefield was far below them.
"Moose !" cried Olivia, "Mooses can't fly !"
"Quite right," said the moose, "but sequels are like entropy. They inevitably get sillier and worse. It's only a mercy I don't have lasers for eyes or missiles for legs or something."
"Hmm, that's true, I suppose a magical flying moose isn't so bad", said Olivia. "You could have been a cyber-moose with USB compatibility or a strange aversion to cheese or whatnot." Just then they landed back in the familiar library, and once again sat before one of the many computer terminals.

"OK, Moose, how does this work ?" said Olivia, carefully placing her bloodied scimitar into an umbrella stand.
"You need to run this Python script called GLADoS" said the Moose. "Look, it's got a GUI and everything."
"Gosh, it does !" said Olivia. "What do I need to set ?"
"It's quite straightforward really," said the Moose, "but the main thing is to decide if you have dual polarisation data or not".
"Of course I do," said the Princess haughtily, "the arisotocracy doesn't make do with mere averaged data. That's for peasants and butlers."
"Then check the box," said the Moose. "See how that activates other options ?"
"So it does !" said Olivia. "And I suppose I can just set the signal to noise and velocity width threshold for each polarisation over here...?"
"That's right," said the Moose. "If you only had averaged data, you'd only enter one value. And you can set the velocity range to search in these two boxes, if you want to save time."
"What about this "vel. tol." parameter ?" asked Oliva, somehow pronouncing the full stops.
"That sets how far apart in velocity the detections can be in individual polarisations and still considered part of the same source," explained the moose. "You probably don't need to alter that, because it depends on the nature of galaxies. If you detected one of the brightest horns of a galxy in one polarisation, you might happen to detect the other horn in the other polarisation. And that's never going to be more than +/- 600 km/s away."
The Princess thought about this for a moment and carefully adjusted her tiara. It glinted in the light of the computer terminal and made a faint "ting" sound. "Hmm, yes, I think that makes sense" she said. "What about all these options in the middle ?"
"Good question," said the moose. "The top one controls what you want GLADoS to do. The default is to just search the cube - produce a catalogue of candidates but not do anything with it. Try it now, the default parameters should be sensible enough."

The Princess did as she was bid and waited patiently.

Time passed.

The Princess grew bored. "Moose," she said skeptically, "this is VERY slow."
"Yes it is a bit," agreed the moose reluctantly. "If you need to test the settings it's best to use a small cube to start with. Maybe the next version will have parallelised code or something and be faster."

At last it finished. The moose explained that it had now produced a catalogue file containing the main data of all the candidates, but it had also made spectra and downloaded SDSS imaging data for each one.
"You can inspect that by setting the button to "review" he said".
The Princess was astonished to see before her a multi-panel display showing everything she could realistically want from an HI detection. She began clicking on the various buttons to assign a status to each source. But after a while she grew weary.
"Moose," she said, "this is definitely faster than searching the whole cube by eye. But I've got a kingdom to rule and I can't be at this all day, you know."
"Not a problem !" said the Moose. "Just press "save & exit" and then use the "Resume" option when you want to restart. It'll remember where you left off so you can start from there and not have to go through the whole bloody lot again."
"Wow !" said Olivia. "That's super useful ! But what if I make a mistake ?"
"There's an answer to that too," said the moose, proudly. "If you use the "review" option but change the source category in the second box, it'll bring up only sources from that category so long as you'd already completed a search. And if you just click the normal "X" button to close the window, it'll skip the source and leave its status unchanged."
"That's quite handy," admitted Olivia. "What about all these other boxes ?"

"That requires a new paragraph," said the Moose. "Don't forget, they have tooltips. But there aren't many you'll need to set. The one that's set to "beam" by default considers how to weight the surrounding pixels when extracting spectra."
"Right, so I'll get the beam-weighted spectra by default," said Princess Olivia with approval. "What of all these advanced options ?"
"You can mostly forget about them," said the Mooose. "You'll need to set the location of the STILTS file if you don't have a full STARJAVA installation though, and you might want to adjust the "vel. channels parameter" depending on your data."
"Why ? What does that do ?" asked Olivia.
"It controls the velocity range within which adjacent detections are merged", said the Moose. "It's set to give a range of 150 km/s using AGES data, but you'll need to alter this depending on the properties of your own data."

The Princess nodded thoughtfully. There seemed like quite enough to be getting on with.
"Thanks Moose", she said. "Anything else I need to know ?"
"Just remember that there are a lot of parameters you can set, and don't be afraid to adjust them", said the Moose. "Always look at your data if you can. Just because this is an objective algorithm doesn't mean it'll give you better answers than a visual inspection - if it's wrong, it'll just be repeatedly wrong. This is a handy tool to supplement visual inspection, but it can never replace it."
"But what's the problem, Moose ?" cried Olivia. "Why can't we get reliable, repeatable data using objective measurements ?"
The Moose gave her a sly look. "I may be a magical moose", he said, "but knowing the nature of objective truth is a philosophical problem even we mooses haven't solved. Good luck !"
And with that he stomped his hoof and disappeared.

THE END.
