import directory

This is the place to get help with Digital Atmosphere, suggest improvements, and get tips.
Post Reply
wxperson
Junior Member
Posts: 3
Joined: Sun Aug 31, 2008 6:23 pm

import directory

Post by wxperson »

Hi,

Maybe I am missing something but the manual says...

3.3. Import directory
SPECIAL NOTE: See “IMPORTANT: About
data!” above.
This option will manually import all files in
the Digital Atmosphere data directory at once.
Regardless of the mode that Digital Atmosphere is
in (scheduled or manual), this command imports
all files contained in the directory listed on the
File, Preferences General tab under “Data directory”.
The data files should consist of text bulletins
containing METAR, synoptic, SAO, FD winds
aloft, buoy reports, or rawinsonde data.

I don't see that option within general preferences. Is it defined somewhere else?

Thanks... George

MMWeather
Member
Posts: 59
Joined: Thu Jun 28, 2018 2:06 am

Re: import directory

Post by MMWeather »

Not really sure what you are asking, but the preferences tab controls a lot of things, as far as data is concerned it controls what data you will see, i.e. what measurements will show up when you plot metar. Pref. allows you to change these, I use this and save the plot, for things like wind gust, 1 and 3 hour precip... if you are trying to control which data you are downloading, that will appear when you click on the button that looks like satellite dish. If you are trying to add or edit an existing dat site the buttons to change a site. I do NOT recommend editing a site, this will result in a lot of searcing for the http to a site that was simply down and not perm. moved. COD has had this problem off and on over the years.

If you are scripting and want to download data, it would look something like this:

Download,http://weather.cod.edu/digatmos/sao/@Y@ ... ers\[i]the name of your computer goes here[/i]\AppData\Local\DigitalAtmosphere2017\data\Data1.dat
Download,http://weather.cod.edu/digatmos/syn/@Y@ ... \[i][b]the name of your computer goes here[/b][/i]\AppData\Local\DigitalAtmosphere2017\data\Data2.dat
Ingest,C:\Users\name of your computer goes here\AppData\Local\DigitalAtmosphere2017\data\Data*.dat

The only choice you have in pref. regarding data files is under misc2 tab and that copies data to a local file, which I guess means you are making a copy of dat to a seperate file. This would allow you to save data over the years and look back at it...

If this isn't what you are looking for I will be happy to help, just need a clarification on what you are looking for
P19

wxperson
Junior Member
Posts: 3
Joined: Sun Aug 31, 2008 6:23 pm

Re: import directory

Post by wxperson »

HI.. thanks for the reply.

I use a different program to download the metar, upper and front files into a folder on a networked PC.

I would like to use DA on my desktop PC interactively and would like to import all of the files from the folder on the networked (and mapped) pc.

There is a file - import directory option but I dont see how I can specify the directory.

The manual seems to indicate that this can be defined within the preferences but it does not exist within the preferences.

The following is from the manual... There is NO DATA DIRECTORY preference however.

3.3. Import directory
SPECIAL NOTE: See “IMPORTANT: About
data!” above.
This option will manually import all files in
the Digital Atmosphere data directory at once.
Regardless of the mode that Digital Atmosphere is
in (scheduled or manual), this command imports
all files contained in the directory listed on the
File, Preferences General tab under “Data directory”.
The data files should consist of text bulletins
containing METAR, synoptic, SAO, FD winds
aloft, buoy reports, or rawinsonde data.


Thanks.. George

Budgie
Moderator
Posts: 60
Joined: Wed Jan 06, 2010 1:17 pm
Location: Lochaber, Scotland
Contact:

Re: import directory

Post by Budgie »

I think I get what you're trying to do, basically import the data files from a folder on your PC into DA, instead of downloading through DA?

If that's the case then this will work using the scripting.
You would use the "ingest" command at an early stage in the scripts, instead of the "download" command, and point to the location of the folder on the PC and include the data file type, something like:

Code: Select all

ingest,C:\Users\name of your computer\Downloads\data\*.wmo
The *.wmo is telling DA to ingest all the files in that folder with the .wmo file extension. So it's hand if they're all the same type, otherwise you have to run an "ingest" command for each file type or have one ingest command for each individual file.

I hope that helps.

MMWeather
Member
Posts: 59
Joined: Thu Jun 28, 2018 2:06 am

Re: import directory

Post by MMWeather »

ditto the above post. The only problem that could occur would be multiple "times" of data in same folder: if you had 2 different metar files with different times. I would assume DA would only take the most recent time or possible the last one in the folder. IFF there are multiple "times" you would have to call each file individually.

P19

Post Reply