pola2grid error VIIRS SDR from IPOPP

Post Reply
lotfi
Posts: 1
Joined: Thu Mar 30, 2023 4:53 am

pola2grid error VIIRS SDR from IPOPP

Post by lotfi »

after installing the pyproj module in an environment other than that of polar2grid and in a directory different from that of polar2grid, the execution of the follwing command
$POLAR2GRID_HOME/bin/polar2grid.sh viirs_sdr gtiff --i-bands --i-angle-products -f $rep/SDR -g wgs84_fit --dtype real4
gives us the following errors (extracted from the corresponding logfile).
[2023-03-28 14:17:39,815] : PID 8229 : DEBUG : polar2grid.viirs.io : __getitem__ : Loading /All_Data/VIIRS-IMG-GEO-TC_All/Longitude from GITCO_npp_d20230327_t1256010_e1301424_b59136_c20230328111243295000_ipop_dev.h5
[2023-03-28 14:17:39,815] : PID 8229 : ERROR : viirs_sdr2gtiff : exc_handler : Unexpected error. Enable debug messages (-vvv) or see log file for details.
[2023-03-28 14:17:39,815] : PID 8229 : DEBUG : viirs_sdr2gtiff : exc_handler : Unexpected error exception:
Traceback (most recent call last):
File "/home/smiej/CSPP/polar2grid_v_2_3/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/home/smiej/CSPP/polar2grid_v_2_3/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/smiej/CSPP/polar2grid_v_2_3/lib/python3.7/site-packages/polar2grid/glue_legacy.py", line 506, in <module>
sys.exit(main())
File "/home/smiej/CSPP/polar2grid_v_2_3/lib/python3.7/site-packages/polar2grid/glue_legacy.py", line 328, in main
scene = f.create_scene(**args.subgroup_args["Frontend Swath Extraction"])
File "/home/smiej/CSPP/polar2grid_v_2_3/lib/python3.7/site-packages/polar2grid/viirs/swath.py", line 770, in create_scene
lon_swath = products_created[lon_product_name] = self.create_raw_swath_object(lon_product_name, None)
File "/home/smiej/CSPP/polar2grid_v_2_3/lib/python3.7/site-packages/polar2grid/viirs/swath.py", line 687, in create_raw_swath_object
shape = file_reader.write_var_to_flat_binary(file_key, filename)
File "/home/smiej/CSPP/polar2grid_v_2_3/lib/python3.7/site-packages/polar2grid/core/frontend_utils.py", line 598, in write_var_to_flat_binary
single_array = file_reader.get_swath_data(item)
File "/home/smiej/CSPP/polar2grid_v_2_3/lib/python3.7/site-packages/polar2grid/viirs/io.py", line 185, in get_swath_data
data = self[var_info.var_path].value.astype(dtype)
AttributeError: 'Dataset' object has no attribute 'value'
[2023-03-28 14:17:39,816] : PID 8229 : ERROR : traceback : exc_handler : 'Dataset' object has no attribute 'value'


The empty file i_latitude.dat is created in the work directory.

Please could you help us to overcome this issue
davidh
Posts: 116
Joined: Tue Jun 04, 2013 11:19 am

Re: pola2grid error VIIRS SDR from IPOPP

Post by davidh »

Hi,

I can't think of a reason the installation of a python package in another python environment would affect polar2grid nor why it would fail in this manner. Could you provide more information? Where did you install pyproj? How did you install it (pip, conda, etc)? Do you have this environment "activated" when running Polar2Grid?

Otherwise, it seems like you are using an older version of Polar2Grid. I would highly recommend using Polar2Grid 3.0 which was released a little over a month ago.

Dave
Post Reply