Dear all,
I have a 3 hourly, monthly nc file, nww3.wind.199802.nc, converted it to ascii in matlab. Thus the obtained ascii data is having time, latitude, longitude , u component and v component of winds. The u and v components are of (225 x 157 x 288) size, where , 225 is time, 157 is latitude and 288 is longitude.
Now I want that data to be separated for 73 x 81 (latitude: -50S-30N & longitude: 30-120E), for every 3 hours. Means, I want 225 individual ascii datasets of u & v components of wind, of size 73 x 81. Can anyone please help me , in obtaining the data?
Also the time, is given as, 173676, 173679,173682,...........173748 (225 values). How to convert this number to time format like, 01-Feb-1998 03:00:00, 01-Feb-1998 06:00:00 ........ 28-Feb-1998 21:00:00?? I have used the ordinary procedures like, 'datestr' and 'julian date conversions', but it is showing some abnormal results like, 03- Nov-2577. The starting time of the data is given as late January, 1997. ( Exact date and time are not mentioned in the website, from where I have downloaded the data).
Thanku in advance.
Regards,
Neel
|
|
0
|
|
|
|
Reply
|
Neelima
|
4/26/2010 4:58:03 AM |
|
"Neelima " <neelima_ocean@rediffmail.com> wrote in message <hr36gr$gh3$1@fred.mathworks.com>...
> Dear all,
> I have a 3 hourly, monthly nc file, nww3.wind.199802.nc, converted it to ascii in matlab. Thus the obtained ascii data is having time, latitude, longitude , u component and v component of winds. The u and v components are of (225 x 157 x 288) size, where , 225 is time, 157 is latitude and 288 is longitude.
>
> Now I want that data to be separated for 73 x 81 (latitude: -50S-30N & longitude: 30-120E), for every 3 hours. Means, I want 225 individual ascii datasets of u & v components of wind, of size 73 x 81. Can anyone please help me , in obtaining the data?
>
> Also the time, is given as, 173676, 173679,173682,...........173748 (225 values). How to convert this number to time format like, 01-Feb-1998 03:00:00, 01-Feb-1998 06:00:00 ........ 28-Feb-1998 21:00:00?? I have used the ordinary procedures like, 'datestr' and 'julian date conversions', but it is showing some abnormal results like, 03- Nov-2577. The starting time of the data is given as late January, 1997. ( Exact date and time are not mentioned in the website, from where I have downloaded the data).
>
> Thanku in advance.
>
> Regards,
> Neel
you seem to be lost in a sea of data...
what have YOU done so far(?)...
what ML based solution did you think of(?)...
us
|
|
0
|
|
|
|
Reply
|
us
|
4/26/2010 5:04:04 AM
|
|
On Apr 26, 4:58=A0pm, "Neelima " <neelima_oc...@rediffmail.com> wrote:
> Dear all,
> =A0 =A0 =A0 =A0 =A0 =A0 I have a 3 hourly, monthly nc file, nww3.wind.199=
802.nc, converted it to =A0ascii in matlab. Thus the obtained ascii data is=
having time, latitude, longitude , u component and v component of winds. T=
he u and v components are of (225 x 157 x 288) size, where , 225 is time, 1=
57 is latitude and 288 is longitude.
>
> Now I want that data to be separated for 73 x 81 (latitude: -50S-30N & lo=
ngitude: 30-120E), for every 3 hours. Means, I want 225 individual ascii da=
tasets of u & v components of wind, of size 73 x 81. =A0Can anyone please h=
elp me , in obtaining the data?
>
> Also the time, is given as, 173676, 173679,173682,...........173748 (225 =
values). How to convert this number to time format like, 01-Feb-1998 03:00:=
00, 01-Feb-1998 06:00:00 ........ 28-Feb-1998 21:00:00?? I have used the or=
dinary procedures like, 'datestr' and 'julian date conversions', but it is =
showing some abnormal results like, 03- Nov-2577. =A0The starting time of t=
he data is given as late January, 1997. ( Exact date and time are not menti=
oned in the website, from where I have downloaded the data).
>
> Thanku in advance.
>
> Regards,
> Neel
Well, I would just download the data I wanted into Matlab, rather than
the whole bloody lot.
How did you "convert to ascii in matlab"?
If you used netcdf, you can download a portion using this format:
nc=3Dnetcdf('nww3.wind.199802.nc','nowrite');
u=3Dnc{varname}(:,indx,jndx)
where:
varname is the variable name, e.g., 'ugrd10'
indx is the range of longitude addresses
jndx is the range of latitude addresses.
(I'm not sure of the order for your .nc file - you can check this
using ncdump)
Alternatively, you can avoid downloading the .nc files altogether by
using GrADSDODS - Google it.
|
|
0
|
|
|
|
Reply
|
TideMan
|
4/26/2010 6:41:03 AM
|
|
|
2 Replies
206 Views
(page loaded in 0.048 seconds)
Similiar Articles: Divide the data set into four groups - comp.soft-sys.sas ...... shares into 4 types */ data s3; set s2; if share_rank =3D 0 then type =3D ... Divide the data set into four groups - comp.soft-sys.sas ..... the data set into four ... How to separate command line args - comp.lang.rexx... string, so: 1.) arg(1) will contain all args (not split ... -- Michael Lueck Lueck Data Systems Remove the upper case ... the shell to keep it's mitts off, then you have to type ... SPSS, organizing data and one way ANOVA... major help needed ...... in 1 spread sheet and when i go to descriptives to analyze the data, i dont know how to separate ... group with 3 levels) and 1 within subjects aka repeated factor (type ... How to use unix2dos on file (taken from tape) that is all one line ...Had to use dd (conv=unblock) to separate data into seperate lines. Then use dos2unix ... the data in a stream, maybe pass it through a sed/awk/perl filter of some type? Multiple data sets based on a variable - comp.soft-sys.sas ...I need to create separate data sets from a single data set based on a variable ... multiple data types in column? - comp.databases.mysql Multiple data sets based on a ... How to manage security in a multi file solution in fm8 - comp ...What type of approaches can one use to centrally manage security in fmp8 when ... but I've designed 3 FM7 solutions now using the central interface file with separate data ... Using regular expressions to split a string - comp.lang.javascript ...I tried using Data.split(/(?:[^\\])&/), but it surprisingly ... The field is of type text collation utf8 ... is it possible to split a string ... regsub (and regular ... excelxp tagset and data type in xml - comp.soft-sys.sasIf the value contains something that makes it "obvious" that some other data type should be applied, it will apply that data type - for instance if the value in a cell ... Random access to content of archived files without extraction ...... first field (the size of the block, of a fixed size that is the size of the type ... in *x, or HJsplit in Windows, or my splitter of File Tools in both, to split the data file ... Newbie question: Importing .csv data into Java DB tables - comp ...I am trying to import five simple .csv files into separate ... I'd prefer to import the data from the .csv file ... Java apps, though I *prefer* using databases with type ... How to Separate Cell Data in Excel | eHow.comChoose the "Delimited" selection to separate the data by looking for commas or tabs or ... Choose a column data format depending on the type of data you are separating, and ... Types of Data - Social Research MethodsThe quantitative types argue that their data is 'hard', 'rigorous', 'credible ... The simplest way to do this is to divide the qualitative information into units and ... 7/23/2012 7:29:57 PM
|