# Remote Data Download Error

**URL:** <https://forum.generic-mapping-tools.org/t/remote-data-download-error/3226>\
**Category:** Q&A\
**Created:** [August 20, 2022, 8:35am UTC](https://forum.generic-mapping-tools.org/t/remote-data-download-error/3226 "2022-08-20T08:35:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akroma](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/akroma/32/130_2.png) [@Akroma](https://forum.generic-mapping-tools.org/u/Akroma)\
**Post date:** [August 20, 2022, 8:35am UTC](https://forum.generic-mapping-tools.org/t/remote-data-download-error/3226/1 "2022-08-20T08:35:50Z")

</div>

Hey all,

I am trying to download earth\_relief 03s for offline usage.

I used below command to download files:

`gmt grdcut @earth_relief_03s_g -R0/360/-90/90 -Gdeneme.grd`

I am getting an error when it tried to download N30E081

`Libcurl Error: Failed writing received data to disk/application`

`.gmt/server/earth/earth_relief/earth_relief_03s_g/N30E081.eaarth_relief_03s_g.jp2 was not found`

I downloaded the file manually but still no luck.

Any ideas ?

---

<div class="post-metadata">

**Author:** ![pwessel](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/pwessel/32/30_2.png) [@pwessel](https://forum.generic-mapping-tools.org/u/pwessel)\
**Post date:** [August 20, 2022, 8:48am UTC](https://forum.generic-mapping-tools.org/t/remote-data-download-error/3226/2 "2022-08-20T08:48:03Z")

</div>

Does it really give the wrong filename spelled eaarth?

---

<div class="post-metadata">

**Author:** ![Akroma](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/akroma/32/130_2.png) [@Akroma](https://forum.generic-mapping-tools.org/u/Akroma)\
**Post date:** [August 20, 2022, 8:57am UTC](https://forum.generic-mapping-tools.org/t/remote-data-download-error/3226/3 "2022-08-20T08:57:14Z")

</div>

No, I made the typo sorry 🙂

grdblend [NOTICE]: Remote data courtesy of GMT data server OCEANIA [[https://oceania.generic-mapping-tools.org](https://oceania.generic-mapping-tools.org)]

```
grdblend [NOTICE]: Earth Relief at 3x3 arc seconds tiles provided by SRTMGL3 (land only) [NASA/USGS].
grdblend [NOTICE]: -> Download 1x1 degree grid tile (earth_relief_03s_g): N30E081
grdblend [ERROR]: Libcurl Error: Failed writing received data to disk/application
grdblend [WARNING]: You can turn remote file download off by setting GMT_AUTO_DOWNLOAD off.
grdconvert [ERROR]: File C:/Users/emre_/.gmt/server/earth/earth_relief/earth_relief_03s_g/N30E081.earth_relief_03s_g.jp2 was not found
grdconvert [ERROR]: Cannot find file C:/Users/emre_/.gmt/server/earth/earth_relief/earth_relief_03s_g/N30E081.earth_relief_03s_g.jp2
grdblend [ERROR]: ERROR - Unable to convert SRTM file C:/Users/emre_/.gmt/server/earth/earth_relief/earth_relief_03s_g/N30E081.earth_relief_03s_g.jp2 to compressed netCDF format
grdblend [ERROR]: Unable to obtain remote file @N30E081.earth_relief_03s_g.nc
grdblend [NOTICE]: -> Download 1x1 degree grid tile (earth_relief_03s_g): N30E081
grdblend [ERROR]: Libcurl Error: Failed writing received data to disk/application
grdblend [WARNING]: You can turn remote file download off by setting GMT_AUTO_DOWNLOAD off.
grdconvert [ERROR]: File C:/Users/emre_/.gmt/server/earth/earth_relief/earth_relief_03s_g/N30E081.earth_relief_03s_g.jp2 was not found
grdconvert [ERROR]: Cannot find file C:/Users/emre_/.gmt/server/earth/earth_relief/earth_relief_03s_g/N30E081.earth_relief_03s_g.jp2
grdblend [ERROR]: ERROR - Unable to convert SRTM file C:/Users/emre_/.gmt/server/earth/earth_relief/earth_relief_03s_g/N30E081.earth_relief_03s_g.jp2 to compressed netCDF format
grdblend [ERROR]: Unable to obtain remote file @N30E081.earth_relief_03s_g.nc
grdblend [NOTICE]: -> Download 1x1 degree grid tile (earth_relief_03s_g): N30E081
grdblend [ERROR]: Libcurl Error: Failed writing received data to disk/application
grdblend [WARNING]: You can turn remote file download off by setting GMT_AUTO_DOWNLOAD off.
grdconvert [ERROR]: File C:/Users/emre_/.gmt/server/earth/earth_relief/earth_relief_03s_g/N30E081.earth_relief_03s_g.jp2 was not found
grdconvert [ERROR]: Cannot find file C:/Users/emre_/.gmt/server/earth/earth_relief/earth_relief_03s_g/N30E081.earth_relief_03s_g.jp2
grdblend [ERROR]: ERROR - Unable to convert SRTM file C:/Users/emre_/.gmt/server/earth/earth_relief/earth_relief_03s_g/N30E081.earth_relief_03s_g.jp2 to compressed netCDF format
grdblend [ERROR]: Unable to obtain remote file @N30E081.earth_relief_03s_g.nc
grdblend [ERROR]: File @N30E081.earth_relief_03s_g.nc not found
[Session gmt (0)]: Error returned from GMT API: GMT_FILE_NOT_FOUND (16)
grdcut [ERROR]: ERROR - Unable to produce blended grid from C:\Users\emre_\AppData\Local\Temp/=tiled_214_GO.a13200
[Session gmt (0)]: Error returned from GMT API: GMT_GRID_READ_ERROR (18)
[Session gmt (0)]: Error returned from GMT API: GMT_GRID_READ_ERROR (18)
```

---

<div class="post-metadata">

**Author:** ![pwessel](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/pwessel/32/30_2.png) [@pwessel](https://forum.generic-mapping-tools.org/u/pwessel)\
**Post date:** [August 20, 2022, 9:13am UTC](https://forum.generic-mapping-tools.org/t/remote-data-download-error/3226/4 "2022-08-20T09:13:22Z")

</div>

> [@Akroma](#):
>
> `Libcurl Error: Failed writing received data to disk/application`

That error comes from the libcurl library and I think it means the received number of bytes do not match what was expected.  
Are you getting any of the tiles across? Some times due to mysterious issues I find I have to remove some of the jp2 files and I also find \*.nc files that are way too small (e.g. tens of bytes) compared to the typical ones. So I delete those too and try again.

---

<div class="post-metadata">

**Author:** ![Akroma](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/akroma/32/130_2.png) [@Akroma](https://forum.generic-mapping-tools.org/u/Akroma)\
**Post date:** [August 20, 2022, 9:33am UTC](https://forum.generic-mapping-tools.org/t/remote-data-download-error/3226/5 "2022-08-20T09:33:19Z")

</div>

Yes, I am getting other tiles. So far I downloaded 6.3GB data. I’ve checked the \*.nc files. The smallest size is 30KB (There are 129 of them).

Thank you very much for your time.

---

<div class="post-metadata">

**Author:** ![pwessel](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/pwessel/32/30_2.png) [@pwessel](https://forum.generic-mapping-tools.org/u/pwessel)\
**Post date:** [August 20, 2022, 9:46am UTC](https://forum.generic-mapping-tools.org/t/remote-data-download-error/3226/6 "2022-08-20T09:46:10Z")

</div>

Just delete the bad netcdf files and run it again until all is well
