Comments (14)
from py-eddy-tracker.
from py-eddy-tracker.
from py-eddy-tracker.
from py-eddy-tracker.
from py-eddy-tracker.
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.
from py-eddy-tracker.
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.
from py-eddy-tracker.
from py-eddy-tracker.
from py-eddy-tracker.
from py-eddy-tracker.
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.
from py-eddy-tracker.
Related Issues (20)
- error about eddy_identification function HOT 2
- Eddies detected on land HOT 6
- Eddy kinetic energy of different types of eddies and its calculation HOT 1
- about from py_eddy_tracker.dataset.grid import RegularGridDataset HOT 1
- Eddy detection issue HOT 3
- batch identification of eddies over multiple days from a single netCDF file HOT 14
- Request for help: No extrema found in contour of xxx pixels in level xxx HOT 6
- Issue reading NEMO UnRegularGrid HOT 2
- grid_count and grid_stat error HOT 2
- The boundary cannot be closed normally, and the longitude and latitude of some points are wrong。 HOT 6
- How to store the eddy tracking results HOT 4
- Data is Empty
- Data is Empty HOT 1
- Cartopy projection HOT 1
- AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?
- ValueError: Invalid format string HOT 4
- grid_stat for zonal mean HOT 1
- intern = True and Center = True HOT 4
- No such file or directory: '/home/emason/toto/' HOT 1
- WARNING observation.create_variable : Data is empty && ValueError: zero-size array to reduction operation maximum which has no identity
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 py-eddy-tracker.