Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EBVCubeVisualizerPlugin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
no67wuwu
EBVCubeVisualizerPlugin
Commits
df97a3f0
Commit
df97a3f0
authored
2 years ago
by
Emmanuel Heriberto Oceguera Conchas
Browse files
Options
Downloads
Patches
Plain Diff
updated
parent
20cffd67
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
netCDF_visualizer.py
+2
-3
2 additions, 3 deletions
netCDF_visualizer.py
netCDF_visualizer_funtionality.py
+20
-2
20 additions, 2 deletions
netCDF_visualizer_funtionality.py
with
22 additions
and
5 deletions
netCDF_visualizer.py
+
2
−
3
View file @
df97a3f0
...
...
@@ -26,13 +26,13 @@
from
PyQt5.QtCore
import
*
from
PyQt5.QtGui
import
*
from
PyQt5.QtWidgets
import
*
#import everthing from the netCDF_visualization_funtionality.py file
from
.netCDF_visualizer_funtionality
import
*
#we write a class, Plugins is a class
import
os
class
netCDFVisualizer
:
"""
This is a class for the netCDFVisualizer Plugin
"""
#we set that we need the iface to build something with the class
...
...
@@ -153,7 +153,6 @@ class netCDFVisualizer:
else
:
self
.
toolbar
.
removeAction
(
action
)
#we create a function to call the mask
def
callMask
(
self
):
#we create the mask or GUI
...
...
This diff is collapsed.
Click to expand it.
netCDF_visualizer_funtionality.py
+
20
−
2
View file @
df97a3f0
...
...
@@ -34,8 +34,26 @@ import os
#to import general tools from QGIS we need the qgis.core module
from
qgis.core
import
*
#for loading the netCDF files we need the netCDF4 module
import
netCDF4
as
nc
from
netCDF4
import
Dataset
try
:
from
pip
import
main
as
pipmain
except
ImportError
:
from
pip._internal
import
main
as
pipmain
try
:
import
netCDF4
as
nc
except
ImportError
:
pipmain
([
'
install
'
,
'
netCDF4
'
])
import
netCDF4
as
nc
from
netCDF4
import
Dataset
#we need the matplotlib module to plot the data
#try:
# import matplotlib
#except ImportError:
# pipmain(['install', 'matplotlib'])
# import matplotlib
#we create the path to the ui file
#Path to the Ordner where the ui file is
ncvPath
=
os
.
path
.
dirname
(
__file__
)
#the comand dirname gives the path to the directory where the file is
...
...
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