# NDR ValueError: Could not open masked dem as a gdal.OF\_RASTER

**URL:** <https://community.naturalcapitalalliance.org/t/ndr-valueerror-could-not-open-masked-dem-as-a-gdal-of-raster/4078>\
**Category:** Software Support\
**Tags:** ndr\
**Created:** [September 15, 2023, 4:34pm UTC](https://community.naturalcapitalalliance.org/t/ndr-valueerror-could-not-open-masked-dem-as-a-gdal-of-raster/4078 "2023-09-15T16:34:55Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![dcdenu4](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/dcdenu4/32/544_2.png) [@dcdenu4](https://community.naturalcapitalalliance.org/u/dcdenu4)\
**Post date:** [September 22, 2023, 6:18pm UTC](https://community.naturalcapitalalliance.org/t/ndr-valueerror-could-not-open-masked-dem-as-a-gdal-of-raster/4078/7 "2023-09-22T18:18:01Z")

</div>

Hi @gtmaskall,

Thanks for that information. Yes, it will be necessary that all your inputs are projected and have the same projection. So you’ll want to define the Spatial Reference System if they are not. I’m not overly familiar with `rioxarray` but it’s worth pulling your inputs into ArcGIS or QGIS and making sure they all have a defined projected SRS. Yes, SRS and CRS are synonymous.

If you keep getting stuck, feel free to share inputs from a failed run and we can maybe diagnose a bit quicker.

I’ll throw in a selfish plug here, we also have a geoprocessing library which we use internally for InVEST called [Pygeoprocessing](https://pygeoprocessing.readthedocs.io/en/latest/index.html) that might be worth checking out, seeing as you’ve been using other Python utilities. If you do end up giving it a try we’d love whatever feedback you might have!

Cheers,

Doug

---

_[View the full topic](https://community.naturalcapitalalliance.org/t/ndr-valueerror-could-not-open-masked-dem-as-a-gdal-of-raster/4078)._
