Skip to content

Commit

Permalink
Wait for a real need to add decreasing longitudes.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexamici committed Nov 5, 2018
1 parent 2de3708 commit 409e500
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cfgrib/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,13 +248,10 @@ def build_geography_coordinates(
)
if latitudes[0] > latitudes[-1]:
geo_coord_vars['latitude'].attributes['stored_direction'] = 'decreasing'
longitudes = np.array(first['distinctLongitudes'])
geo_coord_vars['longitude'] = Variable(
dimensions=('longitude',), data=longitudes,
dimensions=('longitude',), data=np.array(first['distinctLongitudes']),
attributes=COORD_ATTRS['longitude'],
)
if longitudes[0] > longitudes[-1]:
geo_coord_vars['longitude'].attributes['stored_direction'] = 'decreasing'
elif 'geography' in encode_cf and grid_type in GRID_TYPES_2D_AUX_COORD_VAR:
geo_dims = ('y', 'x')
geo_shape = (index.getone('Ny'), index.getone('Nx'))
Expand Down

0 comments on commit 409e500

Please sign in to comment.