more pictures

This commit is contained in:
IZZY 2025-05-20 09:09:42 +01:00
parent 3b2927e896
commit 1b0b751b32
8 changed files with 18 additions and 6 deletions

View File

@ -4,14 +4,14 @@ Silvershade Ash,Ash,ShelvingAreaD,Fine light-grey volcanic ash collected near a
Strata Core,Soil,LoggingArea,Soil core with visible stratification showing evidence of liquefaction.,ET-6.9-Brazil-00046,30,no,no,StrataCore.PNG
Opal Clast,Tephra,ShelvingAreaM,Pumice clast with sharp edges and clear layering.,EV-8.3-Iceland-00127,65,no,no,OpalClast.PNG
Magnetite Ash,Ash,PalletDeliveryArea,Bagged black ash sample with high magnetic content.,EV-5.3-Myanmar-00088,28,yes,no,MagnetiteAsh.PNG
Ropeform Fragment,Lava,ShelvingAreaR,Ropey pahoehoe lava fragment with preserved ripples.,EV-6.9-Ethiopia-00012,85,no,no,NoImageFound.PNG
Ropeform Fragment,Lava,ShelvingAreaR,Ropey pahoehoe lava fragment with preserved ripples.,EV-6.9-Ethiopia-00012,85,no,no,RopeformFragment.PNG
Glassy Bed,Soil,ShelvingAreaB,Sandy soil deposit with glassy volcanic spherules visible under microscope.,EV-7.8-USA-00167,48,no,no,NoImageFound.PNG
Groundwater Shard,Tephra,ShelvingAreaJ,Layered tephra shard showing interaction with groundwater.,EV-4.9-Chile-00083,49,no,no,NoImageFound.PNG
Groundwater Shard,Tephra,ShelvingAreaJ,Layered tephra shard showing interaction with groundwater.,EV-4.9-Chile-00083,49,no,no,GroundwaterShard.PNG
Sulfur Ghost,Ash,ShelvingAreaG,Grey volcanic ash particle with very high sulfur content.,EV-6.4-Armenia-00219,38,no,no,NoImageFound.PNG
Obsidian Pillar,Lava,ShelvingAreaC,Dense basalt sample with well-developed columnar structure.,EV-7.7-Jordan-00037,100,yes,no,NoImageFound.PNG
Peat Nest,Soil,ShelvingAreaP,Peaty soil from earthquake liquefaction area with organic inclusions.,ET-5.1-New Zealand-00032,52,no,no,NoImageFound.PNG
Obsidian Pillar,Lava,ShelvingAreaC,Dense basalt sample with well-developed columnar structure.,EV-7.7-Jordan-00037,100,yes,no,ObsidianPillar.PNG
Peat Nest,Soil,ShelvingAreaP,Peaty soil from earthquake liquefaction area with organic inclusions.,ET-5.1-New Zealand-00032,52,no,no,PeatNest.PNG
Biotite Veil,Ash,PalletDeliveryArea,Ash with visible biotite flakes: lightly compacted.,EV-3.1-USA-00101,32,no,no,NoImageFound.PNG
Foamcore Pumice,Lava,ShelvingAreaF,High-porosity pumice formed during an explosive event.,EV-8.4-Barbados-00071,77,no,no,NoImageFound.PNG
Foamcore Pumice,Lava,ShelvingAreaF,High-porosity pumice formed during an explosive event.,EV-8.4-Barbados-00071,77,no,no,FoamcorePumice.PNG
Redslide Soil,Soil,ShelvingAreaQ,Aggregated red clay soil collected from a collapsed hillside.,EC-7.5-Nicaragua-00078,26,no,no,NoImageFound.PNG
Spectrum Clast,Tephra,LoggingArea,Multi-coloured tephra clast showing mixed eruption sources.,EV-8.3-Antarctica-00030,54,no,no,NoImageFound.PNG
Olivine Stone,Lava,ShelvingAreaH,Dense polished lava with visible olivine inclusions.,EV-9.0-Russia-00171,132,no,no,NoImageFound.PNG

1 Name Type WarehouseArea Description earthquakeID Price Required PickedUp Picture
4 Strata Core Soil LoggingArea Soil core with visible stratification showing evidence of liquefaction. ET-6.9-Brazil-00046 30 no no StrataCore.PNG
5 Opal Clast Tephra ShelvingAreaM Pumice clast with sharp edges and clear layering. EV-8.3-Iceland-00127 65 no no OpalClast.PNG
6 Magnetite Ash Ash PalletDeliveryArea Bagged black ash sample with high magnetic content. EV-5.3-Myanmar-00088 28 yes no MagnetiteAsh.PNG
7 Ropeform Fragment Lava ShelvingAreaR Ropey pahoehoe lava fragment with preserved ripples. EV-6.9-Ethiopia-00012 85 no no NoImageFound.PNG RopeformFragment.PNG
8 Glassy Bed Soil ShelvingAreaB Sandy soil deposit with glassy volcanic spherules visible under microscope. EV-7.8-USA-00167 48 no no NoImageFound.PNG
9 Groundwater Shard Tephra ShelvingAreaJ Layered tephra shard showing interaction with groundwater. EV-4.9-Chile-00083 49 no no NoImageFound.PNG GroundwaterShard.PNG
10 Sulfur Ghost Ash ShelvingAreaG Grey volcanic ash particle with very high sulfur content. EV-6.4-Armenia-00219 38 no no NoImageFound.PNG
11 Obsidian Pillar Lava ShelvingAreaC Dense basalt sample with well-developed columnar structure. EV-7.7-Jordan-00037 100 yes no NoImageFound.PNG ObsidianPillar.PNG
12 Peat Nest Soil ShelvingAreaP Peaty soil from earthquake liquefaction area with organic inclusions. ET-5.1-New Zealand-00032 52 no no NoImageFound.PNG PeatNest.PNG
13 Biotite Veil Ash PalletDeliveryArea Ash with visible biotite flakes: lightly compacted. EV-3.1-USA-00101 32 no no NoImageFound.PNG
14 Foamcore Pumice Lava ShelvingAreaF High-porosity pumice formed during an explosive event. EV-8.4-Barbados-00071 77 no no NoImageFound.PNG FoamcorePumice.PNG
15 Redslide Soil Soil ShelvingAreaQ Aggregated red clay soil collected from a collapsed hillside. EC-7.5-Nicaragua-00078 26 no no NoImageFound.PNG
16 Spectrum Clast Tephra LoggingArea Multi-coloured tephra clast showing mixed eruption sources. EV-8.3-Antarctica-00030 54 no no NoImageFound.PNG
17 Olivine Stone Lava ShelvingAreaH Dense polished lava with visible olivine inclusions. EV-9.0-Russia-00171 132 no no NoImageFound.PNG

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 341 KiB

View File

@ -20,8 +20,20 @@ type CsvRow = {
Depth: string;
};
export async function POST() {
try {
// Get a random user ID
const randomUserArr: Array<{ id: number }> = await prisma.$queryRaw`
SELECT TOP 1 id FROM [user] ORDER BY NEWID()
`;
if (!randomUserArr.length) {
return NextResponse.json({ error: 'No users found.' }, { status: 404 });
}
const userId = randomUserArr[0].id;
// 1. Read the CSV file
const fileContent = await fs.readFile(csvFilePath, "utf8");
// 2. Parse the CSV
@ -40,7 +52,7 @@ export async function POST() {
location: row.Location,
depth: row.Depth, // store as received
// todo add random selection for creatorId
creatorId: null,
creatorId: userId,
}));
// 4. Bulk create earthquakes in database:
await prisma.earthquake.createMany({