Trouble with Sellonlatbox Longitude Inputs
Added by Neil Waters over 4 years ago
Hello everyone.
I have what I hope is a simple problem to solve. I would like to extract data for a box ranging from the Gulf of Mexico (-97 lon) to the end of the Mediterranean Sea (35 lon). I have read the documentation but still cannot get the desired output file.
I have tried the following inputs:
1) cdo sellonlatbox,-97.77,35.12,0,51.04 input.nc output.nc (Extracts all longitudes around the globe but can't figure out why)
2) cdo sellonlatbox,262.23,395.12,0,51.04 input.nc output.nc (Starts at -97.77 but stops at 360/0, which I assume is the limit)
I have attached screenshots, as well as the coordinate information of my file (0 - 360). Any help or advice would be greatly appreciated!
Neil
Replies (4)
RE: Trouble with Sellonlatbox Longitude Inputs - Added by Karin Meier-Fleischer over 4 years ago
Hi Neil,
your data is curvilinear with a projection which maybe is the cause for the problem.
Can you upload the data? One timestep and one variable is enough.
-Karin
RE: Trouble with Sellonlatbox Longitude Inputs - Added by Neil Waters over 4 years ago
Hi Karin,
Thank you for your time and assistance.
Please find attached one timestep of the data.
RE: Trouble with Sellonlatbox Longitude Inputs - Added by Karin Meier-Fleischer over 4 years ago
The longitude values are going from 0.0147311 to 359.996 degrees and you have to set the longitude values for sellonlatbox as
cdo sellonlatbox,262.23,395.12,0,51.04 sample.nc outfile.nc
-Karin
RE: Trouble with Sellonlatbox Longitude Inputs - Added by Neil Waters over 4 years ago
Hi Karin,
All clear. Thank you for taking the time to help a stranger, it's much appreciated.
Neil