Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Plio
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
aflab
astrogeology
Plio
Commits
a04d12a1
Commit
a04d12a1
authored
6 years ago
by
Jay
Browse files
Options
Downloads
Patches
Plain Diff
Adds necessary test data and repr sugar to db
parent
a57851aa
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
plio/examples/CTX/ctx.pvl
+72
-0
72 additions, 0 deletions
plio/examples/CTX/ctx.pvl
plio/io/io_db.py
+4
-0
4 additions, 0 deletions
plio/io/io_db.py
with
76 additions
and
0 deletions
plio/examples/CTX/ctx.pvl
0 → 100644
+
72
−
0
View file @
a04d12a1
Object = IsisCube
Object = Core
StartByte = 65537
Format = Tile
TileSamples = 1000
TileLines = 1024
Group = Dimensions
Samples = 5000
Lines = 7168
Bands = 1
End_Group
Group = Pixels
Type = SignedWord
ByteOrder = Lsb
Base = 0.0
Multiplier = 1.0
End_Group
End_Object
Group = Instrument
SpacecraftName = Mars_Reconnaissance_Orbiter
InstrumentId = CTX
TargetName = Mars
MissionPhaseName = PSP
StartTime = 2008-09-17T05:08:10.820
SpacecraftClockCount = 0906095311:038
OffsetModeId = 196/190/181
LineExposureDuration = 1.877 <MSEC>
FocalPlaneTemperature = 293.4 <K>
SampleBitModeId = SQROOT
SpatialSumming = 1
SampleFirstPixel = 0
End_Group
Group = Archive
DataSetId = MRO-M-CTX-2-EDR-L0-V1.0
ProductId = B01_010045_1878_XN_07N205W
ProducerId = MRO_CTX_TEAM
ProductCreationTime = 2009-04-13T19:24:46
OrbitNumber = 10045
End_Group
Group = BandBin
FilterName = BroadBand
Center = 0.65 <micrometers>
Width = 0.15 <micrometers>
End_Group
Group = Kernels
NaifFrameCode = -74021
LeapSecond = $base/kernels/lsk/naif0012.tls
TargetAttitudeShape = $base/kernels/pck/pck00009.tpc
TargetPosition = (Table, $base/kernels/spk/de405.bsp)
InstrumentPointing = (Table,
$mro/kernels/ck/mro_sc_psp_080916_080922.bc,
$mro/kernels/fk/mro_v15.tf)
Instrument = Null
SpacecraftClock = $mro/kernels/sclk/MRO_SCLKSCET.00064.65536.tsc
InstrumentPosition = (Table, $mro/kernels/spk/mro_psp8.bsp)
InstrumentAddendum = $mro/kernels/iak/mroctxAddendum005.ti
ShapeModel = $base/dems/molaMarsPlanetaryRadius0005.cub
InstrumentPositionQuality = Reconstructed
InstrumentPointingQuality = Reconstructed
CameraVersion = 1
End_Group
End_Object
Object = Label
Bytes = 65536
End_Object
This diff is collapsed.
Click to expand it.
plio/io/io_db.py
+
4
−
0
View file @
a04d12a1
...
...
@@ -41,6 +41,10 @@ class Translations(Base): # pragma: no cover
self
.
instrument
=
instrument
self
.
translation
=
translation
def
__repr__
(
self
):
return
'
Mission: {}
\n
Instrument: {}
\n
Translation: {}
'
.
format
(
self
.
mission
,
self
.
instrument
,
self
.
translation
)
class
StringToMission
(
Base
):
# pragma: no cover
"""
...
...
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