Changeset 2174 in lmdz_wrf for trunk/tools


Ignore:
Timestamp:
Oct 10, 2018, 3:39:46 AM (7 years ago)
Author:
lfita
Message:

Fixing the right i,j to retrieve values in 'retrieve_stations'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r2173 r2174  
    2596325963        newvarlat[ist] = dlat
    2596425964        newvardist[ist] = dst
    25965         if height is not None: newvarhgt[ist] = height[ijst[0],ijst[1]]
     25965        if height is not None: newvarhgt[ist] = height[ijst[1],ijst[0]]
    2596625966        onewnc.sync()
    2596725967
     
    2608426084                    vstslice[0] = istpts
    2608526085                    istp = ptvslice[istpts]
    26086                     vslice[ilat] = istp[0]
    26087                     vslice[ilon] = istp[1]
     26086                    vslice[ilat] = istp[1]
     26087                    vslice[ilon] = istp[0]
    2608826088
    2608926089                    varvalues[tuple(vstslice)] = ovarn[tuple(vslice)]
    2609026090                    vwghts[tuple(vstslice)] = wghts[istpts]
    2609126091            else:
    26092                 vslice[ilat] = ptvslice[0]
    26093                 vslice[ilon] = ptvslice[1]
     26092                vslice[ilat] = ptvslice[1]
     26093                vslice[ilon] = ptvslice[0]
    2609426094                varvalues[0] = ovarn[tuple(vslice)]
    2609526095
Note: See TracChangeset for help on using the changeset viewer.