Comments (4)
Hey @robbibt,
I never knew if people would want to use the earlier models :)
I put in PR #212 to get things up to speed to running FES2012. I had to fix some variable names, and fix that the eps2
constituent is named e2
in FES2012. Using these parameters in a model definition file should let you use the 2012 model (set directory
in the io.model
class equal to the path to the fes2012 directory,). I checked the outputs using one of the notebooks.
format FES
name FES2012
model_file fes2012/*_FES2012_SLEV.nc.gz
type z
version FES2012
variable tide_ocean
scale 0.01
compressed True
reference https://www.aviso.altimetry.fr/en/data/products/auxiliary-products/global-tide-fes.html
from pytmd.
We didn't realise we would need the earlier models either, but we have some areas along the Australian coastline where FES2014 unfortunately performs really poorly compared to FES2012; there's a neat paper here:
https://www.mdpi.com/2072-4292/11/10/1211
Thanks so much for this update - I think this will give us a much-needed nudge to finally update to pyTMD > 2.0!
from pytmd.
Hey @tsutterley, I've been able to sucessfully model some FES2012 tides using the model definition approach above (modifying it slightly to run on the uncompressed files) - thanks so much for this! Definitely a big improvement with FES2012 in some of our problem areas, so this will be really useful (blue = satellite pixels that get wetter with increasing tide heights):
A related question: is there any way to essentially bypass the requirement for reading in an external definition file by declaring the parameters in the file in Python code? I noticed that pyTMD.io.model(...)
seems to accept most of the params defined in the definition file - should I be able to just populate it with the content from the definition file directly? (I guess I could always write out the definition file on-the-fly when my code is run, but that feels a little clunky...).
from pytmd.
Great! That's a major improvement!
I've actually been thinking about the subject of your related question lately. The existing solution with definition files aren't my favorite. I think having the parameters be able to be entered as kwargs
might be a nice way of generalizing the model
class. It should also (hopefully) require less overall upkeep. I'll work on it 👍
from pytmd.
Related Issues (20)
- Compatibility with NOAA Global ESTOFS HOT 2
- Can't reshape array of data file in plot tide forecasts #123 HOT 4
- AtributeError running compute_tidal_currents.py HOT 2
- Getting tons of DeprecationWarning upon import HOT 6
- `scipy` v1.10.0 fails for `RegularGridInterpolator`
- compute_tidal_elevations.py --type=grid fails with shape mismatch HOT 1
- Suggestion: show tidal models in help HOT 2
- pyTMD without Jupyter HOT 2
- Getting-Started.rst old link to Arc2kmTM HOT 1
- Netcdf time needs to be double HOT 1
- Definition File for HAMTIDE constituents HOT 3
- Allow Glob patterns when specifying the model files in definition files HOT 8
- pyTMD.io.model not working for current with FES2014 HOT 3
- How to get a datum and a datum value? HOT 2
- setting directory and model HOT 17
- FileNotFoundError HOT 1
- Interpolation `METHOD="spline"` fails for TPXO8 HOT 8
- Issue with Iterating Over Model Files in pyTMD.io.ATLAS.extract_constants() HOT 2
- NameError: name 'ipyleaflet' is not defined HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytmd.