Skip to content

Commit

Permalink
Fixes line-length issues
Browse files Browse the repository at this point in the history
  • Loading branch information
eigenbeam committed Dec 3, 2024
1 parent c94b813 commit fbfbdb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/nsidc/metgen/netcdf_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ def spatial_values(netcdf):
crs_4326 = CRS.from_epsg(4326)
xformer = Transformer.from_crs(data_crs, crs_4326, always_xy=True)

# Adding padding should give us values that match up to the netcdf.attrs.geospatial_bounds
# Adding padding should give us values that match up to the
# netcdf.attrs.geospatial_bounds
pad = abs(float(netcdf.crs.GeoTransform.split()[1])) / 2
xdata = [x - pad if x < 0 else x + pad for x in netcdf.x.data]
ydata = [y - pad if y < 0 else y + pad for y in netcdf.y.data]
Expand Down

0 comments on commit fbfbdb6

Please sign in to comment.