Skip to content

Commit

Permalink
Update acquiring global attributes.
Browse files Browse the repository at this point in the history
Some names are being phased out or renamed.  Adjust to check for new and
old names.
  • Loading branch information
topher800 committed Aug 16, 2024
1 parent 40e74ad commit f63e20d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions dataIO.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,13 +220,14 @@ void AddDataFile(Widget w, XtPointer client, XtPointer call)
nc_inq_nvars(InputFile, &nVars);


if (getNCattr(InputFile, NC_GLOBAL, "ProjectName", curFile->ProjectName) == false)
getNCattr(InputFile, NC_GLOBAL, "project", curFile->ProjectName); // Unidata DataDiscovery name.
if (getNCattr(InputFile, NC_GLOBAL, "project", curFile->ProjectName) == false)
getNCattr(InputFile, NC_GLOBAL, "ProjectName", curFile->ProjectName);

getNCattr(InputFile, NC_GLOBAL, "FlightNumber", curFile->FlightNumber);
getNCattr(InputFile, NC_GLOBAL, "FlightDate", curFile->FlightDate);
if (getNCattr(InputFile, NC_GLOBAL, "Platform", curFile->TailNumber) == false)
getNCattr(InputFile, NC_GLOBAL, "Aircraft", curFile->TailNumber);
if (getNCattr(InputFile, NC_GLOBAL, "platform", curFile->TailNumber) == false)
if (getNCattr(InputFile, NC_GLOBAL, "Platform", curFile->TailNumber) == false)
getNCattr(InputFile, NC_GLOBAL, "Aircraft", curFile->TailNumber);

std::string warning;
getNCattr(InputFile, NC_GLOBAL, "WARNING", warning);
Expand Down

0 comments on commit f63e20d

Please sign in to comment.