diff --git a/netCDF_visualizer_funtionality.py b/netCDF_visualizer_funtionality.py index 0d0b9da81378fb17b16fd98a3d6eadcc85312a44..27dd5d6a3e7246895bbc13c1d8fe64f0be6778d1 100644 --- a/netCDF_visualizer_funtionality.py +++ b/netCDF_visualizer_funtionality.py @@ -165,7 +165,7 @@ class maskAndFuntionality (BASE, WIDGET): longNameVariables2 = ncFile.groups[ncFileGroupsName[i]].groups[ncFileGroupsName2[j]].variables[ncFileVariablesName2[k]].long_name child3 = QTreeWidgetItem([ncFileVariablesName2[k], longNameVariables2]) child2.addChild(child3) - + #we get the variables of the groups ncFileGroupsVariablesName = list(ncFile.groups[ncFileGroupsName[i]].variables.keys()) @@ -177,6 +177,11 @@ class maskAndFuntionality (BASE, WIDGET): child4 = QTreeWidgetItem([ncFileGroupsVariablesName[j],longNameVariables]) child.addChild(child4) + + + + + #expand all the data self.tree_data.expandAll() @@ -184,10 +189,19 @@ class maskAndFuntionality (BASE, WIDGET): """ here we are gonna show all information into the GUI""" #set all information about the file into the text browser self.text_info.setText("File name: " + ncFileName) + + + + + + + #we close the netCDF file ncFile.close() + +