[Thread Prev][Thread Next][Index]

Re: [ferret_users] Extraction of data for area of interest from a netcdf file.



Title: Signature
Hi

Well I'm not sure that you can. But you can use the PT_IN_POLY function to mask the region, and save the result:

yes? let xp = {83,91,88.8,80.2,83}
yes? let yp = {10.8,17.07,21,14.8,10.8}
yes? use etopo60
yes? let/Title="my_var" my_var = if pt_in_poly(rose,xp, yp) gt 0 then rose
yes? Save /File=my_file.nc my_var

In a second step you can save the surrounding region of interest in another file (I don't know why I can't do it in one step):
yes? use my_file.nc
yes? save /File=my_file2.nc /X=78:94 /Y=10:22 my_var

Bruno

On 10/18/2016 11:29 AM, Manche Shivashankar wrote:
Dear ferret users

I am using following commands to draw a polygon over a spatial SLA map by giving following commands..

yes? use test.nc
yes? fill/l=1 SLA ; go land
yes? poly/over/nolab/line=1 {83,91,88.8,80.2,83},{10.8,17.07,21,14.8,10.8}
 
Now I want to save this polygon area data into a separate .nc file, how it could be done.

can anyone please suggest me in this regard.

Thanks in advance

Regards
shivashankar


Click here to report this email as spam.



--
Mercator Ocean

Bruno LEVIER

Monitoring and Forecasting Systems Evaluation Team

+33 5 61 39 38 51
bruno.levier@xxxxxxxxxxxxxxxxx
mercator-ocean.eu   marine.copernicus.eu


[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement