File tree Expand file tree Collapse file tree 5 files changed +10
-6
lines changed
Stars.Data.Tests/Resources/SATELLOGIC/NEWSAT
Stars.Data/Model/Metadata/NewSat Expand file tree Collapse file tree 5 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 297
297
]
298
298
},
299
299
"properties" : {
300
- "title" : " NEWSAT MS L1 2022-03-20 11:28:27" ,
300
+ "title" : " NEWSAT MS L1_SR 2022-03-20 11:28:27" ,
301
301
"description" : " scene_set_id: ece6d219-e452-4524-8fdc-c61c59727ecf" ,
302
302
"datetime" : " 2022-03-20T11:28:27.976967Z" ,
303
303
"processing:level" : " l1" ,
Original file line number Diff line number Diff line change 292
292
]
293
293
},
294
294
"properties" : {
295
- "title" : " NEWSAT MS L1 2023-10-30 20:08:17" ,
295
+ "title" : " NEWSAT MS L1_SR 2023-10-30 20:08:17" ,
296
296
"description" : " scene_set_id: 27b30afd-1c9a-4580-846c-7fe1ab55b46a--179598" ,
297
297
"datetime" : " 2023-10-30T20:08:17.595251Z" ,
298
298
"processing:level" : " l1" ,
Original file line number Diff line number Diff line change 96
96
]
97
97
},
98
98
"properties" : {
99
- "title" : " NEWSAT MS L1 2024-03-14 17:26:20" ,
99
+ "title" : " NEWSAT MS L1_SR 2024-03-14 17:26:20" ,
100
100
"description" : " scene_set_id: ff914eb4-1157-4509-9bc5-36f055cd8e6c" ,
101
101
"datetime" : " 2024-03-14T17:26:20.006816Z" ,
102
102
"processing:level" : " l1" ,
Original file line number Diff line number Diff line change 230
230
" multispectral"
231
231
],
232
232
"constellation" : " Aleph1" ,
233
- "title" : " NEWSAT MULTISPECTRAL L1D 2024-11-02 10:59:19" ,
233
+ "title" : " NEWSAT MS L1D_SR 2024-11-02 10:59:19" ,
234
234
"processing:level" : " l1d" ,
235
235
"providers" : [
236
236
{
Original file line number Diff line number Diff line change @@ -185,11 +185,15 @@ private void FillTitleProperty(StacItem stacItem)
185
185
var properties = stacItem . Properties ;
186
186
// title
187
187
properties . Remove ( "title" ) ;
188
+ string instruments = properties . GetProperty < string [ ] > ( "instruments" ) . First ( ) ;
189
+ if ( instruments == "multispectral" ) instruments = "MS" ;
190
+ string processingLevel = properties . GetProperty < string > ( "processing:level" ) . ToUpper ( ) ;
191
+ if ( stacItem . Id . Contains ( "_SR_" ) || stacItem . Id . EndsWith ( "_SR" ) ) processingLevel += "_SR" ;
188
192
properties . Add ( "title" , string . Format ( "{0} {1} {2} {3}" ,
189
193
//StylePlatform(properties.GetProperty<string>("platform")),
190
194
properties . GetProperty < string > ( "platform" ) . ToUpper ( ) ,
191
- properties . GetProperty < string [ ] > ( " instruments" ) . First ( ) . ToUpper ( ) ,
192
- properties . GetProperty < string > ( "processing:level" ) . ToUpper ( ) ,
195
+ instruments . ToUpper ( ) ,
196
+ processingLevel ,
193
197
properties . GetProperty < DateTime > ( "datetime" ) . ToUniversalTime ( ) . ToString ( "yyyy-MM-dd HH:mm:ss" , culture ) ) ) ;
194
198
}
195
199
You can’t perform that action at this time.
0 commit comments