[GRASS-dev] [GRASS GIS] #549: r.mfilter should _respect_ i.fft outputs for use with i.ifft

#549: r.mfilter should _respect_ i.fft outputs for use with i.ifft
--------------------------------------+-------------------------------------
Reporter: nikos | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: Raster | Version: svn-develbranch6
Keywords: i.fft, r.mfilter, i.ifft | Platform: Unspecified
      Cpu: Unspecified |
--------------------------------------+-------------------------------------
# fft of some raster image[[BR]]
i.fft in=a real=a_real imaginary=a_imaginary

# do something with the real_fft_image, e.g. r.mfilter[[BR]]
r.mfilter in=a_real filter=some_filter out=a_real_filtered

# perform i.ifft[[BR]]
i.ifft real=a_real_filtered imaginary=a_imaginary
output=a_via_fft_filtered

ERROR: Unable to open real-image in the 'cell_misc' directory. Raster map
probably wasn't created by i.fft[[BR]]

# questions
   Is it fair enough to ask for this support?[[BR]]
   Or is there a reason why _r.mfilter_ alters the i.fft-products in such a
way that _i.ifft_ can't handle?

Nikos

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/549&gt;
GRASS GIS <http://grass.osgeo.org>

#549: r.mfilter should _respect_ i.fft outputs for use with i.ifft
--------------------------+-------------------------------------------------
  Reporter: nikos | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.0
Component: Raster | Version: svn-develbranch6
Resolution: | Keywords: i.fft, r.mfilter, i.ifft
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Comment (by nikos):

Well, I bombed (again) in an issue that I had seen in the past but did not
remember of it anymore.

Read [http://lists.osgeo.org/pipermail/grass-user/2008-April/044244.html
Question about MODIS band 5 destriping?]

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/549#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#549: r.mfilter should _respect_ i.fft outputs for use with i.ifft
--------------------------+-------------------------------------------------
  Reporter: nikos | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.0
Component: Raster | Version: svn-develbranch6
Resolution: | Keywords: i.fft, r.mfilter, i.ifft
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Comment (by glynn):

Replying to [ticket:549 nikos]:

> Is it fair enough to ask for this support?[[BR]]

It's already present in 7.0, but the interface had to be changed (separate
maps for the real and imaginary components), so it's unlikely to be back-
ported.

> Or is there a reason why _r.mfilter_ alters the i.fft-products in such
a way that _i.ifft_ can't handle?

i.fft stores the actual frequency-domain data in auxiliary data files. The
output map only exists for viewing with d.rast. Apart from anything else,
a raster map can only store real values, and the FFT results are complex
values.

i.ifft operates upon the auxiliary data files, not the map itself, so it
only works with maps which were generated by i.fft. The only processing
which can be performed on the frequency-domain data is to apply a mask
(i.ifft explicitly applies the MASK raster if it exists).

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/549#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#549: r.mfilter should _respect_ i.fft outputs for use with i.ifft
--------------------------------------+-------------------------------------
Reporter: nikos | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: Raster | Version: svn-develbranch6
Keywords: i.fft, r.mfilter, i.ifft | Platform: Unspecified
      Cpu: Unspecified |
--------------------------------------+-------------------------------------

Comment(by nikos):

Should this ticket be marked as will-not-be-fixed for grass64?

Nikos

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/549#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#549: r.mfilter should _respect_ i.fft outputs for use with i.ifft
--------------------------+-------------------------------------------------
  Reporter: nikos | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: major | Milestone: 6.4.0
Component: Raster | Version: svn-develbranch6
Resolution: wontfix | Keywords: i.fft, r.mfilter, i.ifft
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by neteler):

  * status: new => closed
  * resolution: => wontfix

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/549#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>