calculate distance offshore (from a coast)

From: Sam McClatchie (NOAA Federal) <sam.mcclatchie_at_nyahnyahspammersnyahnyah>
Date: Wed Jul 24 2013 - 11:05:49 MDT

Colleagues

I there a convenient way to calculate the distance of a point from the
coast in NCL, given a projection? I know the function gc_latlon will
give me the great circle distance between two points, or two arrays. So
I expect the answer is to extract the coordinates from the coastline,
convert to a an array variable, and then use gc_latlon to calculate the
distance between the specified locations array and the coastline array.
Is this the way to proceed, or is there a distance from coast function,
please?

Best fishes

Sam

-- 
Sam McClatchie,
Supervisory oceanographer, Fisheries oceanography
Southwest Fisheries Science Center, NOAA,
8901 La Jolla Shores Dr.
La Jolla, CA 92037-1509, U.S.A.
email <Sam.McClatchie@noaa.gov>
Office: 858 546 7083, Cellular:  858 752 8495
Research home page <www.fishocean.info>
                    /\
       ...>><xX(>
                 //// \\\\
                    <)Xx><<
               /////  \\\\\\
                         ><(((>
   >><(((>   ...>><xX(>O<)Xx><<

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Jul 24 11:06:06 2013

This archive was generated by hypermail 2.1.8 : Thu Aug 01 2013 - 15:55:04 MDT