GithubHelp home page GithubHelp logo

FES2012 support? about pytmd HOT 4 CLOSED

tsutterley avatar tsutterley commented on June 14, 2024
FES2012 support?

from pytmd.

Comments (4)

tsutterley avatar tsutterley commented on June 14, 2024 1

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.

robbibt avatar robbibt commented on June 14, 2024 1

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
image

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.

robbibt avatar robbibt commented on June 14, 2024 1

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):

image

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.

tsutterley avatar tsutterley commented on June 14, 2024

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)

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.