Giter VIP home page Giter VIP logo

Comments (5)

eragonngo avatar eragonngo commented on June 10, 2024

How can I modify the land_mask.mat matrix and add these sub-sea construction coordinates to that matrix ?

Should I use a load function to call this matrix from the Toolbox in the main file? Or do you suggest me to copy the island.m function as well as land_mask.mat to the working folder and modify the logical matrix from there?

Thank you for reading my question

from cdt.

eragonngo avatar eragonngo commented on June 10, 2024

Would you recommend me with this procedure:

  • Download the DEM from http://srtm.csi.cgiar.org/srtmdata/
  • Read each GeoTIFF image using geoimread
  • Run loop if it is grey scale (A value = -32768) then landmask matrix value = 0
  • Merge landmask matrix

from cdt.

chadagreene avatar chadagreene commented on June 10, 2024

The mask isn't a very high resolution grid, so I'm not sure how valuable it will be for ship navigation. However, to customize the mask from another GeoTIFF I'd use interp2, or from a polygon use inpolygon.

from cdt.

eragonngo avatar eragonngo commented on June 10, 2024

Thank you for your details reply, I will use your suggestion then

from cdt.

eragonngo avatar eragonngo commented on June 10, 2024

Hi Chad, thank you so much for your recommendation.

I used georead to convert the geotiff and save the coordinate as well as the is_land matrix to -v7.3 MAT-file. The uncompressed file is 10GB per file and the whole world contains 48 file of this. I am using interp2 to read 3 lon and lat from same matrix but this process took 189 seconds to run.

Using a SSD, loading the mat file took only 35 seconds but interpolation took the 159 seconds rest for 3 coordinate. Would you recommend any other faster method beside interp2?

from cdt.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.