Variables:
lon
Size: 198x1
Dimensions: lon
Datatype: single
Attributes:
longname = 'Longitude'
units = 'degrees_east'
bounds = 'lonbnd'
lat
Size: 224x1
Dimensions: lat
Datatype: single
Attributes:
longname = 'Latitude'
units = 'degrees_north'
bounds = 'latbnd'
time
Size: 31x1
Dimensions: time
Datatype: int32
Attributes:
longname = 'time'
units = 'seconds since 2004-01-01'
calendar = 'standard'
xUx
Size: 198x224x40x31
Dimensions: lon,lat,z,time
Datatype: double
Attributes:
units = 'm/s'
longname = 'Eastward Velocity'
xVx
Size: 198x224x40x31
Dimensions: lon,lat,z,time
Datatype: double
Attributes:
units = 'm/s'
longname = 'Northward Velocity'
So...
lon_name = "lon"
lat_name = "lat"
time_name = "time"
uvel_name = "xUx"
vvel_name = "xVx"
Hi Lysel,
I’m afraid I have no quick fix here, your ROMS file looks a lot more complex than the netcdf files I am used to working with: I don’t blame you for getting tied in a knot! Definitely don’t bother adding the u/v/w to the nest filename then if they are all in one file, though you will need to make multiple symbolic links to each file as you have more than one snapshot in there (31 days I assume, therefore you will need 31 links each named according to the day they are pointing to in the file as mentioned in the user guide).On the subject of dimensions, the order of these shouldn’t be an issue as they are defined in the nest_x.nml file. Xi_rho/eta_rho are definitely the dimension names (like x/y in the e.g nest file) and lon_rho/lat_rho will be the long and lat names you need I recon. S_rho is never described in there but I assume it is the z dimension? It doesn’t look like you have depth in there though?
BIG follow-up question, now I think of it: Is this a sigma grid model (terrain following)? I suspect it is with a bit of googling and all the mention of S-coordinates. If it is you will have problems anyway as CMS assumes it is working with z-level data - if it assumes an S level is a depth level it will end up allowing particles (larvae?) to flow along the surface of that grid layer which, in actuality, can have massively varying depth due to the terrain underneath it so I would be wary if that is the case (I had that problem with POLCOMS model outputs and had to have someone help me to write a matlab script to interpolate each file to z-level).
I have probably created more problems there than I have solved. Sorry! Keep emailing if you are still attempting to work with these files, the more people paying attention to your questions the more likely you’ll find someone who can help more definitively!
All the best,
Bex
P.S. I see Robin has already messaged while I have been writing this… and has many of the same points - good spot on the timestep Robin! Like he says you should be able to get this working though, but do think on the sigma issue, it maybe that it is moot to keep working with these files as they currently stand if they will not have the correct effect on your simulations! Also I don’t think zeta is depth having only the dimensions lat, long and time, I think it is just the surface of the ocean i.e. sea surface height?
--
You received this message because you are subscribed to the Google Groups "connectivity-modeling-system-club" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
connectivity-modeling-...@googlegroups.com.
To post to this group, send email to
connectivity-mod...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to connectivity-modeling-system-club+unsubscribe@googlegroups.com.
To post to this group, send email to connectivity-modeling-system-cl...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thank you, Bex.
Unfortunately, that didn't work either - I still get the same error message. I'm sure that the problem is not with the data itself as I have been able to open the file and plot the velocities.
Do either of you have examples of input that worked, that I could compare with? I was also unable to run the example experiment that came with the code using getdata. Initially I had assumed that this was because the data was no longer served in the same location (as the error displayed said that it was unable to access the file), but perhaps something else is wrong.
Thanks,
Nandini
As of CMS v1.1, users can also directly provide their hydrographic data in the nests folder (so not in raw, and not using getdata). Advantage of this method is that the hydrographic files in any grid (A, B or C) can be used. If you are using native B or C grids, set the agrid *variable in nest_x.nml to *.false., and if using an A grid, set it to .true.
Since on C grids, the zonal and meridional components of the velocity are given at different locations, if using this method you will need to provide at least two nest files for each time step, one for u and one for v, named nest1yyyymmddhhmmssu.nc and nest1yyyymmddhhmmssv.nc.
The date format yyyymmddhhmmss is the same date string as also used by getdata.
You can also add vertical (w), temperature (t), and salinity (s) files as needed. So for each time step for each oceanographic files are available, you will need at least two files (and up to 5 different files). Each file will store only one field (u, v, w, t or s).
For each of your variables, you can define different variable names for longitude, latitude and depth. The names of the variables dimensions can be set in the nest_1.nml file as lon_nameU, lat_nameU, dep_nameU, lon_nameV, lat_nameV, dep_nameV, lon_nameW, lon_nameT, etc.
The names of the variables themselves can also be set in nest_1.nml as uvelname, vvelname etc. If not using agrid, CMS will use all these values in nest_1.nml to determine how to read the fields.
CMS uses the tstartyy, tstartmm, and tstart_dd in nest_1.nml to determine when to start the run, so it is important to also provide these (see earlier in the section).
In agrid-is-false-mode, CMS can also handle netcdf files with multiple snapshots in a file. Easiest way to get CMS to work with files that have for instance five snapshots, is to create five symbolic links to the same file, following the normal CMS calendar convention. Do this for every file. CMS will then automatically iterate through the individual snapshots in a file. It is important to note, however, that the tsart values (see above) point to the first snapshot of a file, and the tend values point to the last snapshot.
Currently, work is underway to generalize the grids that CMS can handle even further. As of yet, the grid needs to be “orthogonal”, meaning that the values for longitude have to be independent of latitude and vice versa. A common Mercator grid will work in CMS but more complicated tri-polar grids do not yet work. Use getdata if you want to work with these.
--
You received this message because you are subscribed to a topic in the Google Groups "connectivity-modeling-system-club" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/connectivity-modeling-system-club/XHCjqLvIMeU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to connectivity-modeling-...@googlegroups.com.
To post to this group, send email to connectivity-mod...@googlegroups.com.
OOPS, meant to send this to the group…
Hey Nadini,
Firstly you need to be clear on which version of the cms you are using. If you downloaded the zip file you have version 1.0 and will need this userguide. The latest version of CMS can be checked out by SVN with instructions on the source tab, amounting to version 1.1 so you would need the latest user guide. There is a difference in the nest file namelist between the two versions so make sure you are following the right instruction manual!
There should be no problem using a single file containing U and V (I am doing that), or with separate files with u and v labels, as long as you follow the instructions for that particular set up.
The agrid is .false. notation personally I didn’t use because I wanted my files to be interpolated to A-grid, as I am working in the complicated tripolar region of HYCOM, but if you don’t want the additional interpolation then you do need this as Ana mentions but only if you are using the LATEST version of cms (SVN), otherwise you cannot include a line about the agrid and you cannot avoid the interpolation. My working Hycom raw ncdump and nest file are attached above. If you want to try with some Hycom files but can’t get the opendap download working for some reason you can still easily download a couple of files from the Hycom website. I tend to use a bash script to batch download/use the opendap service in cms, but there are many other ways to download of which the easiest for you to just try some may be the NCSS (e.g. here). Incidentally you are right that the urls have changed from when they were written in the user manual – they migrated a bunch of servers and also now have a secondary reanalysis dataset. If you were using the latest manual where it says filename= "http://tds.hycom.org/thredds/dodsC/glb_analysis" it looks like you now need to look up which experiment you need to download from ( you can just follow the links to the data you want from the Hycom data server above and when you get to a page listing the access options choose the one that says OPENDAP to replace the nest file url with e.g. if you want data from 2014 from the global 1/12 degree analysis you will end up here and will use this url http://tds.hycom.org/thredds/dodsC/GLBa0.08/expt_91.1/2014. Hopefully that will allow you to get the example working. The HYCOM google forum is very useful for help if you think the urls have changed again or there is an issue there.
And just double checking – the nestfile you sent us at the start of this conversation began with the word “nput” rather than “input”, just wanted to make sure you had corrected that – I suspect you would get a different error if that was the problem but just in case! It is all about being absolutely precise with the nestfile wording.
That’s all I have for you at the moment. If you are still having trouble can you try sending us your monthly snapshot file (might need to be via dropbox or similar – these files aren’t small!) and we’ll give it a go too.
--
You received this message because you are subscribed to the Google Groups "connectivity-modeling-system-club" group.
To unsubscribe from this group and stop receiving emails from it, send an email to connectivity-modeling-...@googlegroups.com.
To post to this group, send email to
connectivity-mod...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and all its topics, send an email to connectivity-modeling-system-club+unsubscribe@googlegroups.com.
To post to this group, send email to connectivity-modeling-system-cl...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "connectivity-modeling-system-club" group.
To unsubscribe from this group and stop receiving emails from it, send an email to connectivity-modeling-system-club+unsubscribe@googlegroups.com.
To post to this group, send email to connectivity-modeling-system-cl...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and all its topics, send an email to connectivity-modeling-...@googlegroups.com.
To post to this group, send email to connectivity-mod...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "connectivity-modeling-system-club" group.
To unsubscribe from this group and stop receiving emails from it, send an email to connectivity-modeling-...@googlegroups.com.
To post to this group, send email to connectivity-mod...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
This email and any files with it are confidential and intended solely for the use of the recipient to whom it is addressed. If you are not the intended recipient then copying, distribution or other use of the information contained is strictly prohibited and you should not rely on it. If you have received this email in error please let the sender know immediately and delete it from your system(s). Internet emails are not necessarily secure. While we take every care, Plymouth University accepts no responsibility for viruses and it is your responsibility to scan emails and their attachments. Plymouth University does not accept responsibility for any changes made after it was sent. Nothing in this email or its attachments constitutes an order for goods or services unless accompanied by an official order form.
--
You received this message because you are subscribed to a topic in the Google Groups "connectivity-modeling-system-club" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/connectivity-modeling-system-club/XHCjqLvIMeU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to connectivity-modeling-...@googlegroups.com.
To post to this group, send email to connectivity-mod...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to connectivity-modeling-system-club+unsubscribe@googlegroups.com.
To post to this group, send email to connectivity-modeling-system-cl...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "connectivity-modeling-system-club" group.
To unsubscribe from this group and stop receiving emails from it, send an email to connectivity-modeling-system-club+unsubscribe@googlegroups.com.
To post to this group, send email to connectivity-modeling-system-cl...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
This email and any files with it are confidential and intended solely for the use of the recipient to whom it is addressed. If you are not the intended recipient then copying, distribution or other use of the information contained is strictly prohibited and you should not rely on it. If you have received this email in error please let the sender know immediately and delete it from your system(s). Internet emails are not necessarily secure. While we take every care, Plymouth University accepts no responsibility for viruses and it is your responsibility to scan emails and their attachments. Plymouth University does not accept responsibility for any changes made after it was sent. Nothing in this email or its attachments constitutes an order for goods or services unless accompanied by an official order form.
--
You received this message because you are subscribed to a topic in the Google Groups "connectivity-modeling-system-club" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/connectivity-modeling-system-club/XHCjqLvIMeU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to connectivity-modeling-system-club+unsubscribe@googlegroups.com.
To post to this group, send email to connectivity-modeling-system-cl...@googlegroups.com.