Comments (4)
Hi,
To specify a non-coordinates index you could read this docstring GridDataset, you need to use indexs option.
If you choose this solution you will need to apply manually all operation describe here : filtering(if wanted), identification, storage
If you split in several files you could also use directly EddyId.
Antoine
from py-eddy-tracker.
Thanks,
To test this I've build some new files. So i have one one hand, individual daily files, and on the other hand a single file concatenated from the others using NCO tools, along a (now) record dimension "time".
While I was loading individual files as such before :
g = RegularGridDataset("../l4_cmems/dt_blacksea_allsat_phy_l4_"+dat1+"_20200801.nc", lon_name, lat_name)
I now attempted to load a slice from the concatenated file as follows :
g = GridDataset(filename="../l4_cmems/dt_blacksea_allsat_phy_l4_201404_20200801_tr.nc",
x_name=lon_name,
y_name=lat_name,
indexs={'time':23467})
which results with the error :
~/.pyenv/versions/3.8.3/lib/python3.8/site-packages/pyEddyTracker-3.2.0+0.g775b28f.dirty-py3.8.egg/py_eddy_tracker/dataset/grid.py in __init__(self, filename, x_name, y_name, centered, indexs, unset)
328 if not unset:
329 self.load_general_features()
--> 330 self.load()
331
332 @property
~/.pyenv/versions/3.8.3/lib/python3.8/site-packages/pyEddyTracker-3.2.0+0.g775b28f.dirty-py3.8.egg/py_eddy_tracker/dataset/grid.py in load(self)
415
416 self.setup_coordinates()
--> 417 self.init_pos_interpolator()
418
419 def setup_coordinates(self):
AttributeError: 'GridDataset' object has no attribute 'init_pos_interpolator'
Is there a missing update of the 'GridDataset' function, or am I not setting the indexs argument correctly ?
Thanks !
from py-eddy-tracker.
Sorry, i was not explicit you must still use RegularGridDataset, just i give you help of GridDataset because RegularGridDataset inherit from: doc of RegularGridDataset
from py-eddy-tracker.
Thanks !
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.