Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] t.rast.import fails with ValueError #3581

Closed
landam opened this issue Apr 12, 2024 · 0 comments · Fixed by #3591
Closed

[Bug] t.rast.import fails with ValueError #3581

landam opened this issue Apr 12, 2024 · 0 comments · Fixed by #3591
Assignees
Labels
bug Something isn't working temporal Related to temporal data processing
Milestone

Comments

@landam
Copy link
Member

landam commented Apr 12, 2024

Describe the bug
t.rast.import fails to import space-time dataset created by t.rast.export.

To Reproduce
Steps to reproduce the behavior:

  1. Download sample dataset: sample.zip and unzip
  2. Create new location (EPSG: 5514)
  3. Run t.rast.import in=~/Downloads/sample.tar.bz2 output=sample
  4. See error
Traceback (most recent call last):
  File "/home/martin/src/grass/dist.x86_64-pc-linux-gnu/scripts/t.rast.import", line 151, in <module>
    main()
  File "/home/martin/src/grass/dist.x86_64-pc-linux-gnu/scripts/t.rast.import", line 131, in main
    tgis.import_stds(
  File "/home/martin/src/grass/dist.x86_64-pc-linux-gnu/etc/python/grass/temporal/stds_import.py", line 583, in import_stds
    register_maps_in_space_time_dataset(
  File "/home/martin/src/grass/dist.x86_64-pc-linux-gnu/etc/python/grass/temporal/register.py", line 400, in register_maps_in_space_time_dataset
    assign_valid_time_to_map(
  File "/home/martin/src/grass/dist.x86_64-pc-linux-gnu/etc/python/grass/temporal/register.py", line 560, in assign_valid_time_to_map
    end_time = int(end)
               ^^^^^^^^
ValueError: invalid literal for int() with base 10: 'file'

Expected behavior
Space-time dataset imported successfully.

System description (please complete the following information):

  • Operating System: Linux
  • GRASS GIS version 8.4
@landam landam added bug Something isn't working temporal Related to temporal data processing labels Apr 12, 2024
@landam landam added this to the 8.4.0 milestone Apr 12, 2024
@tmszi tmszi self-assigned this Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working temporal Related to temporal data processing
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants