Changeset 2442 for trunk/external-alma/atnf/PKSIO/NROFITSDataset.cc
- Timestamp:
- 03/22/12 19:39:32 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/external-alma/atnf/PKSIO/NROFITSDataset.cc
r2441 r2442 1930 1930 } 1931 1931 1932 int NROFITSDataset::readTable( char *v, char *name )1933 {1934 //1935 // Read 'name' attribute defined as char from the 0-th row1936 // of the FITS Scan Record1937 //1938 int status = readTable( v, name, (int)strlen( v ), 0 ) ;1939 1940 return status ;1941 }1942 1943 1932 int NROFITSDataset::readTable( char *v, char *name, int clen, int idx ) 1944 1933 { … … 1976 1965 } 1977 1966 1978 int NROFITSDataset::readTable( int &v, char *name, int b )1979 {1980 //1981 // Read 'name' attribute defined as int from the 0-th row1982 // of the FITS Scan Record1983 //1984 int status = readTable( v, name, b, 0 ) ;1985 1986 return status ;1987 }1988 1989 1967 int NROFITSDataset::readTable( int &v, char *name, int b, int idx ) 1990 1968 { … … 2005 1983 } 2006 1984 2007 int NROFITSDataset::readTable( float &v, char *name, int b )2008 {2009 //2010 // Read 'name' attribute defined as float from the 0-th row2011 // of the FITS Scan Record2012 //2013 int status = readTable( v, name, b, 0 ) ;2014 2015 return status ;2016 }2017 2018 1985 int NROFITSDataset::readTable( float &v, char *name, int b, int idx ) 2019 1986 { … … 2030 1997 if ( b == 0 ) 2031 1998 convertEndian( v ) ; 2032 2033 return status ;2034 }2035 2036 int NROFITSDataset::readTable( double &v, char *name, int b )2037 {2038 //2039 // Read 'name' attribute defined as double from the 0-th row2040 // of the FITS Scan Record2041 //2042 int status = readTable( v, name, b, 0 ) ;2043 1999 2044 2000 return status ; … … 2153 2109 //cout << "v[" << i << "] = " << v[i] << endl ; 2154 2110 } 2155 2156 return status ;2157 }2158 2159 int NROFITSDataset::readColumn( vector<string> &v, char *name )2160 {2161 //2162 // Read 0-th column of ARRYTP-dependent 'name' attributes2163 // defined as char array from the FITS Scan Record2164 //2165 int status = readColumn( v, name, 0 ) ;2166 2111 2167 2112 return status ; … … 2213 2158 } 2214 2159 2215 int NROFITSDataset::readColumn( vector<int> &v, char *name, int b )2216 {2217 //2218 // Read 0-th column of ARRYTP-dependent 'name' attributes2219 // defined as int array from the FITS Scan Record2220 //2221 int status = readColumn( v, name, b, 0 ) ;2222 2223 return status ;2224 }2225 2226 2160 int NROFITSDataset::readColumn( vector<int> &v, char *name, int b, int idx ) 2227 2161 { … … 2247 2181 } 2248 2182 2249 int NROFITSDataset::readColumn( vector<float> &v, char *name, int b )2250 {2251 //2252 // Read 0-th column of ARRYTP-dependent 'name' attributes2253 // defined as float array from the FITS Scan Record2254 //2255 int status = readColumn( v, name, b, 0 ) ;2256 2257 return status ;2258 }2259 2260 2183 int NROFITSDataset::readColumn( vector<float> &v, char *name, int b, int idx ) 2261 2184 { … … 2281 2204 } 2282 2205 2283 int NROFITSDataset::readColumn( vector<double> &v, char *name, int b )2284 {2285 //2286 // Read 0-th column of ARRYTP-dependent 'name' attributes2287 // defined as double array from the FITS Scan Record2288 //2289 int status = readColumn( v, name, b, 0 ) ;2290 2291 return status ;2292 }2293 2294 2206 int NROFITSDataset::readColumn( vector<double> &v, char *name, int b, int idx ) 2295 2207 {
Note: See TracChangeset
for help on using the changeset viewer.