source: trunk/CHANGES @ 1026

Last change on this file since 1026 was 1026, checked in by MatthewWhiting, 12 years ago

A couple of important fixes for the reconstruction. One is to fix #154, making sure the min & max scales are applied appropriately. Second is to add a new parameter
reconConvergence, which takes the previously hard-coded convergence criterion and makes it available to be altered. Documentation is updated for this parameter as well.

File size: 47.8 KB
Line 
1Duchamp version 1.2 (2012/06/XX)
2--------------------------------
3
4Key changes:
5
6* The way the wavelet reconstruction is done in the presence of BLANK
7  voxels is slightly different, specifically when there were BLANK
8  voxels on the edge. While BLANK voxels are always ignored by the
9  reconstruction (and left in place), the previous approach dealt with
10  BLANKS on the edge by moving the effective edge of the image inwards
11  until the first non-blank voxel. This meant that the size of the
12  dimensions used to determine the number of scales, and the location
13  where boundary reflections took place where different to the input
14  image size.
15
16  However, this meant that BLANK voxels on the edge were treated
17  differently to those not on the edge, so this inconsistency was
18  removed. The full image dimensions are always used to calculate the
19  number of scales, and reflections (which is how the reconstruction
20  deals with the boundaries) will occur at the actual image edges.
21
22  If your data has this property (BLANK pixels at the image
23  boundaries), then any reconstruction will be affected (most likely
24  only in a small way) and potentially any subsequent searching. You
25  are advised to check this.
26
27* Since v1.1.13 was released, the journal paper describing Duchamp has
28  been published. It can be found at MNRAS 421, 3242 (2012), or
29  http://onlinelibrary.wiley.com/doi/10.1111/j.1365-2966.2012.20548.x/full. It
30  includes descriptions of the various algorithms used for Duchamp, as
31  well as some indicative comparisons of the relative completeness &
32  reliability. Please cite this paper when describing Duchamp.
33
34Other new features:
35
36* The XML VOTable output now includes a more complete list of
37  parameters, matching the output given in text form in the results &
38  log output files. Only those parameters affecting the results are
39  included - things like the output file names and so on are left out.
40
41* The minVoxels parameter is now adjusted to be at least (minPix +
42  minChannels - 1). If it is changed, a warning message is triggered.
43
44* The warning/error reporting has been overhauled, with an improved
45  interface for developers. Also, some ERROR instances that previously
46  resulted in the program terminating now allow it to continue
47  (provided that is possible given the error).
48
49* It is now possible to give the convergence criterion for the wavelet
50  reconstruction via the parameter reconConvergence. When the relative
51  change in standard deviation of the residuals from the
52  reconstruction falls below this value, the a trous algorithm stops
53  iterating.
54
55* The way one-dimensional arrays were dealt with was unsatisfactory,
56  both with the way positions were registered and the format of the
57  graphical output. Improvements have been made such that a 1D data
58  structure is assumed to be a spectrum, and so positions in the
59  spectrum are reported as z-pixels (or the equivalent world
60  coordinate). Instead of a 2D moment map, the X-windows display will
61  show the spectrum with all detected pixels plus the final list of
62  detections highlighted, along with the detection and growth
63  thresholds. This plot will also be written to the "detectionMap" image.
64
65* All spectral plots will now show the detection (and growth, if
66  applicable) thresholds when plotting the peak flux spectrum.
67
68* Accessing FITS files when a subsection string is provided has been
69  streamlined. The cfitsio package, which handles the FITS access,
70  creates a temporary file containing this image section, and this
71  meant the previous approach was slow, particularly for large
72  files/sections. Now the file is only opened once and the overhead of
73  creating the temporary file is only encountered once.
74
75* Several aspects of the processing & output did not handle a
76  non-existent WCS well. This has been improved, so that all stages of
77  execution will proceed without errors.
78
79Bug fixes:
80
81* The absence of a BLANK keyword when trimming will now not trigger a
82  failure, only a warning message.
83
84* The flux unit conversion (eg. from Jy/beam to mJy/beam) was not
85  being applied correctly when an existing reconstructed or smoothed
86  array was being read in. This is now applied properly.
87
88* When saving reconstructed or smoothed arrays, the data type is now
89  set to FLOAT, so that the correct values are written (and
90  subsequently read in). The previous version was potentially saving
91  to a FITS file with integer data type (this depended on the type of
92  the input array). In this case, the full precision of data values
93  would not be preserved, so reading back in and doing an identical
94  search could yield different sources.
95
96* For certain cases, the reconstruction attempted to use a very large
97  number of scales. This has been fixed.
98
99* The maximum scale for the reconstruction was not always being
100  applied. The scale ranges are now enforced for all types of
101  reconstructions.
102
103* When saving a mask image while using a subsection of a cube, the
104  offsets for the subsection were not being accounted for
105  correctly. This is now fixed.
106
107* The detection map plots were not recording pixels added from the
108  growing stage. This has been fixed.
109
110* The RA & Dec now have appropriate precision, rather than an
111  arbitrary 2 decimal places on the seconds value. The RA will be one
112  decimal place more than the Dec, and they will reflect the degree of
113  precision in the image pixels.
114
115* A number of data type conversions (typically ints to floats) led to
116  errors in some calculations, such as WCS conversions. Care has been
117  taken to make sure all indexing is done appropriately with no
118  overflow, and that all conversions (where necessary) are done
119  appropriately.
120
121* It was possible to get world positions looking like 11:59:60.0! Not
122  any more.
123
124* Reading previous detections from the log file (via the use of the
125  usePrevious parameter) did result in error messages due to slightly
126  incompatible formats. These have been fixed, and all graphical
127  output should work properly.
128
129* When using a spectral search, having a blank pixel in the first
130  channel could lead to that entire spectrum being ignored, leading to
131  inconsistent results between spectral and spatial searches. This
132  issue has been fixed, with both types of searches returning the same
133  catalogue.
134
135
136Code base development notes:
137
138* Most instances of integer overflow due to insufficient precision
139  have been tracked down - many of these were indexing variables of
140  type int, which have been changed to size_t.
141
142* Importantly, for code interfacing with the duchamp::Cube and related
143  classes, axisDim is now an array of size_t elements, rather than
144  long.
145
146* Object3D now carries its spatial map with it, rather than
147  calculating it on the fly when requested. This saves a lot of
148  unnecessary computational effort.
149
150* The warning/error interface has improved, making use of C++
151  exception handling. This should be compatible with external logging
152  infrastructure (such as log4cxx).
153
154*
155
156
157
158Duchamp version 1.1.13 (2011/04/10)
159-------------------------------------
160
161Bug fixes:
162
163* The median statistics calculations had a bug in the test for whether
164  the array under consideration was of even size. The correction for
165  this can mean small differences in the resulting values. This can
166  flow through to calculated detection thresholds - please check this
167  with your data if you use this mode!
168
169* The reconstruction code had a bug where the incorrect number of
170  scales was being used. This occurred when the blank pixel flag was
171  set, and when the spectral dimension was smaller than both the
172  spatial dimensions.
173
174Other:
175
176* The default value of the blank pixel flag has been set to false,
177  rather than true. For Duchamp, this should not matter, as it is set
178  when the FITS file is read in. For external code using, for
179  instance, the reconstruction algorithms, this default may be
180  important. Having it true was contributing to the second bug listed
181  above. It also makes more sense for it to be false unless explicitly
182  set in some way.
183
184* The reconstruction code has been streamlined a little, reducing its
185  memory impact and using more appropriate variable types
186  (eg. unsigned ints instead of ints and so forth).
187
188* For those who care about the actual code base, the statistics
189  functions have been expanded, and separated from getStats.cc into
190  "normal" and "robust" versions.
191
192
193Duchamp version 1.1.12 (2011/03/18)
194-------------------------------------
195
196Bug fixes:
197
198* The velocity width calculations had a bug that occasionally led to
199  very large values. The widths are calculated using the integrated
200  spectrum, using a threshold relative to its peak. In v.1.1.10 and
201  1.1.11, however, the peak was searched for over the entire spectral
202  range, rather than just the range for the current object. This led
203  to spurious values. This has been fixed, so that the peak is only
204  searched for within the detected ranage of the object.
205
206* Both the pixel and statistics subsections are now more carefully
207  examined, with errors reported if there are no valid pixels in the
208  pixel subsection, or if the statistics subsection does not intersect
209  with the pixel subsection.
210
211Other:
212
213* The configure script has been slightly improved so that the pgsbox
214  library is only added if PGPlot has been enabled - this is
215  particularly necessary with the slightly changed build procedure for
216  recent wcslib versions.
217
218* In a related note, one file - momentMap.cc - had some #include
219  statements that failed when PGPlot (and hence pgsbox in WCSLIB) was
220  not enabled. These were actually unnecesssary and have been removed.
221
222* There is a new input parameter - flagPlotSpectra - that allows the
223  user to turn off the production of the spectral plots. It defaults
224  to true (meaning the plots are produced).
225
226
227Duchamp version 1.1.11 (2011/03/01)
228-------------------------------------
229
230Improvements:
231
232* The largest changes in this release involved improving the
233  efficiency of the code, resulting in further speed-ups. The code
234  affected was the low-level object-handling code, with the merging
235  stages in particular showing good speed-ups.
236
237* The default value for the beam size, when the beam parameters are
238  not in the FITS header, has been dropped. Now the default behaviour
239  is to simply not make any beam corrections if the beam is not
240  specified by either the FITS file or the input parameters. Thanks to
241  Tobias Westemeier for the suggestion.
242
243* The reporting of the beam size has changed slightly to provide a bit
244  more information.
245
246Bug Fixes:
247
248* The statistics section (statSec) could be larger than the image
249  subsection (if provided), yet the pixels required would never be
250  read in from the FITS file. The behaviour has been changed so that
251  the statSec, if requested, is trimmed to be wholly within the image
252  section.
253
254* It was possible to request, for instance, spectral smoothing on a 2D
255  image. This resulted in a blank smoothed array, which led to
256  problems in the calculations of statistics (and hence the
257  threshold), as well as subsequent calculations. This has been fixed,
258  so that in cases like this the smoothing is turned off (and a
259  warning message is displayed).
260
261* There was a problem with using a MW range and subsectioning when
262  growing objects, as a result of changes in 1.1.10. This has been
263  fixed.
264
265* Inversion was failing when no array was allocated (not a problem for
266  standard Duchamp, but affected its use as a library by other code).
267
268* Writing text spectra would only occur when PGPlot output was enabled
269  in the build (it was combined with the plotting of the spectral
270  graphs). This has been changed so that this output can be requested
271  without requiring PGPlot.
272
273* The equation for the beam size in Sec.4.2 of the User Guide was
274  incorrect and has been fixed.
275
276* Minor change to the configure script to improve the detection of the
277  PGPlot library.
278
279Code development notes:
280
281* The main work has been additions and improvements to the interfaces
282  for the Param and the Section classes, as well as new classes to
283  manage the beam information. The efficiency changes mentioned above
284  also affected the internals of some of the PixelInfo classes, and
285  provided additional functions for judging the closeness of
286  neighbouring objects.
287
288Duchamp version 1.1.10 (2010/11/15)
289-------------------------------------
290
291Improvements:
292
293* The major change for this release is a greatly improved growing
294  algorithm. The previous incarnation was very inefficient (testing
295  all pixels in an object, most of which only have neighbours that are
296  already in the object), and could take an unnecessarily large amount
297  of time in the case of extended sources. The improved algorithm
298  makes use of voxel flags to quickly identify those voxels not yet in
299  an object and only examines them. For a certain test case
300  (observations of extended Galactic HI), the time required reduced
301  from about a day to about a minute! (Note that compact sources, such
302  as HI galaxies, will not show this degree of speedup...) Many thanks
303  to Tara Murphy for pointing out this bug and her help in
304  diagnosing/fixing the problem.
305
306* There have been a number of further improvements to the code to
307  speed it up, based on some profiling. The most important was the
308  function to add pixels to a 2D object, but there were several other
309  minor changes as well.
310
311* The minimum size of the detections can now also be specified in
312  terms of the total number of voxels (in addition or instead of
313  specifying the minimum spatial pixels or channels).
314
315* The way memory is allocated when reading the image has been
316  streamlined. The amount of memory being allocated is also now
317  reported - this is in an effort to allow users to identify problems
318  with running out of memory.
319
320* The version number is now reported in the results and log files.
321
322* Only the filename of the input image (ie. not the leading
323  directories) is now shown on the detection and moment-0 maps. This
324  is to avoid problems with large directory paths being too wide for
325  the plot.
326
327* The verification script was improved for readability (although no
328  functional change was made).
329
330Bug fixes:
331
332* Growing was not being done when a single source was found. Now
333  fixed.
334
335* For particular WCS setups, the RA can be interpreted as being
336  negative, which corrupted the Source ID (ie. the IAU-format
337  string). This has been fixed.
338
339* When the flux units were changed, problems had been seen when
340  writing a reconstructed cube to a FITS file. Any unit change is now
341  undone prior to writing and there should now be no problem.
342
343* Filenames with spaces in them were not handled well. New functions
344  were included and moved to a more obvious location. These filenames
345  now work as expected.
346
347* Spectral axes of type FREQ that had a rest frequency were not being
348  put into velocity units. Now fixed.
349
350* Improvements to the output to screen, making sure everything is
351  covered by the verbose flag.
352
353* Better management of the allocation of arrays.
354
355* The minSize parameter in Image was never initialised, leading to
356  unpredictable behaviour. Now fixed.
357
358Code development notes:
359
360* New functionality includes: a function to return a vector list of
361  voxels in an Object3D or Detection; a new generic Search function
362  (basically a front-end to each of the individual functions); more
363  complete copy constructors for the DataArray classes; new methods
364  for finding the velocity widths.
365
366Duchamp version 1.1.9 (2010/03/26)
367-------------------------------------
368
369Improvements:
370
371* There is now the ability to save the moment-0 map as a FITS
372  file. This is controlled by the parameters flagOutputMomentMap and
373  fileOutputMomentMap, which work in the same way for the mask file.
374
375* There is a new parameter flagRejectBeforeMerge that, when true,
376  rejects sources according to the minPix/minChannels requirements
377  before the merging and growing is done. This defaults to false (so
378  default behaviour is as before). Thanks to Tobias Westmeier for
379  suggesting this and the above improvement.
380
381* There is also a new parameter flagTwoStageMerging. When true (the
382  default), newly-detected objects are merged with the first close
383  object in the list. When false, they are simply added to the end of
384  the list. In both cases, a second round of merging is done to pick
385  up all close matches.
386
387* The way the beam is specified in the absence of the BMAJ/BMIN/BPA
388  parameters has been slightly changed. The use of "beamSize" was
389  somewhat ambiguous (it meant the number of pixels covered by the
390  beam, not the FWHM), so new parameters have been introduced. The
391  beam can be specified by beamArea (which replaces beamSize), or
392  beamFWHM (the FWHM of the beam in pixels). If beamFWHM is provided,
393  it will be used, else the beamArea will be.
394
395* There is a new parameter searchType that allows the user to choose
396  how the searching is done. The behaviour up till now has been to
397  search the 2D channel maps one at a time to build up the 3D
398  detections. This is the default, and can be obtained by setting
399  searchType=spatial. Alternatively, you can set searchType=spectral
400  to do the searching in the 1D spectra.
401
402* Profiling of the code has led to a few changes that have sped up
403  some calculations, particularly those involving the median. Rather
404  than using std::sort, the code now simply uses std::nth_element,
405  which shows a substantial speedup factor.
406
407* When using the objectList parameter, the maps will now only show the
408  selected objects, rather than all detected objects.
409
410* There is a new verification test that looks at the "growing"
411  functionality.
412
413Bug fixes:
414
415* When saving a mask FITS file, there was an occasional memory leak
416  that caused Duchamp to crash (only when the cube was suitably
417  large). This has been fixed.
418
419* The median calculation had a bug that led to an incorrect value
420  being reported. The difference will not be great (the element of an
421  array being reported as the median was out by one), but could be
422  noticeable depending on the dataset.
423
424* The MW range parameters did not respond to the use of a
425  subsection. They should refer to channel ranges in the original
426  cube, and changes have been made to the code to reflect this.
427
428* There was an occasional error in writing out FITS keywords, due to
429  the way comment strings were intialised. This has been improved and
430  made more robust.
431
432* Testing with gcc-4.3.2 showed a number of compilation warnings &
433  errors, which have been fixed.
434
435* The Gaussian smoothing kernel was too small - it is now made big
436  enough to encompass all possible values. It was also being
437  incorrectly scaled. This had no functional effect on the detection
438  of objects, but for other uses was incorrect. This has been
439  rectified.
440
441* Some outputs that weren't caught by the verbose flag now are.
442
443
444Code development notes:
445
446  The following notes only apply if you want to use the code as a
447  library, rather than the stand-alone package. These have generally
448  come out of the ASKAP software development. If you just use the
449  stand-alone package, they won't be a concern.
450
451* The API for storing detected objects has changed, making it more
452  robust from a programming point of view.
453
454* Additional versions of some functions (and the Gaussian smoothing
455  class) have been added - this has come out of the ASKAP development
456  work.
457
458* A number of instances of "unsigned int" being used for loops have
459  been changed to iterators or "size_t". There shouldn't be any
460  functional change from this -- the code should just build more
461  cleanly.
462
463* The Detection class now records whether the parameters have been
464  set, and unsets that flag when objects are merged. This allows
465  external programs to track which objects have been merged and deal
466  with them appropriately.
467
468
469Duchamp version 1.1.8 (2009/07/20)
470----------------------------------
471
472Improvements:
473
474* The final source list can now be sorted on one of a range of object
475  parameters: x-value, y-value, z-value, ra, dec, vel, w50, iflux,
476  pflux (integrated and peak flux respectively), or snr. Simply use
477  the new input parameter sortingParam. Its default value is vel, so
478  the default behaviour stays the same.
479
480* The FDR method involves calculating how many pixels are
481  correlated. This previously involved multiplying the beam area by 2,
482  implying that 2 neighbouring channels were correlated. This factor
483  is now a user-selectable parameter, so that if you know how many
484  spectral channels should be correlated, you can set the parameter
485  FDRnumCorChan and the FDR calculation will be done correctly.
486
487* Screen output now has more information on the growing threshold when
488  the cube statistics are printed.
489
490
491Bug fixes:
492
493* When reading in previous detections, there was a bug causing a
494  segmentation fault. This has been fixed and made more robust.
495
496* There was an apparent bug when writing out the reconstructed cubes
497  to a FITS file that caused the new file to be very large. Changing
498  the cfitsio function used has fixed this.
499
500* Using NCP projections near the equator could result in a large
501  stream of error messages, due to coordinate transformations being
502  done in blank regions outside of the acceptable range of world
503  coordinates. This has been fixed.
504
505* The function that grows objects had a major bug, that stopped it
506  working when flagAdjacent=false. This has been fixed and should work
507  fine.
508
509* The input parameter spectraTextFile was not being read
510  properly. This has been remedied.
511
512* The units for the integrated flux were wrong for some types of pixel
513  flux units. This has been fixed.
514
515* A minor bug caused incorrect calculation of the 20% widths.
516
517* All calls to uint were changed to unsigned int, as some compilers
518  had problems recognising that they were the same thing.
519
520* src/fitsHeader.cc was missing an include statement for stdlib.h,
521  again causing some compilers to fail.
522
523
524Duchamp version 1.1.7 (2009/01/16)
525----------------------------------
526
527Improvements:
528
529* The mask file that can be created with flagMask can now specify
530  which object a given detected pixel belongs to, by taking the object
531  ID as its value. This applies if you set flagMaskWithObjectNum=true
532  (it defaults to false, which means each detected pixel has the value
533  1). Non-detected pixels still have the value 0.
534
535* The names of the output FITS files are now able to be specified
536  directly by input parameters. These will override the default names
537  that Duchamp provides.
538
539* The Karma annotation file now specifies a font - previously it did
540  not and so was at the mercy of whatever was specified in other
541  annotation files being viewed at the same time. Please let me know
542  if the font I've chosen (lucidasans-12) is not suitable.
543
544* The default flag, used in the absence of 'E', 'S' or 'N', is now '-'
545  rather than blank. This will ensure that each column in the results
546  file has something in it.
547
548* The configure script is somewhat more robust to non-standard
549  systems, particularly when the X11 libraries are in unusual
550  places. It can also deal with the slightly different way that
551  wcslib-4.3 installs itself.
552
553* The installation part of the Makefile was altered so that the
554  symbolic link Duchamp that points to Duchamp-1.1.7 does not have the
555  absolute path encoded in it. This will enable the files to be moved
556  around at a later date.
557
558Bug Fixes:
559
560* Fixed a bug that caused problems when the flux units were less than
561  5 characters long (e.g. 'K')
562
563* The new velocity width values were not getting proper headers in the
564  VOTable output. This has been remedied.
565
566* Minor improvements to help non-pgplot use
567
568* Minor fix in WCS functionality.
569
570* Minor fixes to the FitsHeader class.
571
572* Improved FITS data reading, that doesn't require a nullarray
573  array. This will reduce memory usage.
574
575* Improved subsection parsing, particularly for non-standard WCS
576  systems.
577
578* Improving the memory allocation of the Cube class.
579
580* Fixed a bug that meant the growthThreshold values were sometimes
581  being lost.
582
583* Improving the way the growing and merging is done, particularly in
584  the case of non-adjacent merging.
585
586* Fixed a scaling bug in the GaussSmooth function.
587
588Other:
589
590* Numerous changes to the code that do not affect how Duchamp itself
591  runs, but were necessary for code development with the Duchamp
592  libraries (primarily as a part of the ASKAP code development).
593
594
595Duchamp version 1.1.6 (2008/09/08)
596----------------------------------
597
598New features:
599
600* The velocity widths can now be quoted in two additional ways: the
601  full width at 50% of the peak flux (ie. the FWHM) and the full width
602  at 20% of the peak flux (w_50 and w_20 respectively). The w_50
603  parameter is now quoted in the results printed to the screen
604  (instead of w_VEL), but all three are written to the results file.
605
606* The facility now exists to bypass the searching step and go straight
607  to the output stage using a list of previously detected objects. The
608  list is extracted from a previously-created log file. The user can
609  change the way the spectra are plotted (e.g. choose to plot
610  integrated rather than peak spectra), and select a subset of the
611  detected objects to be printed to individual postscript files. Use
612  the input parameter usePrevious (set to true) to use this facility,
613  and provide a list of objects using the objectList parameter
614  (eg. 1,2,4,7-10,15)
615
616* A new parameter "growthThreshold" has been created, that goes with
617  "threshold". If you manually specify a threshold, and you wish to
618  grow detections, you need to manually specify a growthThreshold (in
619  flux units).
620
621Bug fixes:
622
623* Cubes that do not have a spectral axis (such as Stokes cubes) were
624  causing memory leaks and crashing, due to some assumptions of the
625  existence of the spectral axis. These bugs have been fixed, so that
626  Duchamp will run on such cubes, although the WCS transforms may not
627  always work appropriately. Please let me know via bug reports of
628  difficulties you encounter!
629
630* The growing function has had a few bugs fixed and is now more
631  efficient.
632
633* The FDR method was previously overriding any manually-specified
634  threshold. This has been fixed so that if the user specifies
635  threshold=X, then the FDR method is not called.
636
637* Some undefined things were happening with textual output when no
638  objects were detected. This has been fixed.
639
640* Memory leaks caused by FITS WCS irregularities have been fixed
641  (specifically, if a FITS header had NAXIS=2 but more than two WCS
642  axes were defined).
643
644
645
646Duchamp version 1.1.5 (2008/03/20)
647----------------------------------
648
649Bug fixes:
650* A major bug was discovered in the calculation of integrated
651  fluxes. The flux was incorrectly being weighted by the spatial size
652  of the detection, resulting in a (often considerable) overestimation
653  of the integrated flux. This has been corrected.
654
655* The beam size calculation was also incorrect, being out by a factor
656  of 1/ln(2).
657
658* The "make install" command previously failed to work properly if the
659  library had not been created. This has been fixed so that the
660  installation works even if there is no library file.
661
662New Features:
663* You can now provide a new flux unit string, so that the pixel fluxes
664  will be converted to these new fluxes before any calculations are
665  done. This is done with the newFluxUnits input parameter. The new
666  units should be directly convertible from the old ones (given by the
667  BUNIT header -- e.g. if BUNIT = Jy/beam, you can give newFluxUnits
668  as mJy/beam, but not mJy).
669
670* You can now specify the precision used in the output files for flux,
671  velocity and S/N ratio columns, via new input parameters precFlux,
672  precVel and precSNR. These will apply to the VOTable output as well
673  as the text table and information on the spectral plots.
674
675* The Karma annotation files previously provided just a circle at the
676  spatial location of the detected object. You now have the option to
677  draw a border around the detected pixels (in a similar manner to the
678  PGPLOT moment maps). Karma does not do this perfectly, so the lines
679  may not line up exactly with the pixel borders, so the option
680  remains to keep using the circles. This is controlled by the
681  parameter "annotationType", with possible options being "borders"
682  (the default) or "circles".
683
684* There is a new function getMetadata() that loads the header and WCS
685  data, but no pixel information. This is only of interest if you are
686  doing code development with the Duchamp library -- it does not
687  affect the running of Duchamp itself.
688
689Duchamp version 1.1.4 (2008/02/15)
690----------------------------------
691
692Most of the changes incorporated in this update result from ASKAP code
693development (that makes use of some of the Duchamp functionality),
694but do not actually affect the way Duchamp runs (other than, in a
695couple of cases, making it a bit faster). Changes that are
696relevant for regular users of Duchamp are as follows:
697
698* A new option has been made available (thanks to Mary Putman et al
699  for the suggestion!) to save the spectra of all detected objects in
700  a text file. This has the form of one column for the spectral
701  coordinates and one column of fluxes for each object. This is
702  enabled by the input parameters flagTextSpectra and spectraTextFile.
703
704* Slight changes to the output include he formatting of the way the
705  detected objects are written to the log file. This meant the
706  verification files were also updated. Also the cube statistics are
707  not printed to the results file if a user threshold is specified (as
708  they are not calculated!).
709
710* The determination of beam size has been made more reliable, as has
711  the BUNIT determination.
712
713* Fixed a bug that meant source merging was not done for 2D images
714  (not usually a problem, as the source-finding takes care of this,
715  but came up in parallelisation development).
716
717Duchamp version 1.1.3 (2008/01/08)
718----------------------------------
719
720A minor update that just improves the build process. The location of
721the wcslib include files was not specified correctly, so that some
722machines were unable to find them. The configure script has been fixed
723so that the compilation should work in all cases.
724
725Some minor changes have also been made to the code in the PixelMap
726directory, and to param.cc, to fix warnings or errors that may appear
727in compilation.
728
729However, there are no changes to the actual workings of the code in
730this minor version, so if you have a working version of Duchamp 1.1.2
731there is probably no reason to update.
732
733Duchamp version 1.1.2 (2007/12/07)
734----------------------------------
735
736Compilation:
737
738* The compilation had problems working correctly when the cfitsio and
739  wcs libraries were not in standard locations. The configure script
740  has been tweaked to make sure the libraries are found.
741
742* Problems with compiling in the absence of pgplot have been fixed,
743  and it should now compile fine.
744
745* Improved the configure script for use with Mac OS X and gfortran.
746
747
748Bugfixing:
749
750* A major problem with the text-based output was fixed. The widths of
751  the columns were not being calculated correctly, and were running
752  together. This should no longer be the case.
753
754* There was a bug in the way Duchamp interpreted spectral axes,
755  particularly AIPS types such as FELO-HEL, leading to incorrect
756  scaling of the velocity axis. This has been fixed, so that
757  non-standard types are now dealt with appropriately and the velocity
758  scaling should be accurate.
759
760* Another bug meant the beam correction was always applied to the
761  integrated spectra, regardless of whether the flux units involved
762  the beam (e.g. Jy/beam). This has been fixed. Note that the values
763  of the integrated flux presented in the results table were always
764  calculated correctly.
765
766* Other minor changes to improve the speed and efficiency, especially
767  of the merging code.
768
769New user parameters:
770
771* There is now the possibility to save a FITS file that contains a
772  mask array, indicating where the detected objects are. This is
773  governed by the flagOutputMask parameter.
774
775* The header information that is printed at the start of the results
776  file -- that is, the list of parameters, the statistics of the cube,
777  and the number of detections -- can now be written to a separate
778  file. Set the flagSeparateHeader parameter to true or 1 and it will
779  go to the file indicated by the headerFile parameter (the default is
780  duchamp-Results.hdr).
781
782* A "scaleMax" parameter has been added, so that the wavelet
783  reconstruction can include only a specified range of scales (for
784  instance, if one wants to search just for narrow features such as
785  absorption lines).
786
787* A "flagRobustStats" parameter has been added. This allows the user
788  to elect to use robust statistics (median and median absolute
789  deviation from the median) to estimate the noise parameters. If set
790  to false, the mean and standard deviation will be used. The default
791  value is true.
792
793New Feature:
794
795* When Duchamp is run on a 2D image (i.e. with no spectral output), it
796  now produces a postscript file that shows information each
797  individual source plus the image cutout of the source. This is
798  similar to the spectral output file, but without the spectra. The
799  filename is given by the spectraFile parameter.
800
801* Ability to save a FITS file containing a mask array, with pixel
802  values of 1 for pixels in a detected object, and 0 elsewhere.
803
804
805Duchamp version 1.1.1 (2007/07/20)
806------------------------------------
807
808Minor update to the release, with just a few changes:
809
810* The verification script was generating diffs due to differences in
811  the precision of some calculations when done on different machines.
812  One of these was the integrated flux, and this has been corrected so
813  that the same value should appear on all machines.
814  The verification script has also changed so that just the number of
815  sources and their positions are tested, as well as the
816  logfiles. This should avoid the reporting of spurious differences.
817
818* The grey-scale used in the image cutouts (in the spectral plots) has
819  been inverted. This makes it consistent with the scale used in the
820  maps, and hopefully easier to see when printing.
821
822* The configure/make system has been altered to make it easier to
823  install, and to specify different external libraries. In particular,
824  it is now not necessary to have PGPLOT installed on your system to
825  run Duchamp. In the absence of PGPLOT, Duchamp will run as normal,
826  just without any graphical output. Some source code needed to be
827  restructured to make this work. Please read the README file, or the
828  Installation appendix in the User's Guide, for complete details.
829
830* The time of completion is now written to the log file, so that the
831  user can have some idea of how long the program took.
832
833
834Duchamp version 1.1 (2007/05/17)
835------------------------------------
836
837Changes made since the last numbered release:
838
839EFFICIENCY OF EXECUTION:
840
841* Major change to the way detections are stored. They are now recorded
842  via run-length encoding in the x-y plane, and stored as collections
843  of channel-maps. This improves the memory usage and the speed of
844  execution (particularly for routines such as the merging
845  routines). The memory usage has also been improved by changing the
846  way the list of detected objects is stored.
847
848SMOOTHING:
849
850* Addition of ability to spatially smooth the cube before
851  searching. This is done with a Gaussian kernel, the size and shape
852  of which can be specified by the user, using the parameters kernMaj
853  & kernMin (which are the FWHM for the major & minor axes -- if
854  kernMin is not given it is assumed to match kernMaj) and kernPA (the
855  position angle of the major axis).  There is a new parameter
856  smoothType that distinguishes this method from the spectral (Hanning)
857  smoothing already in use.
858
859DETECTIONS:
860
861* Changed the way detection is done -- now only search in 2D images,
862  keeping all detections (ie. no minimum-pixel requirement). This
863  should be the same as doing both the 1D and 2D searches with the
864  minimum pixel requirement in, but simpler. The rejection is done at
865  the end after all the merging and growing has been done. This leads
866  to a larger number of intermediate detections (ie.  the number
867  before merging), which may increase the run-time slightly, although
868  this is offset by the changes to the efficiency (see above).
869
870* Increased the range over which objects can be grown to match the
871  threshSpatial & threshVelocity parameters, as well as rejecting new
872  pixels based on the BLANK and MW tests.
873
874INPUTS:
875
876* There has been a subtle change in the way BLANK pixels are dealt
877  with. To enable trimming of BLANK pixels, users should use the new
878  parameter flagTrim. The parameters flagBlankPix and blankPixVal are
879  no longer accessible via the parameter file -- warning messages are
880  given if they are provided in the parameter file.
881
882* Added ability to specify a statsec, so that the statistics are only
883  calculated from a given subsection of the cube, rather than the full
884  cube.
885
886* The subsections can also specify the ability to remove a border of n
887  pixels from the edges of an axis (ie. n from the start and from the
888  end) -- as requested in Trac ticket #5.
889
890* Changed the default value of the reconDim parameter from 3 to 1, and
891  the default value of the flagATrous parameter to false.
892
893OUTPUTS:
894
895* The output now includes three different estimates of the "centre" of
896  the detection: peak location, centroid (flux-weighted), or average.
897
898* Some slight improvements to the user feedback during execution.
899
900* Spectral output now includes the baseline, if one was fitted. The
901  format of the plot headers is slightly changed, to stop information
902  falling off the edge of the page.
903
904* Added command-line option -x to directly disable the PGPLOT X-window
905  map plotting. This overrides the setting of flagXOutput in the
906  parameter file.
907
908* Fallback spectral units (in case the FITS header fails to record
909  them) changed to SPC, but code has been fixed so that any problem
910  should be caught before this becomes an issue.
911
912BUGFIXES:
913
914* Fixed bug (Trac ticket #4) that meant the velocity units were not
915  correctly dealt with. Duchamp should be more robust for different
916  velocity axis setups now.
917
918* Fixed bug (ticket #9) with the VOTable output, where the tags were
919  not closing.
920
921* Fixed a bug that meant the integrated fluxes were not calculated
922  properly -- no allowance was made for the number of spatial
923  pixels. This should also work properly for 2D images now as well.
924
925* Fixed minor bug in calculating the flux threshold from the p-value
926  threshold when the FDR method is used. This did not affect the
927  actual thresholding, merely the quoted flux threshold in the results
928  file. Also, the MW channels are kept out of the p-value threshold
929  determination if they are being flagged.
930
931
932
933Duchamp version 1.0.7 (2006/11/22)
934----------------------------------
935
936One new feature, and some improvements and bug-fixes.
937
938* The user can now elect to Hanning-smooth the spectral direction of
939  the cube before the searching is done. This can be done instead of the
940  wavelet reconstruction (although if both are selected, the
941  reconstruction takes precendence). This functionality is switched on
942  and off by the flagSmooth parameter, and the width of the Hanning
943  kernel is governed by the hanningWidth parameter.
944
945* The smoothed array can also be written to a FITS file and read in at
946  the start in the same manner as the reconstructed array.
947
948* Several improvements have been made to the memory
949  management. Several memory leaks were fixed, and the memory usage of
950  Duchamp is considerably less, which will be a help for running it on
951  large cubes. The speed of some routines has also been improved, by
952  removing unnecessarily repetitive loops.
953
954* The sorting routines have been changed, and should now be slightly quicker
955  (and a bit more robust).
956
957* Enabled the scale bar (plotted on the 0th moment map in the spectral
958  output file) to be able to deal with much finer spatial scales (as
959  may be expected from VLBI data).
960
961* Other minor changes to code and presentation.
962
963
964Duchamp version 1.0.6 (2006/11/01)
965----------------------------------
966
967Some incremental improvements and changes to the code:
968
969* The statistics used for the detection are now calculated once for
970  the entire cube, rather than being calculated separately for each
971  channel map and spectrum. This results in a uniform threshold value
972  across the entire cube. The way the statistics calculations are
973  implemented in the code was changed, using a new statistics class.
974
975* This means we can report a peak signal-to-noise value for each
976  detection. This is given in the text-based output, as well as in the
977  summary information above the spectral output for each source.
978
979* The user can now elect not to have the moment map displayed in a
980  PGPlot window, through the use of the new flagXOutput
981  parameter. This should help in cases of running Duchamp on a dumb
982  terminal (with no X-display capabilities), or as part of a batch
983  script where the continual popping-up of the PGPlot window might
984  become annoying.
985
986* There are different Flags reported for the case of an object lying on
987  the spatial edge and spectral edge of the cube (E and S respectively).
988
989* A few minor bug fixes:
990  - When providing a subsection, any axes with the range given by *
991    had the pixel values offset incorrectly. This has been fixed.
992  - Negative searches now correctly invert the reconstructed array
993    when it is read in from a file.
994
995* Other minor changes to the code, to improve memory handling and
996  remove redundant arrays and variables.
997
998
999Duchamp version 1.0.5 (2006/09/06)
1000----------------------------------
1001
1002Since version 1.0, there have been a range of mostly minor
1003changes. These are generally bug-fixes, thanks to feedback from a
1004number of users, as well as a few extra features.
1005
1006Here is a summary of the changes since version 1.0:
1007
1008USER INTERFACE:
1009
1010* The user is now able to enter the value of flag parameters in the
1011  parameter file as strings, as well as integers (so one can enter
1012  true or 1 to give the same result).
1013
1014GRAPHICAL OUTPUT:
1015
1016* Added a new function that draws the edge of the blank region on the
1017  maps and image cutouts. There is a new flag parameter --
1018  drawBlankEdges -- that controls the use of this function (the
1019  default is true).
1020  Also, the edge of the field is plotted on the image cutouts as a
1021  yellow line. This distinguishes it from the purple blank pixel
1022  dividing line.
1023
1024* The size of the tick mark in the image cutout (indicating the
1025  spatial scale of the image) is now adaptable, so that it shows the
1026  scale that best fits the image (ranging from 1 arcsec to 15
1027  degrees). (This is a change from the previous standard length of 15
1028  arcmin.)
1029
1030* The zoomed spectrum had its flux scale determined by all points in
1031  the zoom box,including those flagged by the Milky Way (MW)
1032  range. This has been fixed so that any MW channels will not affect
1033  the flux scaling, potentially improving the appearance of objects
1034  detected close in velocity to strong MW emission or absorption.
1035
1036* Improved Karma Annotation file output, so that files without good
1037  WCS are dealt with appropriately.
1038
1039TEXT-BASED OUTPUT:
1040
1041* The position resolution in the IAU-format names has been increased,
1042  so that distinct objects close to one another are more readily
1043  distinguished.  Overlapping sources at different velocities may
1044  still have the same name, but this is a more general problem.
1045
1046* The presentation of the results in tabular format has been improved,
1047  so that the precision of faint sources is sufficient to show their
1048  flux, for instance, is not 0. This also applies to the information
1049  presented above the spectral plots.
1050
1051* Improved error and warning reporting, so that the formatting and
1052  presentation of information is clearer.
1053
1054FITS I/O RELATED:
1055
1056* The previous version was did not deal well with 4 (or greater)
1057  dimensions in the FITS file -- the memory allocation was badly done,
1058  and the axes needed to be in a particular order. This has been
1059  fixed, so that the FITS I/O routines can now handle any sized FITS
1060  file, with axes in any order (as long as there are two spatial and one
1061  spectral axes).
1062
1063* When the FITS file does not have a rest frequency defined, there is
1064  no way to transform the frequency axis into velocity. In this case,
1065  the spectral axis is left as frequency, and put into units of MHz.
1066
1067* If the beam size is not indicated by the FITS header (through the
1068  BMAJ and BMIN keywords), the user can manually specify the size
1069  through the parameter file (using parameter beamSize).
1070
1071* The FITS I/O routines make use of the command fits_file_exists. This
1072  was introduced into the CFITSIO package from version 2.5, so Duchamp
1073  will only work with this version or higher. Version 3+ is preferred.
1074
1075OTHER BUG-FIXING:
1076
1077* Several bugs related to the blank-pixels were dealt with.
1078  The correct values were not propagating through correctly, meaning
1079  that the default values were being used. Also, there was the
1080  potential for blank pixels to be detected when the FDR method was
1081  used. Finally, the image cutout displays occasionally did not
1082  obscure the blank pixels. All these problems should be fixed now.
1083
1084* The FDR setup routine was occasionally failing with a segmentation
1085  fault, due to it accessing unallocated memory. This has been fixed.
1086
1087* Fixed bugs that affected the way 2D images (rather than 3D cubes)
1088  were dealt with. The minChannels test failed when minChannels=0.
1089
1090* If there is no beam information in the FITS header, the user can now
1091  enter a beam size as a parameter.
1092
1093* Other minor fixes to the code, to improve its structure and
1094  robustness.
1095
1096
1097Duchamp version 1.0 (2006/06/30)
1098--------------------------------
1099
1100The first full release version.
1101
1102Several major changes compared to previous version:
1103
1104* Incorporated a FitsHeader class, to keep track of header information
1105  (including WCS) from the FITS file. All units-related calculations
1106  are done with this class, such as conversion to velocity, and
1107  pixel-to-WCS conversion.  The main advantage of this is improved
1108  speed of execution, more adaptable to different units, and improved
1109  code (easier for me!).
1110
1111* Able to select the dimensionality of the reconstruction, rather than
1112  just doing it in 3-D.
1113
1114* Robust text output, so that the columns are sized correctly given
1115  the data being written, and the relevant units (derived from the
1116  FITS header) are included in the output table.
1117
1118* Improved the way the reconstructed image is saved and read back in,
1119  with a better naming scheme and a better set of new FITS header
1120  keywords. The MW headers are now not written.
1121
1122Other, more minor changes include:
1123
1124* MW channels now not set to 0, but just ignored for searching
1125  purposes (and for the scaling of the spectral output -- they are
1126  plotted though and highlighted with a hashed box).
1127
1128* The scale bar in the moment map in the spectral output file has its
1129  length indicated.
1130
1131* Improved VOTable output, with more information about the way Duchamp
1132  was run.
1133
1134* Made sure all statistics calculations in the reconstruction are
1135  based on robust (ie. median) methods.
1136
1137Also moved to an autoconf based configure/make compilation, for ease of use.
1138
1139
1140Duchamp version 0.9.2 (2006/06/27)
1141--------------------------------
1142
1143* Added the use of warning flags for detections: for either edge
1144  location or negative enclosed flux.
1145
1146* A new command line option added so that the user can specify a FITS
1147  file to be searched with the default parameters, rather than giving
1148  a full parameter file.
1149
1150* The scale bar on the moment cutout now works in general case, using
1151  an iterative process to get to the correct length.
1152
1153* RA axes are now done correctly on the full-scale maps.
1154
1155* Various coding fixes, improving the readability of the code,
1156  particularly regarding the declaration of temporary variables.
1157
1158* Changed the way the time of execution is called : now using time.h
1159  functions, rather than a system call.
1160
1161* Changed output in Detection/outputDetection.cc for the pixel
1162  information of detected objects (the info printed above the spectral
1163  plots) -- now print out number of voxels in object, and have
1164  improved the formatting a little.
1165
1166* Improved the functionality of saving the FITS file containing the
1167  reconstructed array. Added ability to save and read back in the MW
1168  parameters when saving a reconstructed cube (if a reconstructed cube
1169  has different MW range to that being considered, it would cause
1170  problems). ReadRecon now just returns a FAILURE and will reconstruct
1171  the cube anew.
1172
1173* Changed default value of flagGrowth to 0.
1174
1175
1176
1177Duchamp version 0.9 (2006/05/05)
1178--------------------------------
1179
1180First public release version.
Note: See TracBrowser for help on using the repository browser.