Skip to content
GitLab
Explore
Sign in
Register
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
a31b45f2
Commit
a31b45f2
authored
14 years ago
by
Arthur Coolen
Browse files
Options
Downloads
Patches
Plain Diff
Bug1365: added new stations CS011 CS013 CS028 and CS031
parent
8dfe230e
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
MAC/Navigator2/scripts/libs/navFunct.ctl
+22
-7
22 additions, 7 deletions
MAC/Navigator2/scripts/libs/navFunct.ctl
with
22 additions
and
7 deletions
MAC/Navigator2/scripts/libs/navFunct.ctl
+
22
−
7
View file @
a31b45f2
...
@@ -1102,6 +1102,10 @@ bool navFunct_hardware2Obs(string stationName, string observation,
...
@@ -1102,6 +1102,10 @@ bool navFunct_hardware2Obs(string stationName, string observation,
// also fill the db Point with the new tree
// also fill the db Point with the new tree
// ****************************************
// ****************************************
void navFunct_fillHardwareLists() {
void navFunct_fillHardwareLists() {
LOG_DEBUG("navFunct.ctl:navFunct_fillHardwareLists| Entered");
LOG_DEBUG("navFunct.ctl:navFunct_fillHardwareLists| g_observationsList: "+g_observationsList);
LOG_DEBUG("navFunct.ctl:navFunct_fillHardwareLists| g_processesList: "+g_processesList);
dynClear(strHighlight);
dynClear(strHighlight);
dynClear(highlight);
dynClear(highlight);
// fill hardware based on available observations
// fill hardware based on available observations
...
@@ -1157,6 +1161,10 @@ void navFunct_fillHardwareLists() {
...
@@ -1157,6 +1161,10 @@ void navFunct_fillHardwareLists() {
// ****************************************
// ****************************************
void navFunct_fillObservationsList() {
void navFunct_fillObservationsList() {
LOG_DEBUG("navFunct.ctl:navFunct_fillObservationsLists| Entered");
LOG_DEBUG("navFunct.ctl:navFunct_fillObservationsLists| g_stationsList: "+g_stationList);
LOG_DEBUG("navFunct.ctl:navFunct_fillObservationsLists| g_processesList: "+g_processesList);
LOG_DEBUG("navFunct.ctl:navFunct_fillObservationsLists| g_observationsList: "+g_observationsList);
dynClear(strHighlight);
dynClear(strHighlight);
dynClear(highlight);
dynClear(highlight);
...
@@ -1170,7 +1178,7 @@ void navFunct_fillObservationsList() {
...
@@ -1170,7 +1178,7 @@ void navFunct_fillObservationsList() {
string process = navFunct_getPathLessOne(g_processesList[i]);
string process = navFunct_getPathLessOne(g_processesList[i]);
if (dpTypeName(process) == "Observation" || dpTypeName(process) == "StnObservation") {
if (dpTypeName(process) == "Observation" || dpTypeName(process) == "StnObservation") {
// get the real observation name
// get the real observation name
int iPos = dynContains(g_observations["DP"],
MainDBName+
dpSubStr(process,DPSUB_DP));
int iPos = dynContains(g_observations["DP"],dpSubStr(process,DPSUB_DP));
if (iPos > 0) {
if (iPos > 0) {
string observation = g_observations["NAME"][iPos];
string observation = g_observations["NAME"][iPos];
strreplace(observation,"LOFAR_ObsSW_","");
strreplace(observation,"LOFAR_ObsSW_","");
...
@@ -1305,6 +1313,10 @@ void navFunct_fillObservationsList() {
...
@@ -1305,6 +1313,10 @@ void navFunct_fillObservationsList() {
void navFunct_fillProcessesList() {
void navFunct_fillProcessesList() {
dynClear(strHighlight);
dynClear(strHighlight);
dynClear(highlight);
dynClear(highlight);
LOG_DEBUG("navFunct.ctl:navFunct_fillProcesseLists| Entered");
LOG_DEBUG("navFunct.ctl:navFunct_fillProcesseLists| g_stationsList: "+g_stationList);
LOG_DEBUG("navFunct.ctl:navFunct_fillProcesseLists| g_processesList: "+g_processesList);
LOG_DEBUG("navFunct.ctl:navFunct_fillProcesseLists| g_observationsList: "+g_observationsList);
// to do
// to do
}
}
...
@@ -1624,9 +1636,9 @@ dyn_string navFunct_listToDynString(string aS) {
...
@@ -1624,9 +1636,9 @@ dyn_string navFunct_listToDynString(string aS) {
// ****************************************
// ****************************************
void navFunct_fillStationLists() {
void navFunct_fillStationLists() {
coreStations = makeDynString("CS001","CS002","CS003","CS004","CS005","CS006","CS007",
coreStations = makeDynString("CS001","CS002","CS003","CS004","CS005","CS006","CS007",
"CS017",
"CS011","CS013",
"CS017",
"CS021","CS024","CS026",
"CS021","CS024","CS026",
"CS028",
"CS030","CS032",
"CS030","
CS031","
CS032",
"CS101","CS103",
"CS101","CS103",
"CS201",
"CS201",
"CS301","CS302",
"CS301","CS302",
...
@@ -1912,11 +1924,14 @@ string navFunct_ObsToTemp(string dp){
...
@@ -1912,11 +1924,14 @@ string navFunct_ObsToTemp(string dp){
if ( pos > -1) {
if ( pos > -1) {
string aDB=dpSubStr(dp,DPSUB_SYS);
string aDB=dpSubStr(dp,DPSUB_SYS);
string bareDP=substr(dp,strlen(aDB));
string bareDP=substr(dp,strlen(aDB));
// string bareDP=dpSubStr(dp,DPSUB_DP); strange ???? should be woking but returns ""
string aS2="";
string aS2="";
int nr=-1;
int nr=-1;
int err = sscanf(bareDP,"LOFAR_ObsSW_Observation%d_%s",nr,aS2);
int err = sscanf(bareDP,"LOFAR_ObsSW_Observation%d_%s",nr,aS2);
if (aS2 != "") {
dp=aDB+claimManager_nameToRealName("LOFAR_ObsSW_Observation"+nr)+"_"+aS2;
dp=aDB+claimManager_nameToRealName("LOFAR_ObsSW_Observation"+nr)+"_"+aS2;
} else {
dp=aDB+claimManager_nameToRealName("LOFAR_ObsSW_Observation"+nr);
}
}
}
return dp;
return dp;
}
}
...
...
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