Hello, Reading data from Hycom. #1533
manueliturra
started this conversation in
General
Replies: 1 comment 1 reply
-
|
Hi @manueliturra, one way you can approach this is using the E.g. Let us know if that solves the problem for you, cheers! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, im working with Inertial Oscilaltions using parcels. I always use parcels with data at one specific depth and specific time windows, now I download Hycom data, but the variables are u0 = 32,32,40,200 = x,y,depth,time. The HYCOM FILE have 20 depth in a 4d matrix?, I’m new with python and I dont find any example in the tutorial section. Basically, I want to chose an specific time window, like from day 6(6 JAN) to day 10(10 JAN), and only selec one depth.
In the following section, I dont know where to only select one depth like u0(:,:,1,:) for the fildset reading.
I will apreciate any help, i also will apreciate if i can simulate inertial oscilations with ocean parcels, thank you.
Names of files containing the data
file = "cmems_mod_glo_phy_my_0.083deg_P1D-m_uo-vo_75.25W-71.83W_37.92S-34.17S_0.49m_2005-01-01-2005-01-30.nc"
filenames = {
'U': file,
'V': file
}
Names of the velocity component data in the file
variables = {
'U': 'uo',
'V': 'vo'
}
Names of the dimensions in the file
dimensions = {
'lat': 'latitude',
'lon': 'longitude',
'time': 'time'
}
fieldset = FieldSet.from_netcdf(filenames, variables, dimensions,vmin=-2000,allow_time_extrapolation=True)
Beta Was this translation helpful? Give feedback.
All reactions