source: trunk/external-alma/atnf/PKSIO/NRO45FITSReader.cc@ 2332

Last change on this file since 2332 was 1757, checked in by Kana Sugimoto, 14 years ago

New Development: Yes

JIRA Issue: Yes (CAS-2211)

Ready for Test: Yes

Interface Changes: Yes

What Interface Changed: ASAP 3.0.0 interface changes

Test Programs:

Put in Release Notes: Yes

Module(s): all the CASA sd tools and tasks are affected.

Description: Merged ATNF-ASAP 3.0.0 developments to CASA (alma) branch.

Note you also need to update casa/code/atnf.


File size: 2.5 KB
Line 
1//#---------------------------------------------------------------------------
2//# NRO45FITSReader.cc: Class to read NRO 45m FITS data.
3//#---------------------------------------------------------------------------
4//# Copyright (C) 2000-2006
5//# Associated Universities, Inc. Washington DC, USA.
6//#
7//# This library is free software; you can redistribute it and/or modify it
8//# under the terms of the GNU Library General Public License as published by
9//# the Free Software Foundation; either version 2 of the License, or (at your
10//# option) any later version.
11//#
12//# This library is distributed in the hope that it will be useful, but WITHOUT
13//# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14//# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
15//# License for more details.
16//#
17//# You should have received a copy of the GNU Library General Public License
18//# along with this library; if not, write to the Free Software Foundation,
19//# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
20//#
21//# Correspondence concerning AIPS++ should be addressed as follows:
22//# Internet email: aips2-request@nrao.edu.
23//# Postal address: AIPS++ Project Office
24//# National Radio Astronomy Observatory
25//# 520 Edgemont Road
26//# Charlottesville, VA 22903-2475 USA
27//#
28//# $Id$
29//#---------------------------------------------------------------------------
30//# Original: 2009/02/26, Takeshi Nakazato, NAOJ
31//#---------------------------------------------------------------------------
32
33#include <atnf/PKSIO/NRO45FITSReader.h>
34#include <atnf/PKSIO/NROFITSDataset.h>
35
36#include <string>
37#include <stdio.h>
38
39using namespace std ;
40
41// Constructor
42NRO45FITSReader::NRO45FITSReader( string name )
43 : NRO45Reader( name )
44{
45 // DEBUG
46 //cout << "NRO45FITSReader::NRO45FITSReader()" << endl ;
47 //
48}
49
50// Destructor.
51NRO45FITSReader::~NRO45FITSReader()
52{
53 // DEBUG
54 //cout << "NRO45FITSReader::~NRO45FITSReader()" << endl ;
55 //
56}
57
58// Read data header
59Int NRO45FITSReader::read()
60{
61 LogIO os( LogOrigin( "NRO45FITSReader", "read()", WHERE ) ) ;
62
63 // DEBUG
64 //cout << "NRO45FITSReader::read()" << endl ;
65 //
66 int status = 0 ;
67
68 // create NRO45Dataset
69 dataset_ = new NROFITSDataset( filename_ ) ;
70
71 // fill NROFITSDataset
72 status = dataset_->fillHeader() ;
73
74 if ( status != 0 ) {
75 //cerr << "Failed to fill data header." << endl ;
76 os << LogIO::SEVERE << "Failed to fill data header." << LogIO::EXCEPTION ;
77 }
78
79 return status ;
80}
Note: See TracBrowser for help on using the repository browser.