Skip to content

Unexpected argument error ('swath') while running swot_pixc2raster #2

@shahzaib1007

Description

@shahzaib1007

Hi there,
I came across this project and found it really interesting. I'm currently trying to create a raster from a pixel cloud using the swot_pixc2raster script. However, I encountered the following error:

Cell In[12], [line 68](vscode-notebook-cell:?execution_count=12&line=68)
     62 proc = SWOTRaster.l2pixc_to_raster.L2PixcToRaster(
     63     pixc_data, alg_cfg, rt_cfg,
     64     max_worker_processes=max_worker_processes,
     65     scratch_dir=internal_files_dir)
     67 # Create and save output product
---> [68](vscode-notebook-cell:?execution_count=12&line=68) product = proc.process()
     69 product.contact = contact
     70 product.crid = crid

File c:\Users\skhan7\OneDrive - UW\Desktop\Research\PhD\JPL_Internship\Codes\Raster-Processor\src\SWOTRaster\l2pixc_to_raster.py:147, in L2PixcToRaster.process(self)
    144     self.use_improved_geoloc = True
    145 elif hc_geoloc_source.lower() == "smoothed_slant_plane":
    146     new_lat, new_lon, new_height = \
--> [147](file:///C:/Users/skhan7/OneDrive%20-%20UW/Desktop/Research/PhD/JPL_Internship/Codes/Raster-Processor/src/SWOTRaster/l2pixc_to_raster.py:147)         self.do_smoothed_slant_plane_hc_geoloc()
    148     self.pixc['pixel_cloud']['improved_latitude'] = new_lat
    149     self.pixc['pixel_cloud']['improved_longitude'] = new_lon

File c:\Users\skhan7\OneDrive - UW\Desktop\Research\PhD\JPL_Internship\Codes\Raster-Processor\src\SWOTRaster\l2pixc_to_raster.py:308, in L2PixcToRaster.do_smoothed_slant_plane_hc_geoloc(self)
    304 geolocator = SWOTRaster.geoloc_raster.GeolocRaster(
    305     self.pixc, self.algorithmic_config,
    306     max_worker_processes=self.max_worker_processes)
    307 geolocator.set_new_height(smoothed_slant_plane_height)
--> [308](file:///C:/Users/skhan7/OneDrive%20-%20UW/Desktop/Research/PhD/JPL_Internship/Codes/Raster-Processor/src/SWOTRaster/l2pixc_to_raster.py:308) out_lat, out_lon, out_height = geolocator.process()
    310 return out_lat, out_lon, out_height

File c:\Users\skhan7\OneDrive - UW\Desktop\Research\PhD\JPL_Internship\Codes\Raster-Processor\src\SWOTRaster\geoloc_raster.py:38, in GeolocRaster.process(self)
     35 """ Do improved raster geolocation """
...
     48 def fn_star(fn, args):
     49     """ Calls function with iterable of arguments """
---> [50](file:///C:/Users/skhan7/OneDrive%20-%20UW/Desktop/Research/PhD/JPL_Internship/Codes/Raster-Processor/src/SWOTRaster/raster_agg.py:50)     return fn(*args)

TypeError: pointcloud_height_geoloc_vect() got an unexpected keyword argument 'swath'

Can you help me resolve the issue? I believe there might be an updated version of the geoloc script that is not incorporated in the base script.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions