Git Product home page Git Product logo

signetlabdei / woss Goto Github PK

View Code? Open in Web Editor NEW
14.0 7.0 4.0 4.44 MB

WOSS is a framework that permits the integration of any underwater channel simulator that expects environmental data and provides a channel realization. WOSS integrates the Bellhop ray-tracing program. Thanks to its automation the user only has to specify the location in the world and the time where the simulation should take place.

Home Page: https://woss.dei.unipd.it

License: GNU General Public License v2.0

Makefile 1.81% Shell 0.01% M4 1.62% CSS 0.52% C++ 95.59% Tcl 0.46%
underwater-acoustics underwater-communications ns2 ns3 ns-3 bellhop netcdf4 nsmiracle gebco woa2013

woss's Introduction

World Ocean Simulation System - WOSS - 

Please refer to:
  - INSTALL for installation info
  - COPYRIGHY for copyright terms
  - LICENSE for license terms
  - ACKNOWLEDGEMENTS for acknowledgements info
  - CHANGELOG for changelog info

A detailed doxygen documentation is embedded in the source code.
If you need to read it in html format please install doxygen on 
your system, and launch the following:

doxygen doc-woss.cfg

further info and documentation can be found at 
https://woss.dei.unipd.it

woss's People

Contributors

fedefava86 avatar metalknight avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

woss's Issues

Improve BellhopWoss SSP handling

Added SSP truncate option to both woss::SSP and woss::BellhopWoss
Improved woss::CoordZ::getCoordZFromCartesianCoords() function

Thanks to Randall Plate

WOSS 1.12.1 compiling issue with older gcc

./woss_def/ssp-definitions.cpp: In member function ‘virtual woss::SSP* woss::SSP::truncate(double) const’:
./woss_def/ssp-definitions.cpp:727:56: error: ‘prev’ is not a member of ‘std’
std::cout << "SSP::truncate() prev point: " << std::prev(it_lb)->first
^
./woss_def/ssp-definitions.cpp:727:90: error: ‘prev’ is not a member of ‘std’
"SSP::truncate() prev point: " << std::prev(it_lb)->first << " " << std::prev(i
^
./woss_def/ssp-definitions.cpp:730:118: error: ‘prev’ is not a member of ‘std’
) - ( (it_lb->first - PDouble(max_depth)) * PDouble(it_lb->second - std::prev(i
^
./woss_def/ssp-definitions.cpp:730:162: error: ‘prev’ is not a member of ‘std’
PDouble(it_lb->second - std::prev(it_lb)->second) / (it_lb->first - std::prev(i
^
./woss_def/ssp-definitions.cpp:742:49: error: no matching function for call to ‘std::map<woss::PDouble, double>::erase(woss::DConstIter&, woss::DConstIter)’
new_SSP->ssp_map.erase(it_lb, new_SSP->end());
^
In file included from /usr/include/c++/5/map:61:0,
from ./woss_def/ssp-definitions.h:47,
from ./woss_def/ssp-definitions.cpp:50:

Perform SSP normalization only if the user requests it

Since bellhop is requiring a SSP matrix with the same number of depth and depth steps, bool ACToolboxWoss::initSSPVector() is initializing the SSPs checking the max and min ssp depth and depth steps, along with their unicity.
Then the function void BellhopWoss::normalizeDbSSP()vis performing all the required transformations, using the transform_ssp_depth_steps variable.
However this transformation should be performed only if the user requires it, i.e. for example if the transform_ssp_depth_steps is greater than 0

Convert between vector and coordz

Hi, there seems to be some problems with the conversion between vector and coordz, I'm not sure if my usage is wrong.
Below is my test code, I think coordz2 should be the same as coordz, but they are not the same, especially the depth is very different.

auto coordz = woss::CoordZ(40, 10, 0);
auto vect = CreateVectorFromCoordZ(coordz);
auto coordz2 = CreateCoordZFromVector(vect);

std::cout << "coordz: " << coordz << std::endl;
std::cout << "vect: " << vect << std::endl;
std::cout << "coordz2: " << coordz2 << std::endl;

Here is the result:

coordz: Latitude = 40; Longitude = 10; Depth = 0; Marsden square = 180; Marsden One Degree square = 0
vect: 4.80632e+06:847485:4.0952e+06
coordz2: Latitude = 40.1896; Longitude = 10; Depth = 1724.76; Marsden square = 180; Marsden One Degree square = 9

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.