Legend Datestamp problem in DA V2

This is the place to get help with Digital Atmosphere, suggest improvements, and get tips.
Post Reply
carseman
Moderator
Posts: 30
Joined: Sun Nov 23, 2003 9:55 pm
Location: Perth, Scotland, UK
Contact:

Legend Datestamp problem in DA V2 - Now working with 2.07

Post by carseman »

I am having problems with the legend datestamp in DA V2.
If I run a script which downloads metar data from a site (either weather.noaa.gov or ww.atmos.albany.edu) and then plots a product, for instance, SLP - I get the following Legend:
Sea Level Pressure SFC 1650-1749Z Undetermined.

If I do the download and plot "by hand" ie clicking the relevant DA buttons, I get the correct legend with date:
Sea Level Pressure SFC 1650-1749Z Sat 07-Mar-09

Is anyone else seeing this?

Chris
Odaat
Member
Posts: 11
Joined: Sat Feb 17, 2007 4:46 pm

Post by Odaat »

Yes. I am seeing this as well.
ianp
Member
Posts: 21
Joined: Wed Jan 11, 2006 6:27 pm

date and time lacking from scripts

Post by ianp »

If the importing files from the script have the name in the form YYMMDDHHxxxxx.xxx then you will get the right date and time. I used to use YYYYMMDDHH and this doesn't work, it would be useful if the 8 character search could also include the 10 character option to pick up date and time.
ianp
Member
Posts: 21
Joined: Wed Jan 11, 2006 6:27 pm

Date stamp

Post by ianp »

These codes are available for writing file name date and time in scripts - this copied from the old WS manual:
Inserting current times
Time tokens may be inserted into any command, which will be replaced with the current
date and/or time when the script is executed. This allows you, for instance, to export maps
with filenames named by date/time. The time tokens are as follows. Each will produce a
two-digit result. To show a full date/time, just concatenate them together, e.g.
@YYZ@MMZ@DDZ@HHZ@MMZ. Characters of course may be inserted between any
time token.
@FFZ UTC year (4 digits) @FFZ Local year (4 digits)
@YYZ UTC year (2 digits) @YYL Local year (2 digits)
@MMZ UTC month @MML Local month
@DDZ UTC day @DDL Local day
@HHZ UTC hour @HHL Local hour
@NNZ UTC minute @NNL Local minute
carseman
Moderator
Posts: 30
Joined: Sun Nov 23, 2003 9:55 pm
Location: Perth, Scotland, UK
Contact:

Post by carseman »

Thank you. Using time tokens works.

Chris
carseman
Moderator
Posts: 30
Joined: Sun Nov 23, 2003 9:55 pm
Location: Perth, Scotland, UK
Contact:

Post by carseman »

I am seeing the "Undetermined" again. This has been with the last few versions. I am currently using V2.06.
An example of the script I am using is:

load,c:\daequidata\maps\scotland.dmf
download, http://weather.noaa.gov/pub/data/observ ... es/@HZ.TXT ,c:\aadaws\@YYZ@MMZ@DDZ@HHZalbw.wmo
ingest,c:\aadaws\@YYZ@MMZ@DDZ@HHZalbw.wmo
analyze,CONT CINT=1 LINE=2 SLPR
stamp
export,c:\daequidata\output\scotbar.jpg
erase

Of great interest is that if I then use File>Import Specfic File from the menu to manually import the data file created by the original script and then plot SLP from the menu bar, then the correct date appears instaed of "Undetermined"

Is anyone else seeing this?
Chris
ianp
Member
Posts: 21
Joined: Wed Jan 11, 2006 6:27 pm

Legened date and scripting

Post by ianp »

Yes - I'm seeing the same problem again.

Using YYMMDDHH etc for input files did work before, but not any more.

Cheers,
Ian.
ianp
Member
Posts: 21
Joined: Wed Jan 11, 2006 6:27 pm

Legend date and scripting

Post by ianp »

Yes - I'm seeing the same problem again.

Using YYMMDDHH etc for input script files did work before, but not any more.

Loading them as a set of files outside the script does work.

Cheers,
Ian.
carseman
Moderator
Posts: 30
Joined: Sun Nov 23, 2003 9:55 pm
Location: Perth, Scotland, UK
Contact:

Post by carseman »

I have managed to get rid of the "Undetermined" legend on plots with 2.07. Go to File>Preferences>Annotations and then check the "Disable legend date information" box in the middle of the panel. The plot product type and time span will still be shown.
Chris
Post Reply