blob: 9279cebe221e3bc81c699c2646e875aa9f0e2502 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// Copyright (C) 1999-2017
// Smithsonian Astrophysical Observatory, Cambridge, MA, USA
// For conditions of distribution and use, see copyright notice in "copyright"
#include "grid.h"
#include "context.h"
#include "fitsimage.h"
extern "C" {
#include "ast.h"
}
Grid::Grid(Coord::CoordSystem sys, Coord::SkyFrame sky,
Coord::SkyFormat format, GridType type, const char* v)
: type_(type), system_(sys), sky_(sky), skyFormat_(format)
{
vars_ = dupstr(v);
}
Grid::~Grid()
{
if (vars_)
delete [] vars_;
}
|