From dfd4ea5f127c03f52310f99cc0b3f7a5446154bf Mon Sep 17 00:00:00 2001 From: Kyle Willett Date: Wed, 12 Aug 2015 14:48:50 -0500 Subject: [PATCH] Field names magnitude, size for new DECaLS and Illustris samples --- src/models/InteractiveSubject.coffee | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/models/InteractiveSubject.coffee b/src/models/InteractiveSubject.coffee index f4e2d22..27165a7 100644 --- a/src/models/InteractiveSubject.coffee +++ b/src/models/InteractiveSubject.coffee @@ -26,7 +26,7 @@ class InteractiveSubject extends Spine.Model @fromJSON: (json) => @lastFetch = new Array for result in json - if result.recent.subjects[0]?.metadata?.survey is 'sloan' or result.recent.subjects[0]?.metadata?.survey is 'sloan_singleband' + if result.recent.subjects[0]?.metadata?.survey in ('sloan','sloan_singleband','decals') item = @create counters: result.recent.subjects[0].metadata.counters classification: result.recent.user.classification @@ -38,6 +38,18 @@ class InteractiveSubject extends Spine.Model color: result.recent.subjects[0].metadata.mag?.u - result.recent.subjects[0].metadata.mag?.r absolute_radius: result.recent.subjects[0].metadata.absolute_size + else if result.recent.subjects[0]?.metadata?.survey is 'illustris' + item = @create + counters: result.recent.subjects[0].metadata.counters + classification: result.recent.user.classification + image: result.recent.subjects[0].location.standard + zooniverse_id: result.recent.subjects[0].zooniverse_id + redshift: result.recent.subjects[0].metadata.redshift + absolute_brightness: result.recent.subjects[0].metadata.mag?.absmag_r + apparent_brightness: result.recent.subjects[0].metadata.mag?.absmag_r - 36.756 + color: result.recent.subjects[0].metadata.mag?.absmag_u - result.recent.subjects[0].metadata.mag?.absmag_r + absolute_radius: result.recent.subjects[0].metadata.radius_half + else if result.recent.subjects[0]?.metadata?.survey is 'candels_2epoch' item = @create counters: result.recent.subjects[0].metadata.counters