Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vlkb-siav2
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-siav2
Commits
3b009645
Commit
3b009645
authored
6 months ago
by
Robert Butora
Browse files
Options
Downloads
Patches
Plain Diff
adds null-value definition in VOTable for Long and Integer columns
parent
e960ba61
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
data-discovery/src/main/java/webapi/formatfilter/ObscoreExt.java
+25
-9
25 additions, 9 deletions
...scovery/src/main/java/webapi/formatfilter/ObscoreExt.java
with
25 additions
and
9 deletions
data-discovery/src/main/java/webapi/formatfilter/ObscoreExt.java
+
25
−
9
View file @
3b009645
...
...
@@ -12,12 +12,28 @@ class ObscoreExt
return
colInfo
;
}
static
private
ColumnInfo
genIntWithNullColInfo
(
String
colLabel
,
String
colDesc
)
{
ColumnInfo
colInfo
=
new
ColumnInfo
(
colLabel
,
Integer
.
class
,
colDesc
);
colInfo
.
setAuxDatum
(
new
DescribedValue
(
Tables
.
NULL_VALUE_INFO
,
Integer
.
MIN_VALUE
));
return
colInfo
;
}
static
private
ColumnInfo
genLongWithNullColInfo
(
String
colLabel
,
String
colDesc
)
{
ColumnInfo
colInfo
=
new
ColumnInfo
(
colLabel
,
Long
.
class
,
colDesc
);
colInfo
.
setAuxDatum
(
new
DescribedValue
(
Tables
.
NULL_VALUE_INFO
,
Long
.
MIN_VALUE
));
return
colInfo
;
}
public
static
final
ColumnInfo
[]
OBSCORE_COLINFO
=
{
new
ColumnInfo
(
"dataproduct_type"
,
String
.
class
,
"Dataproduct Type (image|cube)"
),
new
Column
Info
(
"calib_level"
,
Integer
.
class
,
"Calibration level"
),
genIntWithNullCol
Info
(
"calib_level"
,
"Calibration level"
),
new
ColumnInfo
(
"obs_collection"
,
String
.
class
,
"Collection"
),
new
ColumnInfo
(
"obs_title"
,
String
.
class
,
"Title"
),
new
ColumnInfo
(
"obs_id"
,
String
.
class
,
"Observation Id"
),
...
...
@@ -35,25 +51,25 @@ class ObscoreExt
new
ColumnInfo
(
"s_dec"
,
Double
.
class
,
"Declination"
),
new
ColumnInfo
(
"s_fov"
,
Double
.
class
,
"Field of view"
),
new
ColumnInfo
(
"s_region"
,
String
.
class
,
"Region"
),
new
Column
Info
(
"s_xel1"
,
Long
.
class
,
"Pixels axis1"
),
new
Column
Info
(
"s_xel2"
,
Long
.
class
,
"Pixels axis2"
),
genLongWithNullCol
Info
(
"s_xel1"
,
"Pixels axis1"
),
genLongWithNullCol
Info
(
"s_xel2"
,
"Pixels axis2"
),
new
ColumnInfo
(
"s_resolution"
,
Double
.
class
,
"Spatial resolution"
),
new
ColumnInfo
(
"t_min"
,
Double
.
class
,
"Time min"
),
new
ColumnInfo
(
"t_max"
,
Double
.
class
,
"Time max"
),
new
ColumnInfo
(
"t_exptime"
,
Double
.
class
,
"Exposure time"
),
new
ColumnInfo
(
"t_resolution"
,
Double
.
class
,
"Time resolution"
),
new
Column
Info
(
"t_xel"
,
Long
.
class
,
"Time pixels"
),
genLongWithNullCol
Info
(
"t_xel"
,
"Time pixels"
),
new
ColumnInfo
(
"em_min"
,
Double
.
class
,
"Spectrum min"
),
new
ColumnInfo
(
"em_max"
,
Double
.
class
,
"Spectrum max"
),
new
ColumnInfo
(
"em_res_power"
,
Double
.
class
,
"Spectrum resolution power"
),
new
Column
Info
(
"em_xel"
,
Long
.
class
,
"Spectrum pixels"
),
genLongWithNullCol
Info
(
"em_xel"
,
"Spectrum pixels"
),
new
ColumnInfo
(
"o_ucd"
,
String
.
class
,
"Observable UCD"
),
new
ColumnInfo
(
"pol_states"
,
String
.
class
,
"Polarization states"
),
new
Column
Info
(
"pol_xel"
,
Long
.
class
,
"Polarization pixels"
),
genLongWithNullCol
Info
(
"pol_xel"
,
"Polarization pixels"
),
new
ColumnInfo
(
"facility_name"
,
String
.
class
,
"Facility"
),
new
ColumnInfo
(
"instrument_name"
,
String
.
class
,
"Instrument"
),
...
...
@@ -112,9 +128,9 @@ class ObscoreExt
public
static
final
ColumnInfo
[]
VLKB_COLINFO
=
{
new
Column
Info
(
"overlap"
,
Integer
.
class
,
"Overlap Code"
),
new
Column
Info
(
"overlapSky"
,
Integer
.
class
,
"Overlap Code for Sky axes"
),
new
Column
Info
(
"overlapSpec"
,
Integer
.
class
,
"Overlap Code for Spectral axis"
),
genIntWithNullCol
Info
(
"overlap"
,
"Overlap Code"
),
genIntWithNullCol
Info
(
"overlapSky"
,
"Overlap Code for Sky axes"
),
genIntWithNullCol
Info
(
"overlapSpec"
,
"Overlap Code for Spectral axis"
),
new
ColumnInfo
(
"s_region_galactic"
,
String
.
class
,
"Region [GALACTIC]"
),
...
...
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