Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
a3d794ee
Commit
a3d794ee
authored
14 years ago
by
Ger van Diepen
Browse files
Options
Downloads
Patches
Plain Diff
bug 1614:
Added shapelet fields
parent
d530871f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CEP/ParmDB/include/ParmDB/SourceInfo.h
+52
-8
52 additions, 8 deletions
CEP/ParmDB/include/ParmDB/SourceInfo.h
with
52 additions
and
8 deletions
CEP/ParmDB/include/ParmDB/SourceInfo.h
+
52
−
8
View file @
a3d794ee
...
@@ -29,6 +29,7 @@
...
@@ -29,6 +29,7 @@
//# Includes
//# Includes
#include
<Common/lofar_string.h>
#include
<Common/lofar_string.h>
#include
<casa/Arrays/Array.h>
namespace
LOFAR
{
namespace
LOFAR
{
...
@@ -55,23 +56,66 @@ namespace BBS {
...
@@ -55,23 +56,66 @@ namespace BBS {
};
};
// Create from source name and type.
// Create from source name, type and other info.
SourceInfo
(
const
string
&
name
,
Type
type
)
// <br>A positive spectralIndexSize means that BBS will take
:
itsName
(
name
),
// a spectral index with size terms into account when calculating
itsType
(
type
)
// the flux. The values of the terms are in the associated ParmDB. It
// uses the given reference frequency (in Hz).
// <br> useRotationMeasure indicates that Q and U have to be calculated
// using a rotation measure, polarization angle, and polarized fraction.
SourceInfo
(
const
string
&
name
,
Type
type
,
uint
spectralIndexNTerms
=
0
,
double
spectralIndexRefFreqHz
=
0.
,
bool
useRotationMeasure
=
false
)
:
itsName
(
name
),
itsType
(
type
),
itsSpInxNTerms
(
spectralIndexNTerms
),
itsSpInxRefFreq
(
spectralIndexRefFreqHz
),
itsUseRotMeas
(
useRotationMeasure
),
itsShapeletScale
(
0
)
{}
{}
// Get the name.
// Get the
source
name.
const
string
&
getName
()
const
const
string
&
getName
()
const
{
return
itsName
;
}
{
return
itsName
;
}
// Get the type.
// Get the
source
type.
Type
getType
()
const
Type
getType
()
const
{
return
itsType
;
}
{
return
itsType
;
}
// Get the number of terms in the spectral index function.
// A value 0 means that the spectral index is not used.
uint
getSpectralIndexNTerms
()
const
{
return
itsSpInxNTerms
;
}
// Get the reference frequency (in Hz) for the spectral index.
double
getSpectralIndexRefFreq
()
const
{
return
itsSpInxRefFreq
;
}
// Tell if Q,U are directly given or have to be calculated from
// rotation measure, polarisation fraction and angle.
bool
getUseRotationMeasure
()
const
{
return
itsUseRotMeas
;
}
// Set or get the shapelet info.
// <group>
const
casa
::
Array
<
double
>&
getShapeletCoeff
()
const
{
return
itsShapeletCoeff
;
}
double
getShapeletScale
()
const
{
return
itsShapeletScale
;
}
void
setShapeletCoeff
(
const
casa
::
Array
<
double
>&
coeff
)
{
itsShapeletCoeff
=
coeff
;
}
void
setShapeletScale
(
double
scale
)
{
itsShapeletScale
=
scale
;
}
// </group>
private
:
private
:
string
itsName
;
string
itsName
;
// source name
Type
itsType
;
Type
itsType
;
// source type
uint
itsSpInxNTerms
;
// nr of terms in the spectral index function
double
itsSpInxRefFreq
;
// reference frequency (Hz) for spectral index
bool
itsUseRotMeas
;
// true=use RM,PolFrac,PolAngle; false=use Q,U
casa
::
Array
<
double
>
itsShapeletCoeff
;
// shapelet coefficients
double
itsShapeletScale
;
// shapelet scale
};
};
// @}
// @}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment