Opened 17 years ago

Last modified 17 years ago

#139 closed defect

Errors while trying to load some Parkes rpf files as scantables — at Version 1

Reported by: slbreen@… Owned by: Malte Marquarding
Priority: normal Milestone: ASAP 2.2
Component: General Version: 2.0
Severity: normal Keywords:
Cc: slbreen@…, mark.calabretta@…

Description (last modified by Malte Marquarding)

Some rpf files from Parkes cannot be loaded into ASAP with the command data = scantable('file.rpf')

The error that it returns of a couple of files is

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 70, in __init__

  self._fill([filename], unit, average)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/asap/scantable.py", line 1743, in _fill

  r._read() RuntimeError: ArrayBase::Array(const IPosition&) - Negative shape

We have also tried loading the files in with commands r = reader('2008-06-20_0425-P625.rpf') data = r.read()

and get a similar error, as follows

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/asapreader.py", line 57, in read
    stfiller._read(self) RuntimeError: ArrayBase::Array(const IPosition&) - Negative shape

if we then enter data = r.read() again it does it without error.

We have also loaded the data into SPC without error. I can email one of the data files if you like?

Change History (2)

comment:1 by Malte Marquarding, 17 years ago

Description: modified (diff)
Owner: changed from Malte Marquarding to Malte Marquarding
Status: newassigned

Hi,

please let me know where I can access the data file. What kind of observation is it?

Cheers, Malte

by Malte Marquarding, 17 years ago

rpfits file causing the trouble

Note: See TracTickets for help on using tickets.