source: trunk/CHANGES @ 1020

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

Further updates to the list of changes

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