I hope this message finds you well. I am currently working with S2P to generate DSM, but I have encountered an issue. I have set up my S2P environment on Ubuntu 20.04 using the information provided in the following link: https://github.com/centreborelli/s2p#installation.
I have a couple of questions I'd like to ask:
First, I am looking for documentation or a website that explains the elements that go into the config.json file for S2P. I'm interested in understanding what I can configure and the details of each element. I have been unable to locate this information, so any guidance in this regard would be greatly appreciated.
Second, I initially created my config.json file following the example provided with your sample data. However, my imagery does not have an rpc.xml file, and when I added one, I encountered the following error.
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/rpcm/rpc_file_readers.py", line 28, in read_rpc_file
rpc = read_rpc_xml(rpc_content)
File "/usr/local/lib/python3.8/dist-packages/rpcm/rpc_file_readers.py", line 112, in read_rpc_xml
raise NotImplementedError()
NotImplementedError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/s2p", line 11, in <module>
load_entry_point('s2p', 'console_scripts', 's2p')()
File "/s2p/s2p/cli.py", line 25, in main
s2p.main(user_cfg, start_from=args.start_from)
File "/s2p/s2p/__init__.py", line 537, in main
initialization.build_cfg(user_cfg)
File "/s2p/s2p/initialization.py", line 112, in build_cfg
check_parameters(user_cfg)
File "/s2p/s2p/initialization.py", line 59, in check_parameters
img['rpcm'] = rpcm.rpc_from_rpc_file(img['rpc'])
File "/usr/local/lib/python3.8/dist-packages/rpcm/rpc_model.py", line 90, in rpc_from_rpc_file
return RPCModel(read_rpc_file(rpc_file_path))
File "/usr/local/lib/python3.8/dist-packages/rpcm/rpc_file_readers.py", line 30, in read_rpc_file
raise NotImplementedError('XML file {} not supported'.format(rpc_file))
NotImplementedError: XML file /s2p/rpc_01.xml not supported
Is there a specific format or set of rules for creating the rpc.xml file? Could you provide an example or some guidance on this matter?
For your reference, the imagery I am working with is Panchromatic with a GSD of 0.5m, and the dimensions are approximately 25,000 (width) by 17,400 (height) pixels. Below, I've included the config.json file I have created:
I am eager to use your software to generate DSM, and your assistance in resolving these issues would be greatly appreciated. Thank you in advance for your help!
Hello S2P Team,
I hope this message finds you well. I am currently working with S2P to generate DSM, but I have encountered an issue. I have set up my S2P environment on Ubuntu 20.04 using the information provided in the following link: https://github.com/centreborelli/s2p#installation.
I have a couple of questions I'd like to ask:
First, I am looking for documentation or a website that explains the elements that go into the config.json file for S2P. I'm interested in understanding what I can configure and the details of each element. I have been unable to locate this information, so any guidance in this regard would be greatly appreciated.
Second, I initially created my config.json file following the example provided with your sample data. However, my imagery does not have an rpc.xml file, and when I added one, I encountered the following error.
Is there a specific format or set of rules for creating the rpc.xml file? Could you provide an example or some guidance on this matter?
For your reference, the imagery I am working with is Panchromatic with a GSD of 0.5m, and the dimensions are approximately 25,000 (width) by 17,400 (height) pixels. Below, I've included the config.json file I have created:
I am eager to use your software to generate DSM, and your assistance in resolving these issues would be greatly appreciated. Thank you in advance for your help!
Best regards,