Opened 8 years ago

Closed 6 years ago

#3246 closed enhancement (fixed)

r.in.srtm: patch to support SRTM water bodies import (SWBD)

Reported by: stjo Owned by: grass-dev@…
Priority: normal Milestone: 7.6.0
Component: Python Version: svn-releasebranch72
Keywords: r.in.srtm Cc:
CPU: Unspecified Platform: All

Description

I developed an enhancement for r.in.srtm to import SRTM water bodies in the .raw format and .raw.zip format, e.g. from https://dds.cr.usgs.gov/srtm/version2_1/SWBD/ Internally, it uses r.in.bin and is activated by the flag 'w' for 'water'.

Maybe someone can check my changes and take a look if my python coding Style is ok. :)

Attachments (2)

r.in.srtm.diff (11.7 KB ) - added by neteler 8 years ago.
enhancement patch
r_in_srtm_luca.diff (11.4 KB ) - added by neteler 8 years ago.
Patch updated by lucadelu

Download all attachments as: .zip

Change History (19)

by neteler, 8 years ago

Attachment: r.in.srtm.diff added

enhancement patch

comment:1 by lucadelu, 8 years ago

I updated the patch, but I'm not able to test it because there are no raw files in ​https://dds.cr.usgs.gov/srtm/version2_1/SWBD/. In the zip files there are only shapefile.

by neteler, 8 years ago

Attachment: r_in_srtm_luca.diff added

Patch updated by lucadelu

comment:2 by stjo, 8 years ago

I'm really sorry for the wrong link.

If you still want to test my changes, the correct link is: https://e4ftl01.cr.usgs.gov/SRTM/SRTMSWBD.003/2000.02.11/

comment:3 by martinl, 8 years ago

Milestone: 7.2.17.2.2

comment:4 by martinl, 7 years ago

Milestone: 7.2.27.4.0

All enhancement tickets should be assigned to 7.4 milestone.

comment:5 by neteler, 7 years ago

Milestone: 7.4.07.4.1

Ticket retargeted after milestone closed

in reply to:  2 comment:6 by lucadelu, 7 years ago

Replying to stjo:

I'm really sorry for the wrong link.

If you still want to test my changes, the correct link is: https://e4ftl01.cr.usgs.gov/SRTM/SRTMSWBD.003/2000.02.11/

Sorry I cannot access again to this link. It seems it requires special permission, I already authorized LP DAAC on my account.

comment:8 by lucadelu, 7 years ago

GDAL doesn't support this format by default, reading a little bit more about the data it seems that is is only the line coast and they also provide shapefile for this dataset https://lta.cr.usgs.gov/srtm_water_body_dataset

I think the shapefile is more useful than raster, if you really need raster you can rasterize the vector.

in reply to:  8 comment:9 by neteler, 7 years ago

Replying to lucadelu:

I think the shapefile is more useful than raster, if you really need raster you can rasterize the vector.

I think the idea is that their raster mask precisely matches what was used in the processing chain. to reach that with self-rasterized vector maps may lead to slightly different results.

comment:10 by lucadelu, 7 years ago

In 72569:

r.in.srtm: added support to SRTM SWBD, see #3246

comment:12 by neteler, 6 years ago

Milestone: 7.4.17.4.2

in reply to:  10 ; comment:13 by neteler, 6 years ago

Replying to lucadelu:

In 72569:

r.in.srtm: added support to SRTM SWBD, see #3246

Is this ticket done?

comment:14 by martinl, 6 years ago

Milestone: 7.4.27.6.0

All enhancement tickets should be assigned to 7.6 milestone.

in reply to:  13 comment:15 by lucadelu, 6 years ago

Replying to neteler:

Is this ticket done?

Yes, to me it seems done. Maybe one more test could useful

comment:16 by lucadelu, 6 years ago

Closing, reopen if needed

comment:17 by martinl, 6 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.