GithubHelp home page GithubHelp logo

Comments (7)

AntSimi avatar AntSimi commented on July 18, 2024

You could use EddySubSetter tool to create a new atlas with only track which start after first day and ended before last day.

EddySubSetter \
    --period {First day + 1 in julian day(day from 1950/1/1)} {Last day - 1 in julian day(day from 1950/1/1)} \
    --full_path {atlas} {new_atlas}

You must replace all value between '{}'.
full_path option will allow to keep only track which are fully in specified period.

You could do same things in python with your values

from py_eddy_tracker.observations.tracking import TrackEddiesObservations
c = TrackEddiesObservations.load_file("Cyclonic.nc")
c_subset = c.extract_with_period(
    (20000,25000),
    full_path=True)
c_subset.write_file(filename='my_dataset.nc')

You could found examples in gallery
and more information about API could be found here for TrackEddiesObservations

from py-eddy-tracker.

Ashwitaa avatar Ashwitaa commented on July 18, 2024

Thank you :)

from py-eddy-tracker.

Ashwitaa avatar Ashwitaa commented on July 18, 2024

Could you please tell me what full_path exactly do?

from py-eddy-tracker.

AntSimi avatar AntSimi commented on July 18, 2024

'full_path' option will return the whole track even if only one part are selected by criterion API doc.
So it was not the good option for you, correct option is 'remove_incomplete', :( sorry.
All trajectory which have outside observations of your period will be fully removed.
Antoine

from py-eddy-tracker.

Ashwitaa avatar Ashwitaa commented on July 18, 2024

full_path = False,
works as well for the filtering the files!

do you recommend to use 'full_path=false' or should I just go for 'remove_incomplete'?

from py-eddy-tracker.

AntSimi avatar AntSimi commented on July 18, 2024

Hi,
With the last message, i am not sure i understood original question.
I understood you would remove all track where you don't know if there are really born at first date or really dead(and not just stopped) at last date.
So my advice was to select all data between first_date + 1 and last_date -1 and remove with remove_incomplete=True option all the track which are partially selected with date filtering.

Note:
full_path=False is default value

from py-eddy-tracker.

Ashwitaa avatar Ashwitaa commented on July 18, 2024

okay.
Thanks :)

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.