Changeset 2795 in lmdz_wrf
- Timestamp:
- Jan 14, 2020, 5:17:55 PM (5 years ago)
- Location:
- trunk/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var.py
r2789 r2795 29 29 ## e.g. # nc_var.py -o join_sounding_obsfiles -S .:UWyoming_snd_1 -v all 30 30 ## e.g. # nc_var.py -o timemean -f selvar_new.nc -S 2:XLONG,XLAT -v T2 31 ## e.g. # nc_var.py -o netcdf_fold_slice_concatenation_HMT -S south_north|168:south_north_stag|169:west_east|196:west_east_stag|197,control,Time,WRFtime -v all -f wrfout,d01,00 31 32 32 33 ## e.g. ccrc468-17 # ./nc_var.py -v time -f 123/CCRC_NARCliM_Sydney_All_1990-1999_pr10max.nc -o out -S 1:-1 -
trunk/tools/nc_var_tools.py
r2794 r2795 32333 32333 if slicedimv.has_key(dimn): 32334 32334 slcddvv = slicedimv[dimn] 32335 if slcddvv!= type(int):32335 if type(slcddvv) != type(int): 32336 32336 Nvals = len(range(slcddvv[0], \ 32337 32337 slcddvv[1]+slcddvv[2], slcddvv[2])) 32338 32338 slicevartot.append(slice(0,Nvals)) 32339 slicevarif.append(slc vvdd)32339 slicevarif.append(slcddvv) 32340 32340 else: 32341 32341 slicevarif.append(slicedimv[dimn])
Note: See TracChangeset
for help on using the changeset viewer.