text header: YYYYMMddHHmm seconds since

How do I...?
Post Reply
User avatar
joleenf
Posts: 1123
Joined: Mon Jan 19, 2009 7:16 pm

text header: YYYYMMddHHmm seconds since

Post by joleenf »

Hi,

Please see the file example below. The date/time is in a format that is "seconds since" the date/time in the first column. Is there a way to write the header to describe this? Alternatively, is there a quick way to reformat the file so it is easier to write the header?

example1.txt
(8.25 KiB) Downloaded 344 times


Thanks,
Joleen
User avatar
tomw
Posts: 296
Joined: Tue Dec 23, 2008 3:40 pm

Re: text header: YYYYMMddHHmm seconds since

Post by tomw »

The text adapter (reader) has no provisions to arithmetically combine two fields. You could write a small Python program to convert the "obsTime" into something that is in a "date-time" format and then use that file. That's one of the benefits of using "text" files....
User avatar
joleenf
Posts: 1123
Joined: Mon Jan 19, 2009 7:16 pm

Re: text header: YYYYMMddHHmm seconds since

Post by joleenf »

Hi Tom,

I am trying to bring this radiosonde file into display as a skew-T. First, is it RAOB sounding or updsonde/dropsonde? Next, I can load this as upsonde/dropsonde, but can't format the file so that the netCDF reader knows that I have dew point temperature and wind direction in the file. What do I need to do? Are there other mistakes? I am running a little blind with this one since I do not have an example from which I can work.

Thanks,
Joleen

testing.nc
(2.96 KiB) Downloaded 343 times
User avatar
tomw
Posts: 296
Joined: Tue Dec 23, 2008 3:40 pm

Re: text header: YYYYMMddHHmm seconds since

Post by tomw »

Hi Joleen --

I created "parameter aliases" for the dewPointTemperature, windDirection and windSpeed and was able to display your data using the dropsonde chooser. Hope this helps.

tom
User avatar
joleenf
Posts: 1123
Joined: Mon Jan 19, 2009 7:16 pm

Re: text header: YYYYMMddHHmm seconds since

Post by joleenf »

Hi Tom,

Where is this alias set? The only documentation I am finding on the conventions page is appendix B (http://cf-pcmdi.llnl.gov/documents/cf-c ... tions.html). This does not look like it is within the netCDF but in a separate standard_names table.

Joleen
User avatar
joleenf
Posts: 1123
Joined: Mon Jan 19, 2009 7:16 pm

Re: text header: YYYYMMddHHmm seconds since

Post by joleenf »

Hi,

Tom and I spoke, he was referring to setting an alias which matches my variable name in the netCDF file.

1.) Navigate to: Tools>Parameters>Aliases>System Aliases
2.) Double-click on the parameter (e.g. Dewpoint)
3.) Scroll to the bottom of the list of aliases, hit enter
4.) Add a new alias

However, since I am writing my own netCDF file, it would work just to name the variable any one of the existing aliases.

Joleen
User avatar
ghansham
Posts: 175
Joined: Thu Nov 11, 2010 5:40 pm

Re: text header: YYYYMMddHHmm seconds since

Post by ghansham »

Another way of doing it is just tight click
on the concerned datachoice and it will popup
with "add canonical name for". You find the
Variable from the list. And then just reload the
Datasource in the field selector tab by
Right clicking on datasource and selecting
"Reload Datasource".
I tried it sometime back for oscat winds.
Regards
Ghansham
Post Reply