comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Separating land and ocean data in IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Separating land and ocean data in IDL [message #91413] Fri, 10 July 2015 12:33 Go to previous message
siumtesfai is currently offline  siumtesfai
Messages: 62
Registered: April 2013
Member
Hello all,

I have climate model output data in IDL sav file format and NCDF file.

Dimension of the data

Sz=size (DATA)

longitude= sz(1) : 0-360 degree
latitude = Sz(2) : -90S to 90N
pressure = Sz(3) : 1000hPa to 10hPa
time = Sz(4) : 1979 to 2005


The data is global. I can extract regions . For example , North america domain by restricting my longitude and latitude. That is easy. I would use "Where" command


E.g lat=where( latitude GE lat1 and latitude LT lat2)
lon =where( longitude GE lon1 and longitude LT lon2)

DATA1=data(lon,lat,*,*)


My question is how can you extract only data at the continental north america over land. I am not interested in analyzing data over the oceans ( i.e North Pacific and Atlantic )

Waiting for your suggestion.

Thank you for you help

Best regards
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Easy question on for loops and if statements
Next Topic: land_mask function

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:31:46 PDT 2025

Total time taken to generate the page: 0.00385 seconds