Skip to content

Commit

Permalink
fixed comments and found memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
annajungbluth committed May 26, 2024
1 parent 127b388 commit e557e7e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion rs_tools/_src/geoprocessing/goes/geoprocessor_goes16.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,6 @@ def preprocess_files(self):
os.remove(save_filename)
# save to netcdf
pbar_time.set_description(f"Saving to file...:{save_filename}")
# TODO: Add "metrics" for printing (e.g., filesize)
ds.to_netcdf(save_filename, engine="netcdf4")

def geoprocess(
Expand Down
2 changes: 0 additions & 2 deletions rs_tools/_src/geoprocessing/modis/geoprocessor_modis.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,6 @@ def preprocess_fn_radiances(self, file: List[str]) -> xr.Dataset:
sensor=attrs_dict[list(attrs_dict.keys())[0]]["sensor"],
units=attrs_dict[list(attrs_dict.keys())[0]]["units"],
)

# TODO: Correct wavelength assignment. This attaches 36++ wavelengths to each band.
# assign band wavelengths
ds = ds.assign_coords({"band_wavelength": list(MODIS_WAVELENGTHS.values())})

Expand Down
2 changes: 0 additions & 2 deletions rs_tools/_src/geoprocessing/msg/geoprocessor_msg.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,6 @@ def preprocess_fn_radiances(self, file: List[str], cloud_mask: np.array) -> xr.D
units=attrs_dict[list(attrs_dict.keys())[0]]["units"],
orbital_parameters=attrs_dict[list(attrs_dict.keys())[0]]["orbital_parameters"]
)

# TODO: Correct wavelength assignment. This attaches 36++ wavelengths to each band.
# assign band wavelengths
ds_subset = ds_subset.assign_coords({"band_wavelength": list(MSG_WAVELENGTHS.values())})

Expand Down

0 comments on commit e557e7e

Please sign in to comment.