ncftools 0.9.0__tar.gz → 0.9.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ncftools-0.9.0 → ncftools-0.9.2}/PKG-INFO +2 -2
- {ncftools-0.9.0 → ncftools-0.9.2}/README.md +1 -1
- {ncftools-0.9.0 → ncftools-0.9.2}/ncftools/__init__.py +1 -1
- {ncftools-0.9.0 → ncftools-0.9.2}/ncftools/describe.py +2 -2
- {ncftools-0.9.0 → ncftools-0.9.2}/ncftools/meshinfo.py +14 -4
- {ncftools-0.9.0 → ncftools-0.9.2}/ncftools/nc2shp.py +1 -1
- {ncftools-0.9.0 → ncftools-0.9.2}/ncftools.egg-info/PKG-INFO +2 -2
- {ncftools-0.9.0 → ncftools-0.9.2}/pyproject.toml +1 -1
- {ncftools-0.9.0 → ncftools-0.9.2}/MANIFEST.in +0 -0
- {ncftools-0.9.0 → ncftools-0.9.2}/ncftools/cli.py +0 -0
- {ncftools-0.9.0 → ncftools-0.9.2}/ncftools/rnxml.py +0 -0
- {ncftools-0.9.0 → ncftools-0.9.2}/ncftools/setncrain.py +0 -0
- {ncftools-0.9.0 → ncftools-0.9.2}/ncftools/tests/__init__.py +0 -0
- {ncftools-0.9.0 → ncftools-0.9.2}/ncftools/transzone1.py +0 -0
- {ncftools-0.9.0 → ncftools-0.9.2}/ncftools/transzone2.py +0 -0
- {ncftools-0.9.0 → ncftools-0.9.2}/ncftools.egg-info/SOURCES.txt +0 -0
- {ncftools-0.9.0 → ncftools-0.9.2}/ncftools.egg-info/dependency_links.txt +0 -0
- {ncftools-0.9.0 → ncftools-0.9.2}/ncftools.egg-info/entry_points.txt +0 -0
- {ncftools-0.9.0 → ncftools-0.9.2}/ncftools.egg-info/requires.txt +0 -0
- {ncftools-0.9.0 → ncftools-0.9.2}/ncftools.egg-info/top_level.txt +0 -0
- {ncftools-0.9.0 → ncftools-0.9.2}/requirements.txt +0 -0
- {ncftools-0.9.0 → ncftools-0.9.2}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ncftools
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.2
|
|
4
4
|
Summary: A collection of tools for working with NetCDF files
|
|
5
5
|
Author-email: aaronchh <aaronhsu219@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -52,7 +52,7 @@ ncftools-info
|
|
|
52
52
|
Display mesh information from a FlowFM NetCDF file.
|
|
53
53
|
|
|
54
54
|
```bash
|
|
55
|
-
meshinfo
|
|
55
|
+
meshinfo FlowFM_net.nc
|
|
56
56
|
meshinfo -h
|
|
57
57
|
```
|
|
58
58
|
|
|
@@ -15,8 +15,8 @@ TOOL_DESCRIPTIONS = {
|
|
|
15
15
|
quadrilaterals), and the spatial extent of the mesh.
|
|
16
16
|
|
|
17
17
|
Examples:
|
|
18
|
-
meshinfo
|
|
19
|
-
meshinfo
|
|
18
|
+
meshinfo FlowFM_net.nc # Display mesh info for a given file
|
|
19
|
+
meshinfo grid.nc # Any FlowFM mesh NetCDF file
|
|
20
20
|
""",
|
|
21
21
|
'nc2shp': """
|
|
22
22
|
Convert a NetCDF mesh file to ESRI Shapefiles.
|
|
@@ -63,8 +63,9 @@ def main():
|
|
|
63
63
|
formatter_class=argparse.RawDescriptionHelpFormatter,
|
|
64
64
|
epilog="""
|
|
65
65
|
Examples:
|
|
66
|
-
meshinfo
|
|
67
|
-
meshinfo
|
|
66
|
+
meshinfo # Use default FlowFM_net.nc
|
|
67
|
+
meshinfo grid.nc # Use any FlowFM mesh file
|
|
68
|
+
meshinfo -i grid.nc # Same, with the -i flag
|
|
68
69
|
meshinfo -h # Show this help message
|
|
69
70
|
|
|
70
71
|
The tool displays:
|
|
@@ -74,15 +75,24 @@ The tool displays:
|
|
|
74
75
|
""",
|
|
75
76
|
)
|
|
76
77
|
|
|
78
|
+
parser.add_argument(
|
|
79
|
+
'file',
|
|
80
|
+
nargs='?',
|
|
81
|
+
metavar='FILE',
|
|
82
|
+
help='Path to the FlowFM NetCDF mesh file (default: FlowFM_net.nc)',
|
|
83
|
+
)
|
|
77
84
|
parser.add_argument(
|
|
78
85
|
'-i', '--input',
|
|
79
|
-
required=True,
|
|
80
86
|
metavar='FILE',
|
|
81
|
-
help='
|
|
87
|
+
help='Same as FILE (kept for backward compatibility)',
|
|
82
88
|
)
|
|
83
89
|
|
|
84
90
|
args = parser.parse_args()
|
|
85
91
|
|
|
92
|
+
if args.file and args.input:
|
|
93
|
+
parser.error('give the mesh file either as FILE or with -i, not both')
|
|
94
|
+
args.input = args.file or args.input or 'FlowFM_net.nc'
|
|
95
|
+
|
|
86
96
|
if not os.path.isfile(args.input):
|
|
87
97
|
print(f"Error: File '{args.input}' not found.")
|
|
88
98
|
print(f"Current directory: {os.getcwd()}")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ncftools
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.2
|
|
4
4
|
Summary: A collection of tools for working with NetCDF files
|
|
5
5
|
Author-email: aaronchh <aaronhsu219@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -52,7 +52,7 @@ ncftools-info
|
|
|
52
52
|
Display mesh information from a FlowFM NetCDF file.
|
|
53
53
|
|
|
54
54
|
```bash
|
|
55
|
-
meshinfo
|
|
55
|
+
meshinfo FlowFM_net.nc
|
|
56
56
|
meshinfo -h
|
|
57
57
|
```
|
|
58
58
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|