Custom Query (241 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (19 - 21 of 241)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Ticket Owner Reporter Resolution Summary
#88 Malte Marquarding darrell@… fixed scantabel.stats - No registered converter was able to produce a C++ rvalue of type bool
Description

Hi Malte,

I'm getting an error going though your mopra test case... below is what I do. This is with python 2.4.2 and with numpy 1.0. I'm wondering if you expect an old version of numpy? Because I had to change all of your import lines from:

from numarray import ...

to:

from numpy.numarray import ...

because it complained that there was no "numarray" package... since numarray is included beneath numpy (at least with numpy 1.0). Thanks for any help...

Darrell

CASA <1>: import asap as sd

CASA <2>: s = sd.scantable("mopra_dualif.rpf")
Auto averaging integrations
Importing mopra_dualif.rpf...

CASA <3>: q = s.auto_quotient()

CASA <4>: restfreqs = [110.201,86.243]

CASA <5>: q.set_restfreqs(restfreqs,"GHz")

CASA <6>: q.set_unit("km/s")

CASA <7>: q.set_freqframe("LSRK")

CASA <8>: q.auto_poly_baseline()
Wed Nov 1 15:34:32 2006      WARN MeasIERS::fillMeas(MeasIERS::Files, Double) (f
ile /usr/src/redhat/BUILD/casapy-20.0.199/code/measures/implement/Measures/MeasI
ERS.cc, line 94):
Requested JD53498.2 is outside the IERS table data range
Calculations will proceed with less precision
Wed Nov 1 15:34:32 2006      WARN MeasTable::dUT1(Double) (file /usr/src/redhat/
BUILD/casapy-20.0.199/code/measures/implement/Measures/MeasTable.cc, line 6437):
No requested dUT1 data available from IERS tables.
Proceeding with probably less precision.
Wed Nov 1 15:34:32 2006    SEVERE MeasTable::dUTC(Double) (file /usr/src/redhat/
BUILD/casapy-20.0.199/code/measures/implement/Measures/MeasTable.cc, line 6308):
Leap second table TAI_UTC seems out-of-date.
Until table is updated (see aips++ manager) times and coordinates
derived from UTC could be wrong by 1s or more.
Processing:
Scan[0] Beam[0] IF[0] Pol[0] Cycle[0]
  p0= -0.223352
Scan[0] Beam[0] IF[1] Pol[0] Cycle[0]
  p0= -0.593133

CASA <9>: q.convert_flux()
Converting to Jy
Looking up conversion factors
Using aperture efficiency data from 2004
Using aperture efficiency data from 2004


CASA <10>: msk = q.create_mask([-70,20], [20,70])
The current mask window unit is km/s


CASA <11>: rms = q.stats("rms",msk)
---------------------------------------------------------------------------
exceptions.TypeError                                 Traceback (most recent call
last)

/export/users/dschieb/<ipython console>

/usr/lib/casapy/20.0.199-02/lib/python2.4/asap/scantable.py in stats(self, stat,
mask)
    281                               "Please use setselection() to select indiv
idual IFs")
    282
--> 283         statvals = self._math._stats(self, mask, stat)
    284         out = ''
    285         axes = []

TypeError: No registered converter was able to produce a C++ rvalue of type bool
from this Python object of type numpy.float64
#89 Malte Marquarding bugs fixed IF selection doesn't allow export to ascii/sdfits
Description

The first has to do with the file name. You will see that the section "SCAN0_CYCLE0_BEAM0_IF0" is added to the name of every file I create, despite the fact that I actually specify the name I want in q1.save.

The second has to do with actually writing these files out. In the sequence below I am trying to create files for spectra in 7 IFs. The spectra themselves are fine (I can see them on the Plotter). But for only the first 2 IFs can I actually write a file. You will see the error below ("Illegal ro number") - which happens for IFs 2 to 6 in my case. When this happens just a partial header is written:

######################################################################
#          Name: imlup                                               #
#      Position: J2000 15:56:09.1 -37.56.05.8                        #
#          Time: 2006/07/20/09:24:39                                 #
#     Flux Unit: K                                                   #
#      Pol Type: stokes                                              #

but no data appears in the file! This partial header happens for IFs 2 &

  1. For IFs 4, 5 & 6 the file is completely empty!
    Its worse if I try to save the files as a SDFITS.  In this case Python 
    itself crashes!
    
    ASAP>q1.save('iras13481_SO_','SDFITS','overwrite')
    /Library/Frameworks/Python.framework/Versions/Current/bin/asap: line 54:   
    708 Bus error               $ip -ipythondir "${HOME}/.asap" -p 'asap' $*
    mgb12:~/Desktop/Mopra DQS stuff/Spectra mgb$ 
    
    
    ASAP>sel = selector()
    
    ASAP>plotter.set_range()
    
    ASAP>
    
    ASAP>sel.set_ifs([0])
    
    ASAP>q1.set_selection(sel)
    
    ASAP>q1.save('imlup_SO_','ASCII','overwrite')
    Wrote imlup_SO_SCAN0_CYCLE0_BEAM0_IF0.txt
    
    
    ASAP>plotter.set_title(['IM Lup SO 109.252 GHz'])
    
    ASAP>plotter.plot(q1)
    
    ASAP>plotter.save('imlup_SO.png')
    Written file imlup_SO.png
    
    ASAP>
    
    ASAP>sel.set_ifs([1])
    
    ASAP>q1.set_selection(sel)
    
    ASAP>q1.save('imlup_C18O_','ASCII','overwrite')
    Wrote imlup_C18O_SCAN0_CYCLE0_BEAM0_IF1.txt
    
    
    ASAP>plotter.set_title(['IM Lup C18O 109.782 GHz'])
    
    ASAP>plotter.plot(q1)
    
    ASAP>plotter.save('imlup_C18O.png')
    Written file imlup_C18O.png
    
    ASAP>
    
    ASAP>sel.set_ifs([2])
    
    ASAP>q1.set_selection(sel)
    
    ASAP>q1.save('imlup_HNCO_','ASCII','overwrite')
    ------------------------------------------------------------
    Traceback (most recent call last):
      File "<ipython console>", line 1, in ?
      File 
    "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/asap/scantable.py", 
    line 120, in save
        writer.write(self, name)
    RuntimeError: Illegal ro number
    
#100 Malte Marquarding Chris Phillips fixed Saving postscipt is broken
Description

When I try and save the current plotter window to postscript (plotter.save) I get a asap python error:

{{ ASAP>plotter.save('mops.ps')


Traceback (most recent call last):

File "<console>", line 1, in ? File "/usr/local/lib/python2.3/site-packages/asap/asapplotter.py", line 505, in save

self._plotter.save(filename,orientation,dpi)

File "/usr/local/lib/python2.3/site-packages/asap/asaplotbase.py", line 419, in save

from matplotlib.backends.backend_ps import papersize

ImportError?: cannot import name papersize

ASAP>plotter.save('mops.eps')


Traceback (most recent call last):

File "<console>", line 1, in ? File "/usr/local/lib/python2.3/site-packages/asap/asapplotter.py", line 505, in save

self._plotter.save(filename,orientation,dpi)

File "/usr/local/lib/python2.3/site-packages/asap/asaplotbase.py", line 436, in save

self.figure.savefig(fname,dpi=dpi)

File "/usr/local/lib/python2.3/site-packages/matplotlib/figure.py", line 660, in savefig

self.canvas.print_figure(*args, kwargs)

File "/usr/local/lib/python2.3/site-packages/matplotlib/backends/backend_agg.py", line 481, in print_figure

from backend_ps import FigureCanvasPS # lazy import

ImportError?: cannot import name FigureCanvasPS

}}

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Note: See TracQuery for help on using queries.