GithubHelp home page GithubHelp logo

Comments (14)

AntSimi avatar AntSimi commented on July 18, 2024

from py-eddy-tracker.

abhijithpkurian avatar abhijithpkurian commented on July 18, 2024

from py-eddy-tracker.

AntSimi avatar AntSimi commented on July 18, 2024

from py-eddy-tracker.

abhijithpkurian avatar abhijithpkurian commented on July 18, 2024

from py-eddy-tracker.

abhijithpkurian avatar abhijithpkurian commented on July 18, 2024

from py-eddy-tracker.

AntSimi avatar AntSimi commented on July 18, 2024

Hi,
I don't know the exact format or your file.
But when i need to do that i wrote a bash script, in the actual version of py-eddy-tracker there no direct command to do that.
Or you could use a python script like that with some correction on varname and filename and date:

from glob import glob
filenames =glob('.......')

for filename in filenames:
    from datetime import datetime
    h = RegularGridDataset(filename, lon_name, lat_name)
    h.bessel_high_filter('adt', 500, order=3)
    date = datetime(2019, 2, 23)
    a, c = h.eddy_identification(
        'adt', 'ugos', 'vgos', # Variables used for identification
        date, # Date of identification
        0.002, # step between two isolines of detection (m)
        pixel_limit=(5, 2000), # Min and max pixel count for valid contour
        shape_error=55, # Error max (%) between ratio of circle fit and contour
        )
    with Dataset(date.strftime('share/Anticyclonic_%Y%m%d.nc'), 'w') as h:
        a.to_netcdf(h)
    with Dataset(date.strftime('share/Cyclonic_%Y%m%d.nc'), 'w') as h:
        c.to_netcdf(h)

Antoine

from py-eddy-tracker.

abhijithpkurian avatar abhijithpkurian commented on July 18, 2024

from py-eddy-tracker.

AntSimi avatar AntSimi commented on July 18, 2024

Maybe, you could do with:

from datetime import datetime
for filename in filenames:
     date = datetime.strptime('...blabla_20180101.nc', '...blabla_%Y%m%d.nc')

Antoine

from py-eddy-tracker.

abhijithpkurian avatar abhijithpkurian commented on July 18, 2024

from py-eddy-tracker.

abhijithpkurian avatar abhijithpkurian commented on July 18, 2024

from py-eddy-tracker.

abhijithpkurian avatar abhijithpkurian commented on July 18, 2024

from py-eddy-tracker.

abhijithpkurian avatar abhijithpkurian commented on July 18, 2024

from py-eddy-tracker.

evanmason avatar evanmason commented on July 18, 2024

One way to do this is to make subsets of the input files (you can use NCO tools for example: http://nco.sourceforge.net/) focusing on the region you are interested in. But as pointed out above, we recommend using the full grid and then the EddySubSetter tools module.

from py-eddy-tracker.

abhijithpkurian avatar abhijithpkurian commented on July 18, 2024

from py-eddy-tracker.

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.