Changeset 6123 for TOOLS/MOSAIX
- Timestamp:
- 04/25/22 16:14:24 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TOOLS/MOSAIX/Build_coordinates_mask.py
r5951 r6123 104 104 except : 105 105 print ('Bathymetry file: Exception') 106 nav_lon_grid_T = f_bathy ['nav_lon'] 107 nav_lat_grid_T = f_bathy ['nav_lat'] 106 nav_lon_grid_T = f_bathy ['nav_lon'].data 107 nav_lat_grid_T = f_bathy ['nav_lat'].data 108 108 Bathymetry = xr.DataArray (Bathymetry, coords = { "nav_lat_grid_T": (["y", "x"], nav_lat_grid_T), 109 109 "nav_lon_grid_T": (["y", "x"], nav_lon_grid_T) } ) … … 437 437 ds.attrs['history'] = 'Build from ' + n_coord + ' and ' + n_bathy 438 438 ds.attrs['directory'] = os.getcwd () 439 ds.attrs['user'] = os.getlogin () 439 try: 440 ds.attrs['user'] = os.getlogin () 441 except: 442 ds.attrs['user'] = 'NoUser' 440 443 ds.attrs['HOSTNAME'] = platform.node () 441 444 ds.attrs['Python'] = 'Python version: ' + platform.python_version ()
Note: See TracChangeset
for help on using the changeset viewer.