我有以下数据集包含10个卫星图像。我有图像的日期,名称和轨道。
date name orbit \
6 20140418 TSX1_SAR__SSC______SM_S_SRA_20140418T230736_20... 43
2 20140429 TDX1_SAR__SSC______SM_S_SRA_20140429T230737_20... 43
7 20141204 TSX1_SAR__SSC______SM_S_SRA_20141204T101449_20... 20
3 20141205 TDX1_SAR__SSC______SM_S_SRA_20141205T230752_20... 43
8 20141215 TSX1_SAR__SSC______SM_S_SRA_20141215T101449_20... 20
5 20141216 TSX1_SAR__SSC______SM_S_SRA_20141216T230741_20... 43
1 20141226 TSX1_SAR__SSC______SM_S_SRA_20141226T101448_20... 20
0 20141227 TSX1_SAR__SSC______SM_S_SRA_20141227T230741_20... 43
9 20150106 TSX1_SAR__SSC______SM_S_SRA_20150106T101448_20... 20
4 20150107 TSX1_SAR__SSC______SM_S_SRA_20150107T230740_20... 43
我想通过轨道拆分数据集,以便每个独立轨道都有一个单独的数据帧。我想这样做而不指定轨道是什么,这样我最终得到每个唯一轨道的数据帧,所以我最终得到:
df_orbit_1
date name orbit
20141204 TSX1_SAR__SSC______SM_S_SRA_20141204T101449_20141204T101457.xml 20
20141215 TSX1_SAR__SSC______SM_S_SRA_20141215T101449_20141215T101457.xml 20
20141226 TSX1_SAR__SSC______SM_S_SRA_20141226T101448_20141226T101456.xml 20
20150106 TSX1_SAR__SSC______SM_S_SRA_20150106T101448_20150106T101456.xml 20
df_orbit_2
20140418 TSX1_SAR__SSC______SM_S_SRA_20140418T230736_20140418T230744.xml 43
20140429 TDX1_SAR__SSC______SM_S_SRA_20140429T230737_20140429T230745.xml 43
20141205 TDX1_SAR__SSC______SM_S_SRA_20141205T230752_20141205T230800.xml 43
20141216 TSX1_SAR__SSC______SM_S_SRA_20141216T230741_20141216T230749.xml 43
20141227 TSX1_SAR__SSC______SM_S_SRA_20141227T230741_20141227T230749.xml 43
20150107 TSX1_SAR__SSC______SM_S_SRA_20150107T230740_20150107T230748.xml 43
我一直在努力找到一个使用grouby的解决方案,它不需要指定拆分字段,以及为每个唯一条目创建新数据帧的解决方案。
非常感谢任何帮助。