File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -340,9 +340,22 @@ def spatial_resolution(self) -> str:
340
340
341
341
@property
342
342
def projects (self ) -> str :
343
- """Get dataset projects."""
343
+ """Get dataset projects with both short and long names where available ."""
344
344
projects = self .umm .get ("Projects" , [])
345
- return "; " .join (project .get ("ShortName" , "" ) for project in projects if project .get ("ShortName" ))
345
+ formatted_projects = []
346
+
347
+ for project in projects :
348
+ short_name = project .get ("ShortName" , "" )
349
+ long_name = project .get ("LongName" , "" )
350
+
351
+ if short_name and long_name :
352
+ formatted_projects .append (f"{ short_name } - { long_name } " )
353
+ elif short_name :
354
+ formatted_projects .append (short_name )
355
+ elif long_name :
356
+ formatted_projects .append (long_name )
357
+
358
+ return "; " .join (formatted_projects )
346
359
347
360
@property
348
361
def dataset_name (self ) -> str :
You can’t perform that action at this time.
0 commit comments