2012-01-31

code documentation as memory

Schiminovich and I met at an undisclosed location early in the morning and spent most of the day working on our eclipsing-white-dwarf paper, using the time-domain information in the GALEX raw data stream. As with so many projects, we are sitting on beautiful results but have no paper. We are resolved to fix that in the next few weeks. One thing I was reminded of is that if you don't work on a project for many months, and then have to write up a method section, you better hope you documented your code!

2012-01-30

philosophers are different

I spent a couple hours at NYU Philosophy, attending a seminar by Jim Weatherall (UC Irvine) about the status of geodesic motion in the absence of force (the law of inertia) in General Relativity and also Newtonian Gravity. He gave a nice demonstration that when you view both theories in their geometric forms (natural for GR, lately done for Newtonian), the proofs of Newton's First Law in each case look pretty similar. He is attacking a long-held view (promoted by Einstein himself) that only in GR does inertial motion have a clear explanation, that is, is not a postulate. Apparently Eddington first made this point to Einstein, and Einstein was stoked about it. What Weatherall showed is that it is not really correct: In its geometric form, Newtonian Gravity provides the same proof (with actually slightly fewer assumptions, in part because causal structure is so simple in Newtonian Gravity).

As usual when going on safari in other departments (Math, CS, Biology, and so on), I learn as much about the practices of the other field as I do from the talk itself. Philosophy talks are scheduled for two hours, seminar for an hour, then questions for an hour, with a short break in-between. Questions are handled formally by a moderator. It is an absolutely excellent format that encourages well thought-out questions and serious, detailed answers; maybe we should consider adopting it?

2012-01-28

electromagnetism

In a strange coincidence (though perhaps not totally unexpected), I am teaching advanced electromagnetism to a few of our seniors (fourth-year undergraduates) and at the same time, after a long session staring at images from the Project 1640 coronograph, Fergus and I decided that we need to at least discuss and explore the possibility that we might model the electromagnetic fields inside the instrument. That is, we need to figure out if it is possible to model not just the intensity field but the electric and magnetic fields (or, in the steady state, you can think of it as an amplitude and a phase at the detector surface). To my knowledge, except in radio astronomy, this has not been done: Optical (and near-optical) astronomers think of the "thing" in the telescope as being the intensity field (or worse, photons), not the electric and magnetic fields. The challenge is: Superposition really applies only to the electric and magnetic fields, not the intensity field; but at the same time, CCD-like detectors only measure (a noisy sampling of) the intensity field. Saturday night found me starting to write and test some very simple code, with delta-function sources and delta-function pixels.

2012-01-27

large galaxies, cosmic rays

It comes as a surprise to many that it is much harder to precisely measure the properties of very bright, nearby galaxies than it is to measure the properties of much more distant but similar objects! (Same for very bright stars too, in modern digital imaging.) Part of this is because at high signal-to-noise you see the (badly modeled) details of your point-spread function better. But the bigger issues are that nearby galaxies span field boundaries (in any blind survey, like SDSS), span flat-field and sky variations (because of their large angular sizes), and tend to be blended with background galaxies and foreground stars. Mykytyn, Foreman-Mackey, and I discussed all these issues over a long post-lunch meeting.

In the early morning, Andrew Flockhart (NYU), Fergus, and I discussed our project to use supervised classification machine-learning techniques to identify the cosmic rays robustly in single-epoch, single-exposure HST imaging. We decided to start with nearest-neighbor techniques and move to support vector machines, before going to any heavy machinery. We built our training set with multi-exposure imaging from the HST Archive.

2012-01-26

responding to referee; the disk

I spent the day in Princeton; the morning with Bovy talking about the Milky Way disk and the afternoon with Lang working on the response-to-referee on the Comet Holmes paper. We are very, very behind schedule on that! We made figures that compare the Comet Holmes orbit we inferred to the NASA orbit. We don't get quite the right orbit, in part because our model of the data we scraped from the web is so crude.

Bovy and I discussed his results on the kinematics of mono-abundance subpopulations in the Milky Way disk, a follow up to his paper on the spatial structure of those same populations. We also discussed his measurement of the disk rotation curve with APOGEE data; he gets a low-amplitude (relative to Reid and The Colbert Report) rotation curve, which is intriguing.

2012-01-25

software repository, licensing

Inspired by emails from Stumm and Foreman-Mackey, Lang and I had a long conversation about software repositories: SVN vs GIT, in the cloud vs at home, one repository or many, what level of organization, and so on. It is a difficult set of problems, and different solutions serve and support different kinds of development styles and communities. We have decided to migrate one sub-project from the Astrometry.net SVN repository to a github GIT repository as a test balloon, and that led to a round of the endless discussion of licenses. Someone needs to write the document software licensing for astronomers and be done with it!

In the afternoon, I started to read Bovy's latest manuscript about chemical-abundance sub-populations in the Milky Way disk, but now in velocity space.

2012-01-24

segmenting images and inferring motion

Over in Fergus's computer science group, Deqing Sun (Brown) gave a very nice talk about measuring motion in image sequences (think movies) by building a generative model of moving layers with sharp boundaries. He constructs a prior over image segmentations by segmenting the image using threshold-crossing of a (very local) smooth Gaussian process; this permits an analytic prior. The results are beautiful and effective and conform to common sense and also come close to world-record performance against quantitative benchmark tests (with known ground truth). His system performs well in part because it is a (approximate, simplified, sensible) full generative model for the data: It has a large number of parameters, a proper prior over those parameters, and a sensible likelihood function, and he can optimize it. He didn't try to sample from the posterior PDF, but he has only worked (so far) at very high signal-to-noise.

2012-01-23

Python

Foreman-Mackey returned from his furlough at Queens, where he was finishing a paper with Widrow on Andromeda. I quizzed him about some details of cacheing (very slow computations) in my Python RGB-to-CMYK code; he had good ideas. One thing he noted that instead of doing if rgb in cache.keys(): it might be far faster to do try: cmyk = cache[rgb] and then catch the KeyError exception. Apparently that is the rage and style in Python programming. He also promised to help me Python-package and docstring everything. Looking forward to it!

[Note added a few minutes later: Switching from the keys() check to the try style sped up the cache retrieval by a factor of 40!]

2012-01-20

planning and not doing

I worked on making a somewhat binding schedule for creation of my Large Galaxy Atlas and the associated publications; the rest of the day was spent on various complicated issues related to my position as Director of Undergraduate Studies; that is, forbidden content on this blog.

2012-01-19

GALEX-orama

I spent the entire morning in the Hungarian Pastry Shop (Columbia hangout) with Schiminovich, discussing our various GALEX projects, but especially our discovery of white-dwarf companions (some of which are very low mass, possibly sub-stellar) and our evil plans to extract and distribute the full time-tagged photon list, along with the relevant spacecraft pointing and sensitivity data to make full use of them. I am so excited about this project: It will provide the highest time-resolution that is physically possible given the aperture, optics, and detectors on the spacecraft. If that doesn't lead to interesting time-domain science, I don't know what will.

2012-01-18

making a catalog is not easy

Today David Mykytyn (NYU undergrad) and I specified Mykytyn's project to be the construction of a "Large Galaxy Catalog" from the SDSS imaging, using the Tractor to do the galaxy measurements (sizes, surface brightnesses, colors, and magnitudes). Today we discussed many of the complicating issues, which include (but are not limited to) the facts that: (1) angularly large galaxies often overlap multiple SDSS fields, usually taken on different nights, (2) they often overlap very bright stars, which can dominate the photon count in the face of the galaxy, (3) the SDSS software (optimized for much more angularly small galaxies) shreds them often into many pieces, (4) lumps and bumps in the intensity field can be features of the galaxy or confusing foreground objects (stars) or background objects (distant galaxies). We have hacks for all of these issues (not yet implemented), but we would like some principled approaches. It's hard, because, as I have lamented before, despite a hundred years of expensive and painstaking work by thousands of very bright people, astronomers do not have a generative model for galaxies!

2012-01-17

finding spectroscopic supernovae in real time

Back in November, Or Graur (AMNH, Tel Aviv) came to us at NYU and pitched a method for finding supernovae superimposed on the SDSS-III BOSS spectra of early-type galaxies. His system is essentially a generative model of both galaxies and supernovae, so it appeals to me. He has been successful running other data sets, but if we ran his stuff in BOSS on the mountain each night at the end of observing, we could discover and announce supernovae in real time. My only substantial research today was pitching this to the SDSS-III Collaboration; a pitch is required because we can only do this if the Collaboration accepts Graur as an External Collaborator.

2012-01-16

pretty much zip

It being a holiday, I didn't do much here, except for some planning for my non-written Atlas.

2012-01-14

printer calibration test strip

I made this printer test (8-bit CMYK TIFF file) for my RGB-to-CMYK conversion project. If you can print this out on a CMYK printer (no, there is absolutely no reason to look at it on the screen), and if you can be sure your print driver is not flattening to RGB before doing a reconversion to CMYK (this is hard to know, given the craziness of the print driver world), then printing this and comparing it to a screen view (no, there is absolutely no point in printing it) of the original (8-bit RGB JPEG) leads to a (very rough) printer calibration. In making this test strip, I have reduced my 12-parameter (already simplfied) printer model to only 3 parameters. Paper (arXiv-only, I expect) and open-source code coming soon.

2012-01-13

multi-band Tractor

One of the ways in which the Tractor is qualitatively better than other methods for measuring the properties of stars and galaxies in imaging is that it can fit multiple images—with different seeing, taken on different nights, and taken through different bandpasses—simultaneously, delivering consistent shapes, colors, and variability information despite heterogenous data and with no requirement of "stacking" before measurement. All that is true in theory but until today most of this functionality was vapor-ware. Today, Lang and I (well, really Lang, with me watching) got the Tractor working on multi-band, heterogenous imaging by permitting the "fluxes" or "magnitudes" of the objects to be arrays of values, one per band. In the future, we hope to work in spaces with well-defined priors, learned hierarchically, but we have a start. When we applied the code to a small snippet of SDSS data, we found some tiny band-to-band astrometric offsets, for which (along with photometric calibration and PSF) the Tractor can also fit.