[Thread Prev][Thread Next][Index]
[ferret_users] changing dimension
- To: fer_faq <oar.pmel.ferret_users@xxxxxxxx>
- Subject: [ferret_users] changing dimension
- From: Sudheer Joseph <sjo.india@xxxxxxxxx>
- Date: Sun, 07 Jun 2009 10:17:38 +0530
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=sqBg/B7WgHE2l7zsO++DG/CBpSwOhgCnITENu2ZBHF4=; b=hNgA/k4tBZqAqmEf/M+IFFRCeDYza2tTat7hTpzQqHVQFV1Vy2ivcof1oIVgycU9Eh R4oANec7Sz1izdTyFQerYKH4AmeXUo0BmTLR8D8zeVPEVvDwQGscdsoISHZub0GMIvjY ZiZegdzsBPTQ0Jnf01SE/IZ43QuvrAKUrhwSI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=qCIjnaf32AJ5emOnn1bMYoeWJUoBgpN/nySBQIGfOTucQTdxsFXx2RjrxmBE7V48Nc 1F9dgm4DdkFFBYEeznZV2N00PIOkdTVCeoW9nMKi15ePxD/Ss88QKTF9pv1Wab5OA65z 3nBKMAlxVTvdJG0W+MCTZiWGP+vf6HyM25428=
- Sender: owner-ferret_users@xxxxxxxx
Dear users,
I would like to extract a subset of the 4 dimensional data set to a 3 dimensional data with depth dimension not present in the sub set. For example I have ocean_atlas_subset.nc with all 4 dimensions defined in it, Now I want to have sst extracted from it with
only X Y and T dimension and sub set should not have z dimension retained in it and I would like to save it as another NC file. Which is the easiest way to do this in ferret? I Tried the below method but when I do a show grid it has Z dimension in it.
I can think of another way that is to list the variable to a text file read it again in a new grid with only xyt dim etc but I was looking for an easy way with in ferret to get the results
please help
with best regards,
Sudheer
use ocean_atlas_subset.nc
def axis/x=40:120:1/units=degrees_east Longitude
def axis/y=-30:26:1/units=degrees_north Latitude
define axis/t=1:173:1/units=months time
def grid/x=longitude/y=latitude/t=time xytgrd
let ntemp=temp[g=xytgrd]
Below is the type of grid what I have in original data
sh da
currently SET data sets:
1> /home/sjo/pkgs/ferret/fer_dsets/data/ocean_atlas_subset.nc
name title I J K L
TEMP Temperature 1:180 1:90 1:19 1:12
below is the type of grid what I want to obtain
2> /home/sjo/pkgs/ferret/fer_dsets/data/monthly_navy_winds.cdf (default)
name title I J K L
UWND ZONAL WIND 1:144 1:73 ... 1:132
VWND MERIDIONAL WIND 1:144 1:73 ... 1:132
--
**********************************************************************************
Sudheer Joseph
Scientist
Indian National Centre for Ocean Information Services (INCOIS)
Ocean Valley, Post Box No# 21,
IDA Jeedimetla P.O.
Hyderabad, Ranga Reddy District - 500 055
Andhra Pradesh, India.
TEl:+91-40-23044600(R),Tel:+91-9440832534(Mobile)
Tel:+91-40-23886047(O),Fax:+91-40-23895011(O)
E-mail:sjo@xxxxxxxxxxxxxx; sudheer.joseph@xxxxxxxxx; sjo@xxxxxxxxxxxxx.
Web- http://oppamthadathil.tripod.com
--------------* ---------------
"The ultimate measure of a man is
not where he stands in moments of
comfort and convenience, but where
he stands at times of challenge and
controversy."
Martin Luther King, Jr.
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Privacy Policy | Disclaimer | Accessibility Statement