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

Add support for STRDS export #236

Merged
merged 4 commits into from
Aug 19, 2021
Merged

Conversation

mmacata
Copy link
Member

@mmacata mmacata commented Aug 18, 2021

This PR initiates export for STRDS. Here, t.rast.export was used which does not support netCDF or similar formats but writes out separate GeoTIFFs and packs them. The output structure of the archive can be seen in the GRASS GIS documentation.

Part of #192

It was tested locally with /api/v1/locations/nc_spm_08/processing_async_export endpoint with modis_lst mapset available. The process chain used was

{
    "list": [
      {
        "id": "t_rast_extract_93486",
        "inputs": [
          {
            "param": "input",
            "value": "LST_Day_monthly@modis_lst"
          },
          {
            "param": "where",
            "value": "start_time >= '2016-05-01' AND start_time <= '2016-05-30'"
          },
          {
            "param": "output",
            "value": "lst_test"
          },
          {
            "param": "expression",
            "value": "1.0 * LST_Day_monthly@modis_lst"
          },
          {
            "param": "basename",
            "value": "lst_test"
          }
        ],
        "module": "t.rast.extract"
      },
      {
        "id": "save_result_333549",
        "module": "exporter",
        "outputs": [
          {
            "export": {
              "format": "GTiff",
              "type": "strds"
            },
            "param": "map",
            "value": "lst_test"
          }
        ]
      }
    ],
    "version": "1"
}

@mmacata mmacata requested review from metzm and griembauer August 18, 2021 13:46
@mmacata mmacata added the enhancement New feature or request label Aug 18, 2021
Copy link
Contributor

@griembauer griembauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot, looks good to me, just one small question

@mmacata mmacata requested a review from griembauer August 18, 2021 14:32
@mmacata mmacata requested a review from metzm August 19, 2021 07:34
Co-authored-by: Markus Metz <33666869+metzm@users.noreply.github.com>
@mmacata mmacata requested a review from metzm August 19, 2021 16:09
@mmacata
Copy link
Member Author

mmacata commented Aug 19, 2021

Thanks for the reviews, I will merge now!

@mmacata mmacata merged commit f19e048 into actinia-org:main Aug 19, 2021
@mmacata mmacata deleted the strds-export branch September 7, 2021 10:17
@mmacata mmacata added this to the 1.1.0 milestone Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants