<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Dear NCL team,<br class=""><br class=""> I have read a satellite grid data, but I want to read the data on the fixed longitude and latitude, so I need to change the data from data( NUMROWS, NUMCELLS) to data(lat,lon), how can I do it? <br class="">Sorry my English is very poor.<br class="">Thank you very much!<br class=""><br class=""><br class="">;;-------------------------------------------------------------<br class="">load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"<br class="">load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"<br class="">load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"<br class="">;;------------------------------------------------------------------------<br class=""><br class="">f=addfile("ascat_20130416_134200_metopa_33683_eps_o_coa_2101_ovw.l2.nc","r")<br class="">u_speed=f->wind_speed<br class="">vs = new(dimsizes(f->wind_speed),float,-99999)<br class="">vs =(f->wind_speed)*0.01<br class=""><br class="">lat2d = f->lat<br class="">lon2d = f->lon<br class="">lat2d@units <span class="Apple-tab-span" style="white-space:pre">        </span>= "degrees_north"<br class="">lon2d@units <span class="Apple-tab-span" style="white-space:pre">        </span>= "degrees_east"<br class=""><br class="">vs@lat2d = lat2d<br class="">vs@lon2d = lon2d<br class="">vs@units = "ms-1"<br class="">vs@coordinmates = "lat2d lon2d"<br class=""><br class="">print(vs({11},{11})) ;;;<b class="">how can I print the data like this type??????</b><br class=""><br class=""><br class=""><br class=""><br class=""><b class="">;;PrintVarSummary(f)</b><div class=""><br class="">Variable: f<br class="">Type: file<br class="">filename:<span class="Apple-tab-span" style="white-space:pre">        </span>ascat_20130416_134200_metopa_33683_eps_o_coa_2101_ovw.l2<br class="">path:<span class="Apple-tab-span" style="white-space:pre">        </span>ascat_20130416_134200_metopa_33683_eps_o_coa_2101_ovw.l2.nc<br class=""> file global attributes:<br class=""> title : MetOp-A ASCAT Level 2 Coastal Ocean Surface Wind Vector Product<br class=""> title_short_name : ASCAT-L2-Coastal<br class=""> Conventions : CF-1.4<br class=""> institution : EUMETSAT/OSI SAF/KNMI<br class=""> source : MetOp-A ASCAT<br class=""> software_identification_level_1 : 801<br class=""> instrument_calibration_version : 0<br class=""> software_identification_wind : 2101<br class=""> pixel_size_on_horizontal : 12.5 km<br class=""> service_type : eps<br class=""> processing_type : O<br class=""> contents : ovw<br class=""> granule_name : ascat_20130416_134200_metopa_33683_eps_o_coa_2101_ovw.l2.nc<br class=""> processing_level : L2<br class=""> orbit_number : 33683<br class=""> start_date : 2013-04-16<br class=""> start_time : 13:42:00<br class=""> stop_date : 2013-04-16<br class=""> stop_time : 15:23:58<br class=""> equator_crossing_longitude : 116.924<br class=""> equator_crossing_date : 2013-04-16<br class=""> equator_crossing_time : 13:41:03<br class=""> rev_orbit_period : 6081.7<br class=""> orbit_inclination : 98.7<br class=""> history : N/A<br class=""> references : ASCAT Wind Product User Manual, <a href="http://www.osi-saf.org/" class="">http://www.osi-saf.org/</a>, <a href="http://www.knmi.nl/scatterometer/" class="">http://www.knmi.nl/scatterometer/</a><br class=""> comment : Orbit period and inclination are constant values. All wind directions in oceanographic convention (0 deg. flowing North)<br class=""> creation_date : 2013-04-16<br class=""> creation_time : 16:27:43<br class=""> dimensions:<br class=""> NUMROWS = 3259<br class=""> NUMCELLS = 82<br class=""> variables:<br class=""> integer time ( NUMROWS, NUMCELLS )<br class=""> _FillValue :<span class="Apple-tab-span" style="white-space:pre">        </span>-2147483647<br class=""> missing_value :<span class="Apple-tab-span" style="white-space:pre">        </span>-2147483647<br class=""> valid_min :<span class="Apple-tab-span" style="white-space:pre">        </span>0<br class=""> valid_max :<span class="Apple-tab-span" style="white-space:pre">        </span>2147483647<br class=""> long_name :<span class="Apple-tab-span" style="white-space:pre">        </span>time<br class=""> units :<span class="Apple-tab-span" style="white-space:pre">        </span>seconds since 1990-01-01 00:00:00<br class=""> coordinates :<span class="Apple-tab-span" style="white-space:pre">        </span>lat lon<br class=""><br class=""> integer lat ( NUMROWS, NUMCELLS )<br class=""> _FillValue :<span class="Apple-tab-span" style="white-space:pre">        </span>-2147483647<br class=""> missing_value :<span class="Apple-tab-span" style="white-space:pre">        </span>-2147483647<br class=""> valid_min :<span class="Apple-tab-span" style="white-space:pre">        </span>-9000000<br class=""> valid_max :<span class="Apple-tab-span" style="white-space:pre">        </span>9000000<br class=""> long_name :<span class="Apple-tab-span" style="white-space:pre">        </span>latitude<br class=""> units :<span class="Apple-tab-span" style="white-space:pre">        </span>degrees_north<br class=""> scale_factor :<span class="Apple-tab-span" style="white-space:pre">        </span>1e-05<br class=""> add_offset :<span class="Apple-tab-span" style="white-space:pre">        </span> 0<br class=""><br class=""> integer lon ( NUMROWS, NUMCELLS )<br class=""> _FillValue :<span class="Apple-tab-span" style="white-space:pre">        </span>-2147483647<br class=""> missing_value :<span class="Apple-tab-span" style="white-space:pre">        </span>-2147483647<br class=""> valid_min :<span class="Apple-tab-span" style="white-space:pre">        </span>0<br class=""> valid_max :<span class="Apple-tab-span" style="white-space:pre">        </span>36000000<br class=""> long_name :<span class="Apple-tab-span" style="white-space:pre">        </span>longitude<br class=""> units :<span class="Apple-tab-span" style="white-space:pre">        </span>degrees_east<br class=""> scale_factor :<span class="Apple-tab-span" style="white-space:pre">        </span>1e-05<br class=""> add_offset :<span class="Apple-tab-span" style="white-space:pre">        </span> 0<br class=""><br class=""> short wvc_index ( NUMROWS, NUMCELLS )<br class=""> _FillValue :<span class="Apple-tab-span" style="white-space:pre">        </span>-32767<br class=""> missing_value :<span class="Apple-tab-span" style="white-space:pre">        </span>-32767<br class=""> valid_min :<span class="Apple-tab-span" style="white-space:pre">        </span>0<br class=""> valid_max :<span class="Apple-tab-span" style="white-space:pre">        </span>999<br class=""> long_name :<span class="Apple-tab-span" style="white-space:pre">        </span>cross track wind vector cell number<br class=""> units :<span class="Apple-tab-span" style="white-space:pre">        </span>1<br class=""> coordinates :<span class="Apple-tab-span" style="white-space:pre">        </span>lat lon<br class=""><br class=""> short model_speed ( NUMROWS, NUMCELLS )<br class=""> _FillValue :<span class="Apple-tab-span" style="white-space:pre">        </span>-32767<br class=""> missing_value :<span class="Apple-tab-span" style="white-space:pre">        </span>-32767<br class=""> valid_min :<span class="Apple-tab-span" style="white-space:pre">        </span>0<br class=""> valid_max :<span class="Apple-tab-span" style="white-space:pre">        </span>5000<br class=""> long_name :<span class="Apple-tab-span" style="white-space:pre">        </span>model wind speed at 10 m<br class=""> units :<span class="Apple-tab-span" style="white-space:pre">        </span>m s-1<br class=""> scale_factor :<span class="Apple-tab-span" style="white-space:pre">        </span>0.01<br class=""> add_offset :<span class="Apple-tab-span" style="white-space:pre">        </span> 0<br class=""> coordinates :<span class="Apple-tab-span" style="white-space:pre">        </span>lat lon<br class=""><br class=""> short model_dir ( NUMROWS, NUMCELLS )<br class=""> _FillValue :<span class="Apple-tab-span" style="white-space:pre">        </span>-32767<br class=""> missing_value :<span class="Apple-tab-span" style="white-space:pre">        </span>-32767<br class=""> valid_min :<span class="Apple-tab-span" style="white-space:pre">        </span>0<br class=""> valid_max :<span class="Apple-tab-span" style="white-space:pre">        </span>3600<br class=""> long_name :<span class="Apple-tab-span" style="white-space:pre">        </span>model wind direction at 10 m<br class=""> units :<span class="Apple-tab-span" style="white-space:pre">        </span>degree<br class=""> scale_factor :<span class="Apple-tab-span" style="white-space:pre">        </span> 0.1<br class=""> add_offset :<span class="Apple-tab-span" style="white-space:pre">        </span> 0<br class=""> coordinates :<span class="Apple-tab-span" style="white-space:pre">        </span>lat lon<br class=""><br class=""> short ice_prob ( NUMROWS, NUMCELLS )<br class=""> _FillValue :<span class="Apple-tab-span" style="white-space:pre">        </span>-32767<br class=""> missing_value :<span class="Apple-tab-span" style="white-space:pre">        </span>-32767<br class=""> valid_min :<span class="Apple-tab-span" style="white-space:pre">        </span>0<br class=""> valid_max :<span class="Apple-tab-span" style="white-space:pre">        </span>1000<br class=""> long_name :<span class="Apple-tab-span" style="white-space:pre">        </span>ice probability<br class=""> units :<span class="Apple-tab-span" style="white-space:pre">        </span>1<br class=""> scale_factor :<span class="Apple-tab-span" style="white-space:pre">        </span>0.001<br class=""> add_offset :<span class="Apple-tab-span" style="white-space:pre">        </span> 0<br class=""> coordinates :<span class="Apple-tab-span" style="white-space:pre">        </span>lat lon<br class=""><br class=""> short ice_age ( NUMROWS, NUMCELLS )<br class=""> _FillValue :<span class="Apple-tab-span" style="white-space:pre">        </span>-32767<br class=""> missing_value :<span class="Apple-tab-span" style="white-space:pre">        </span>-32767<br class=""> valid_min :<span class="Apple-tab-span" style="white-space:pre">        </span>-5000<br class=""> valid_max :<span class="Apple-tab-span" style="white-space:pre">        </span>5000<br class=""> long_name :<span class="Apple-tab-span" style="white-space:pre">        </span>ice age (a-parameter)<br class=""> units :<span class="Apple-tab-span" style="white-space:pre">        </span>dB<br class=""> scale_factor :<span class="Apple-tab-span" style="white-space:pre">        </span>0.01<br class=""> add_offset :<span class="Apple-tab-span" style="white-space:pre">        </span> 0<br class=""> coordinates :<span class="Apple-tab-span" style="white-space:pre">        </span>lat lon<br class=""><br class=""> integer wvc_quality_flag ( NUMROWS, NUMCELLS )<br class=""> _FillValue :<span class="Apple-tab-span" style="white-space:pre">        </span>-2147483647<br class=""> missing_value :<span class="Apple-tab-span" style="white-space:pre">        </span>-2147483647<br class=""> valid_min :<span class="Apple-tab-span" style="white-space:pre">        </span>0<br class=""> valid_max :<span class="Apple-tab-span" style="white-space:pre">        </span>8388607<br class=""> long_name :<span class="Apple-tab-span" style="white-space:pre">        </span>wind vector cell quality<br class=""> coordinates :<span class="Apple-tab-span" style="white-space:pre">        </span>lat lon<br class=""> flag_masks :<span class="Apple-tab-span" style="white-space:pre">        </span><ARRAY of 17 elements><br class=""> flag_meanings :<span class="Apple-tab-span" style="white-space:pre">        </span>distance_to_gmf_too_large data_are_redundant no_meteorological_background_used rain_detected rain_flag_not_usable small_wind_less_than_or_equal_to_3_m_s large_wind_greater_than_30_m_s wind_inversion_not_successful some_portion_of_wvc_is_over_ice some_portion_of_wvc_is_over_land variational_quality_control_fails knmi_quality_control_fails product_monitoring_event_flag product_monitoring_not_used any_beam_noise_content_above_threshold poor_azimuth_diversity not_enough_good_sigma0_for_wind_retrieval<br class=""><br class=""><b class=""> short wind_speed ( NUMROWS, NUMCELLS )<br class=""> _FillValue :<span class="Apple-tab-span" style="white-space:pre">        </span>-32767<br class=""> missing_value :<span class="Apple-tab-span" style="white-space:pre">        </span>-32767<br class=""> valid_min :<span class="Apple-tab-span" style="white-space:pre">        </span>0<br class=""> valid_max :<span class="Apple-tab-span" style="white-space:pre">        </span>5000<br class=""> long_name :<span class="Apple-tab-span" style="white-space:pre">        </span>wind speed at 10 m<br class=""> units :<span class="Apple-tab-span" style="white-space:pre">        </span>m s-1<br class=""> scale_factor :<span class="Apple-tab-span" style="white-space:pre">        </span>0.01<br class=""> add_offset :<span class="Apple-tab-span" style="white-space:pre">        </span> 0<br class=""> coordinates :<span class="Apple-tab-span" style="white-space:pre">        </span>lat lon</b><br class=""><br class=""> short wind_dir ( NUMROWS, NUMCELLS )<br class=""> _FillValue :<span class="Apple-tab-span" style="white-space:pre">        </span>-32767<br class=""> missing_value :<span class="Apple-tab-span" style="white-space:pre">        </span>-32767<br class=""> valid_min :<span class="Apple-tab-span" style="white-space:pre">        </span>0<br class=""> valid_max :<span class="Apple-tab-span" style="white-space:pre">        </span>3600<br class=""> long_name :<span class="Apple-tab-span" style="white-space:pre">        </span>wind direction at 10 m<br class=""> units :<span class="Apple-tab-span" style="white-space:pre">        </span>degree<br class=""> scale_factor :<span class="Apple-tab-span" style="white-space:pre">        </span> 0.1<br class=""> add_offset :<span class="Apple-tab-span" style="white-space:pre">        </span> 0<br class=""> coordinates :<span class="Apple-tab-span" style="white-space:pre">        </span>lat lon<br class=""><br class=""> short bs_distance ( NUMROWS, NUMCELLS )<br class=""> _FillValue :<span class="Apple-tab-span" style="white-space:pre">        </span>-32767<br class=""> missing_value :<span class="Apple-tab-span" style="white-space:pre">        </span>-32767<br class=""> valid_min :<span class="Apple-tab-span" style="white-space:pre">        </span>-500<br class=""> valid_max :<span class="Apple-tab-span" style="white-space:pre">        </span>500<br class=""> long_name :<span class="Apple-tab-span" style="white-space:pre">        </span>backscatter distance<br class=""> units :<span class="Apple-tab-span" style="white-space:pre">        </span>1<br class=""> scale_factor :<span class="Apple-tab-span" style="white-space:pre">        </span> 0.1<br class=""> add_offset :<span class="Apple-tab-span" style="white-space:pre">        </span> 0<br class=""> coordinates :<span class="Apple-tab-span" style="white-space:pre">        </span>lat lon<br class=""><br class=""><br class=""></div></body></html>