Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vlkb-soda
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
ViaLactea
vlkb-soda
Commits
bf01a083
Commit
bf01a083
authored
8 months ago
by
Robert Butora
Browse files
Options
Downloads
Patches
Plain Diff
vlkb: prints header one card per line
parent
d91e2f5d
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
data-access/engine/src/vlkb/src/ast.cpp
+8
-2
8 additions, 2 deletions
data-access/engine/src/vlkb/src/ast.cpp
data-access/engine/src/vlkb/src/main.cpp
+1
-1
1 addition, 1 deletion
data-access/engine/src/vlkb/src/main.cpp
with
9 additions
and
3 deletions
data-access/engine/src/vlkb/src/ast.cpp
+
8
−
2
View file @
bf01a083
...
@@ -116,8 +116,14 @@ int header_backup(const string& pathname, bool backup)
...
@@ -116,8 +116,14 @@ int header_backup(const string& pathname, bool backup)
if
(
backup
)
if
(
backup
)
write_previous
(
hd
.
m_header
,
pathname
+
"hdr"
+
((
i
>
0
)
?
"#"
+
to_string
(
i
+
1
)
:
""
)
);
write_previous
(
hd
.
m_header
,
pathname
+
"hdr"
+
((
i
>
0
)
?
"#"
+
to_string
(
i
+
1
)
:
""
)
);
else
else
cout
<<
hd
.
m_header
<<
endl
;
{
unsigned
long
i
=
0
;
unsigned
long
hdr_len
=
hd
.
m_header
.
length
();
while
((
i
*
80
+
80
)
<=
hdr_len
)
{
cout
<<
hd
.
m_header
.
substr
(
80
*
i
++
,
80
)
<<
endl
;
}
}
// FIXME remove all explicit cout cerr to main.cpp and here use ostream&
// FIXME remove all explicit cout cerr to main.cpp and here use ostream&
}
}
...
...
This diff is collapsed.
Click to expand it.
data-access/engine/src/vlkb/src/main.cpp
+
1
−
1
View file @
bf01a083
...
@@ -366,7 +366,7 @@ int cmd_header(int argc, char * argv[])
...
@@ -366,7 +366,7 @@ int cmd_header(int argc, char * argv[])
std
::
cerr
std
::
cerr
<<
"Usage: header [--backup] <pathname.fits>...
\n
"
<<
"Usage: header [--backup] <pathname.fits>...
\n
"
<<
"
\n
"
<<
"
\n
"
<<
"Prints current header or writes the header into a file with the same pathname but 'fitshdr' extension.
\n
"
<<
"Prints current header
(one card per line)
or writes the header into a file with the same pathname but 'fitshdr' extension.
\n
"
<<
"Arguments:
\n
"
<<
"Arguments:
\n
"
<<
" --backup write current header from file 'pathname.fits' to 'pathname.fitshdr#n' where n is the HDU number.
\n
"
;
<<
" --backup write current header from file 'pathname.fits' to 'pathname.fitshdr#n' where n is the HDU number.
\n
"
;
rc
=
EXIT_FAILURE
;
rc
=
EXIT_FAILURE
;
...
...
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