Skip to content

Commit

Permalink
Release 2.41-3 (relies on jnum-0.20-4).
Browse files Browse the repository at this point in the history
  • Loading branch information
attipaci committed Mar 22, 2018
1 parent 006259a commit a052b5e
Show file tree
Hide file tree
Showing 13 changed files with 40 additions and 51 deletions.
26 changes: 26 additions & 0 deletions crush/Documentation/change.log
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
2.41-3 (19 March 2018)


Overwiew
======================================================================
This (second) update fixes the accidentally broken LABOCA photomety,
and refines HAWC+ configurations.
======================================================================

[BUG] {APEX} {photometry} Fixed ClassCastException in
ApexChoppedPhotometry.

[FIX] {jnum} Workaround for Exceptions when trying to write NaN's into
FITs header from failed source fits. The offending keys are simply
skipped.

[CONFIG] {HAWC+} Now includes FS14 flux jump table (v1) from Darren
Dowell.

[CONFIG] {HAWC+} Updated FS15 flux jump table (v3) from Darren Dowell.

[CONFIG] {HAWC+} New FS13 per-pixel flux jumps table (v1) from
Darren Dowell.

[JNUM] Uses jnum 0.20-4.


2.41-2 (2 March 2018)

Expand Down
Binary file removed crush/config/hawc+/FluxjumpFS14Columns.fits.gz
Binary file not shown.
36 changes: 0 additions & 36 deletions crush/config/hawc+/TODO

This file was deleted.

7 changes: 4 additions & 3 deletions crush/config/hawc+/default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,11 @@ offset.T0 0.29,-0.27
zoom.T 1.0

# Correct for flux jumps
date.[*--2017.05.01] jumpdata {?configpath}/hawc+/FluxjumpFS14Columns.fits.gz
[oct2017] jumpdata {?configpath}/hawc+/flux_jump_FS15_v1.fits.gz
date.[*--2017.05.01] jumpdata {?configpath}/hawc+/flux_jump_FS13_v1.fits.gz
[may2017] jumpdata {?configpath}/hawc+/flux_jump_FS14_v1.fits.gz
[oct2017] jumpdata {?configpath}/hawc+/flux_jump_FS15_v3.fits.gz

# Whether 'fix' flux jumps
# Whether to 'fix' flux jumps
#iteration.[last-1] fixjumps

# Flag pixels outside an acceptable range of relative noise levels
Expand Down
Binary file added crush/config/hawc+/flux_jump_FS13_v1.fits.gz
Binary file not shown.
Binary file added crush/config/hawc+/flux_jump_FS14_v1.fits.gz
Binary file not shown.
Binary file removed crush/config/hawc+/flux_jump_FS15_v1.fits.gz
Binary file not shown.
Binary file added crush/config/hawc+/flux_jump_FS15_v3.fits.gz
Binary file not shown.
6 changes: 2 additions & 4 deletions crush/src/crush/CRUSH.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public class CRUSH extends Configurator implements BasicMessaging {
*/
private static final long serialVersionUID = 6284421525275783456L;

private static String version = "2.41-2";
private static String version = "2.41-3";
private static String revision = "";

public static String workPath = ".";
Expand All @@ -74,7 +74,6 @@ public class CRUSH extends Configurator implements BasicMessaging {
public static int maxThreads = 1;
public static volatile ExecutorService executor, sourceExecutor;


public int parallelScans = 1;
public int parallelTasks = 1;

Expand Down Expand Up @@ -269,8 +268,7 @@ public void validate() throws Exception {
consoleReporter.addLine();
exit(1);
}



try { instrument.validate(scans); }
catch(Error e) {
error(e);
Expand Down
4 changes: 2 additions & 2 deletions crush/src/crush/sourcemodel/Photometry.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ public Photometry(Instrument<?> instrument) {
@Override
public SourceModel getWorkingCopy(boolean withContents) {
Photometry copy = (Photometry) super.getWorkingCopy(withContents);
copy.sourceFlux = (DataPoint) sourceFlux.clone();
copy.sourceFlux = sourceFlux.copy();
copy.flux = new DataPoint[flux.length];
if(withContents) for(int i=flux.length; --i >= 0; ) if(flux[i] != null) copy.flux[i] = (DataPoint) flux[i].clone();
if(withContents) for(int i=flux.length; --i >= 0; ) if(flux[i] != null) copy.flux[i] = flux[i].copy();
return copy;
}

Expand Down
4 changes: 2 additions & 2 deletions crush/src/crush/sourcemodel/SkyDip.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ public SkyDip(Instrument<?> instrument) {
@Override
public SourceModel getWorkingCopy(boolean withContents) {
SkyDip copy = (SkyDip) super.getWorkingCopy(withContents);
if(Tamb != null) copy.Tamb = (WeightedPoint) Tamb.clone();
if(Tamb != null) copy.Tamb = Tamb.copy();

if(withContents) {
copy.data = new WeightedPoint[data.length];
for(int i=data.length; --i >= 0; ) copy.data[i] = (WeightedPoint) data[i].clone();
for(int i=data.length; --i >= 0; ) copy.data[i] = data[i].copy();
}
else copy.data = WeightedPoint.createArray(data.length);
return copy;
Expand Down
6 changes: 3 additions & 3 deletions crush/src/crush/telescope/apex/APEXChoppedPhotometry.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ public APEXChoppedPhotometry(APEXCamera<?> instrument) {

@Override
public void process(Scan<?, ?> scan) {
final WeightedPoint[] left = WeightedPoint.createArray(flux.length);
final WeightedPoint[] right = WeightedPoint.createArray(flux.length);
final DataPoint[] left = DataPoint.createArray(flux.length);
final DataPoint[] right = DataPoint.createArray(flux.length);

for(Integration<?,?> integration : scan) process((APEXSubscan<?,?>) integration, left, right);

sourceFlux.noData();

for(int c=flux.length; --c >=0; ) {
flux[c] = (DataPoint) left[c].clone();
flux[c] = left[c].copy();
flux[c].subtract(right[c]);
flux[c].scale(0.5);
if(flux[c].weight() > 0.0) sourceFlux.average(flux[c]);
Expand Down
2 changes: 1 addition & 1 deletion crush/src/crush/telescope/iram/IRAMTauTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ protected void averageWidth(LocalizedData other, Object env, double relativeWeig
@Override
public boolean isConsistentWith(LocalizedData other) {
Entry entry = (Entry) other;
DataPoint difference = (DataPoint) entry.tau.copy();
DataPoint difference = entry.tau.copy();
difference.subtract(tau);
return Math.abs(difference.significance()) < 5.0;
}
Expand Down

0 comments on commit a052b5e

Please sign in to comment.