gdoney1701 / COAWST-Test

3 stars 2 forks source link

Velocities in COAWST/ROMS #1

Open rsignell-usgs opened 7 years ago

rsignell-usgs commented 7 years ago

@gdoney1701 , some extra work needs to be done to plot velocity vectors from COAWST/ROMS. If you think of each grid cell as a square, the U component is located on the left and right side of the square, and the V component on the top and bottom. So you have to average the U and V to the grid cell center to get something co-located that you can plot. And then because the grid is not necessarily oriented east/north, you need to rotate the vectors to get east/north components.

See an example notebook here:

https://github.com/rsignell-usgs/notebook/blob/master/ROMS/ROMS%20Adriatic%20Velocity%20Cartopy.ipynb

rsignell-usgs commented 7 years ago

@gdoney1701 , try substituting this COAWST url in the notebook above instead of the ROMS adriatic URL

url = 'http://geoport-dev.whoi.edu/thredds/dodsC/coawst_4/use/fmrc/coawst_4_use_best.ncd'
rsignell-usgs commented 7 years ago

And then add the notebook to this repo please.